
org.snapscript.core.LocalReference 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
package org.snapscript.core;
public class LocalReference extends Local {
private Object value;
private String name;
private Type type;
public LocalReference(Object value, String name) {
this(value, name, null);
}
public LocalReference(Object value, String name, Type type) {
this.value = value;
this.name = name;
this.type = type;
}
@Override
public String getName(){
return name;
}
@Override
public Type getConstraint() {
return type;
}
@Override
public T getValue() {
return (T)value;
}
@Override
public void setValue(Object value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy