edu.stanford.nlp.ling.tokensregex.types
Class Expressions.VarAssignmentExpression

java.lang.Object
  extended by edu.stanford.nlp.ling.tokensregex.types.Expressions.TypedExpression
      extended by edu.stanford.nlp.ling.tokensregex.types.Expressions.VarAssignmentExpression
All Implemented Interfaces:
Expression, java.io.Serializable
Enclosing class:
Expressions

public static class Expressions.VarAssignmentExpression
extends Expressions.TypedExpression

A variable assignment with the name of the variable, and the expression to assign to that variable

See Also:
Serialized Form

Constructor Summary
Expressions.VarAssignmentExpression(java.lang.String varName, Expression valueExpr, boolean bindAsValue)
           
 
Method Summary
 Value evaluate(Env env, java.lang.Object... args)
          Evaluates the expression using the specified environment and arguments.
 
Methods inherited from class edu.stanford.nlp.ling.tokensregex.types.Expressions.TypedExpression
getTags, getType, hasValue, setTags, simplify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Expressions.VarAssignmentExpression

public Expressions.VarAssignmentExpression(java.lang.String varName,
                                           Expression valueExpr,
                                           boolean bindAsValue)
Method Detail

evaluate

public Value evaluate(Env env,
                      java.lang.Object... args)
Description copied from interface: Expression
Evaluates the expression using the specified environment and arguments. Arguments are additional context not provided by the environment.

Returns:
Evaluated value


Stanford NLP Group