org.snapscript.tree.Modifier 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.tree;
import org.snapscript.core.ModifierType;
import org.snapscript.parse.StringToken;
public class Modifier {
private ModifierType type;
private StringToken token;
public Modifier(StringToken token) {
this.token = token;
}
public ModifierType getType() {
String name = token.getValue();
if(type == null) {
type = ModifierType.resolveModifier(name);
}
return type;
}
}