All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.snapscript.tree.resume.AwaitVariableAllocator Maven / Gradle / Ivy

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