com.threerings.expr
Class ExpressionParser.Identifier

java.lang.Object
  extended by com.threerings.expr.ExpressionParser.Identifier
Direct Known Subclasses:
ExpressionParser.ArrayIndex, ExpressionParser.FunctionCall, ExpressionParser.Operator
Enclosing class:
ExpressionParser<T>

protected static class ExpressionParser.Identifier
extends Object

Wraps a string to identify it as an identifier.


Field Summary
 String name
          The name of the identifier.
 
Constructor Summary
ExpressionParser.Identifier(String name)
          Creates a new identifier.
 
Method Summary
<T> T
handle(ExpressionParser<T> parser)
          Calls the appropriate form of the handle method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public final String name
The name of the identifier.

Constructor Detail

ExpressionParser.Identifier

public ExpressionParser.Identifier(String name)
Creates a new identifier.

Method Detail

handle

public <T> T handle(ExpressionParser<T> parser)
         throws Exception
Calls the appropriate form of the handle method.

Throws:
Exception