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

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

public static class Expressions.RegexMatchVarExpression
extends Expressions.SimpleExpression
implements AssignableExpression

See Also:
Serialized Form

Constructor Summary
Expressions.RegexMatchVarExpression(java.lang.Integer groupid, java.lang.String... tags)
           
Expressions.RegexMatchVarExpression(java.lang.String groupname, java.lang.String... tags)
           
 
Method Summary
 Expression assign(Expression expr)
           
 Value evaluate(Env env, java.lang.Object... args)
          Evaluates the expression using the specified environment and arguments.
static Expressions.RegexMatchVarExpression valueOf(java.lang.String group)
           
 
Methods inherited from class edu.stanford.nlp.ling.tokensregex.types.Expressions.SimpleExpression
get, toString
 
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, wait, wait, wait
 
Methods inherited from interface edu.stanford.nlp.ling.tokensregex.types.Expression
getTags, getType, hasValue, setTags, simplify
 

Constructor Detail

Expressions.RegexMatchVarExpression

public Expressions.RegexMatchVarExpression(java.lang.String groupname,
                                           java.lang.String... tags)

Expressions.RegexMatchVarExpression

public Expressions.RegexMatchVarExpression(java.lang.Integer groupid,
                                           java.lang.String... tags)
Method Detail

valueOf

public static Expressions.RegexMatchVarExpression valueOf(java.lang.String group)

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

assign

public Expression assign(Expression expr)
Specified by:
assign in interface AssignableExpression


Stanford NLP Group