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

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

public static class Expressions.IfExpression
extends Expressions.TypedExpression

See Also:
Serialized Form

Constructor Summary
Expressions.IfExpression(Expression cond, Expression vt, Expression vf)
           
 
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.IfExpression

public Expressions.IfExpression(Expression cond,
                                Expression vt,
                                Expression vf)
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