polyglot.ast
Class Unary.Operator

java.lang.Object
  extended by polyglot.util.Enum
      extended by polyglot.ast.Unary.Operator
All Implemented Interfaces:
java.io.Serializable
Enclosing interface:
Unary

public static class Unary.Operator
extends Enum

Unary expression operator.

See Also:
Serialized Form

Constructor Summary
Unary.Operator(java.lang.String name, boolean prefix)
           
 
Method Summary
 boolean isPrefix()
          Returns true of the operator is a prefix operator, false if postfix.
 java.lang.String toString()
           
 
Methods inherited from class polyglot.util.Enum
equals, hashCode, intern
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Unary.Operator

public Unary.Operator(java.lang.String name,
                      boolean prefix)
Method Detail

isPrefix

public boolean isPrefix()
Returns true of the operator is a prefix operator, false if postfix.


toString

public java.lang.String toString()
Overrides:
toString in class Enum