![JAR search and dependency download from the Maven repository](/logo.png)
org.snapscript.tree.define.EnumValue 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.define;
import org.snapscript.core.Type;
import org.snapscript.core.TypeFactory;
import org.snapscript.tree.ArgumentList;
public class EnumValue {
private final ArgumentList arguments;
private final EnumKey key;
public EnumValue(EnumKey key) {
this(key, null);
}
public EnumValue(EnumKey key, ArgumentList arguments) {
this.arguments = arguments;
this.key = key;
}
public TypeFactory compile(Type type, int index) throws Exception {
return new EnumFactory(key, arguments, index);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy