org.snapscript.tree.define.StaticField 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.tree.define;
import org.snapscript.core.Evaluation;
import org.snapscript.core.scope.Scope;
public class StaticField extends StaticBlock {
private final Evaluation evaluation;
public StaticField(Evaluation evaluation){
this.evaluation = evaluation;
}
@Override
protected void define(Scope scope) throws Exception {
evaluation.define(scope);
}
@Override
protected void compile(Scope scope) throws Exception {
evaluation.compile(scope, null);
}
@Override
protected void allocate(Scope scope) throws Exception {
evaluation.evaluate(scope, null);
}
}