org.snapscript.parse.Rule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snap-all Show documentation
Show all versions of snap-all Show documentation
Dynamic scripting for the JVM
package org.snapscript.parse;
public class Rule {
private final RuleType type;
private final String origin;
private final String symbol;
public Rule(RuleType type, String symbol, String origin) {
this.origin = origin;
this.symbol = symbol;
this.type = type;
}
public String getOrigin(){
return origin;
}
public String getSymbol(){
return symbol;
}
public RuleType getType() {
return type;
}
@Override
public String toString(){
return symbol;
}
}