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

java.lang.Object
  extended by edu.stanford.nlp.ling.tokensregex.types.Expressions.TypedExpression
All Implemented Interfaces:
Expression, java.io.Serializable
Direct Known Subclasses:
Expressions.FunctionCallExpression, Expressions.IfExpression, Expressions.ListExpression, Expressions.MethodCallExpression, Expressions.SimpleExpression, Expressions.SimpleValue, Expressions.VarAssignmentExpression
Enclosing class:
Expressions

public abstract static class Expressions.TypedExpression
extends java.lang.Object
implements Expression, java.io.Serializable

An expression with a typename and tags

See Also:
Serialized Form

Constructor Summary
Expressions.TypedExpression(java.lang.String typename, java.lang.String... tags)
           
 
Method Summary
 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
 
Methods inherited from interface edu.stanford.nlp.ling.tokensregex.types.Expression
evaluate
 

Constructor Detail

Expressions.TypedExpression

public Expressions.TypedExpression(java.lang.String typename,
                                   java.lang.String... tags)
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


Stanford NLP Group