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

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

public static class Expressions.MethodCallExpression
extends Expressions.TypedExpression

See Also:
Serialized Form

Constructor Summary
Expressions.MethodCallExpression(java.lang.String function, Expression object, java.util.List<Expression> params, java.lang.String... tags)
           
 
Method Summary
 Value evaluate(Env env, java.lang.Object... args)
          Evaluates the expression using the specified environment and arguments.
 Expression simplify(Env env)
          Simplifies the expression using the specified environment
 java.lang.String toString()
           
 
Methods inherited from class edu.stanford.nlp.ling.tokensregex.types.Expressions.TypedExpression
getTags, getType, hasValue, setTags
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Expressions.MethodCallExpression

public Expressions.MethodCallExpression(java.lang.String function,
                                        Expression object,
                                        java.util.List<Expression> params,
                                        java.lang.String... tags)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

simplify

public Expression simplify(Env env)
Description copied from interface: Expression
Simplifies the expression using the specified environment

Specified by:
simplify in interface Expression
Overrides:
simplify in class Expressions.TypedExpression
Parameters:
env - Environment to simply with respect to
Returns:
Simplified expressions

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