
org.snapscript.tree.resume.AwaitVariableAllocator 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
The newest version!
package org.snapscript.tree.resume;
import org.snapscript.core.constraint.Constraint;
import org.snapscript.core.scope.Scope;
import org.snapscript.core.scope.index.Local;
import org.snapscript.core.variable.Value;
import org.snapscript.tree.DeclarationAllocator;
public class AwaitVariableAllocator extends DeclarationAllocator {
public AwaitVariableAllocator(Constraint constraint) {
super(constraint, null);
}
protected T declare(Scope scope, String name, Constraint type, int modifiers) throws Exception {
return (T)Local.getReference(null, name, type);
}
protected T assign(Scope scope, String name, Object value, Constraint type, int modifiers) throws Exception {
return (T)Local.getReference(value, name, type);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy