|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.expr.ExpressionParser.Identifier
com.threerings.expr.ExpressionParser.Operator
protected static class ExpressionParser.Operator
An operator identifier.
| Field Summary | |
|---|---|
int |
arity
The arity of the operator. |
int |
precedence
The precedence of the operator. |
boolean |
rightAssociative
Whether or not the operator is right, as opposed to left, associative. |
| Fields inherited from class com.threerings.expr.ExpressionParser.Identifier |
|---|
name |
| Constructor Summary | |
|---|---|
ExpressionParser.Operator(String name,
boolean rightAssociative,
int precedence,
int arity)
Creates a new operator. |
|
| Method Summary | ||
|---|---|---|
|
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 |
|---|
public final boolean rightAssociative
public final int precedence
public final int arity
| Constructor Detail |
|---|
public ExpressionParser.Operator(String name,
boolean rightAssociative,
int precedence,
int arity)
| Method Detail |
|---|
public <T> T handle(ExpressionParser<T> parser)
throws Exception
ExpressionParser.Identifier
handle in class ExpressionParser.IdentifierException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||