coins.ast.expr
Class OperatorExpr

java.lang.Object
  extended bycoins.ast.ASTree
      extended bycoins.ast.expr.OperatorExpr
All Implemented Interfaces:
Expr, java.io.Serializable
Direct Known Subclasses:
BinaryExpr, NnaryExpr, UnaryExpr

public abstract class OperatorExpr
extends ASTree
implements Expr

Expressions including an operator.

See Also:
Serialized Form

Constructor Summary
OperatorExpr()
           
 
Method Summary
protected  java.lang.String getTag()
          Returns the type of this node.
abstract  int operatorId()
          Returns the token identifier of the operator name.
abstract  java.lang.String operatorName()
          Returns the string representation of the operator name.
 
Methods inherited from class coins.ast.ASTree
accept, getLeft, getRight, putSeparator, rightToString, setLeft, setRight, toString, toString1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface coins.ast.Expr
getType
 

Constructor Detail

OperatorExpr

public OperatorExpr()
Method Detail

operatorId

public abstract int operatorId()
Returns the token identifier of the operator name. See ast.TokenId


operatorName

public abstract java.lang.String operatorName()
Returns the string representation of the operator name.


getTag

protected java.lang.String getTag()
Description copied from class: ASTree
Returns the type of this node. This method is used by toString().

Overrides:
getTag in class ASTree