
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 Show documentation
Show all versions of snap Show documentation
Dynamic scripting for the JVM
The newest version!
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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy