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

java.lang.Object
  extended by edu.stanford.nlp.ling.tokensregex.types.Expressions.WrappedExpression
All Implemented Interfaces:
Expression
Direct Known Subclasses:
Expressions.CaseExpression, Expressions.ConditionalExpression
Enclosing class:
Expressions

public abstract static class Expressions.WrappedExpression
extends java.lang.Object
implements Expression

An expression that is a wrapper around another expression


Field Summary
protected  Expression expr
           
 
Constructor Summary
Expressions.WrappedExpression()
           
 
Method Summary
 Value evaluate(Env env, java.lang.Object... args)
          Evaluates the expression using the specified environment and arguments.
 Tags getTags()
          Returns tags associated with this expression
 java.lang.String getType()
          Returns a string indicating the type of this expression
 boolean hasValue()
          Returns whether the expression has already been evaluated to a Value
 void setTags(Tags tags)
          Set the tags associated with this expression
 Expression simplify(Env env)
          Simplifies the expression using the specified environment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

expr

protected Expression expr
Constructor Detail

Expressions.WrappedExpression

public Expressions.WrappedExpression()
Method Detail

getTags

public Tags getTags()
Description copied from interface: Expression
Returns tags associated with this expression

Specified by:
getTags in interface Expression
Returns:
Tags associated with this expression

setTags

public void setTags(Tags tags)
Description copied from interface: Expression
Set the tags associated with this expression

Specified by:
setTags in interface Expression
Parameters:
tags - Tags to associate with this expression

getType

public java.lang.String getType()
Description copied from interface: Expression
Returns a string indicating the type of this expression

Specified by:
getType in interface Expression
Returns:
type of this expressions

simplify

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

Specified by:
simplify in interface Expression
Parameters:
env - Environment to simply with respect to
Returns:
Simplified expressions

hasValue

public boolean hasValue()
Description copied from interface: Expression
Returns whether the expression has already been evaluated to a Value

Specified by:
hasValue in interface Expression
Returns:
True if the expression is already evaluated

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.

Specified by:
evaluate in interface Expression
Returns:
Evaluated value


Stanford NLP Group