Web Site

org.codehaus.janino
Class Java.UnaryOperation

java.lang.Object
  extended by org.codehaus.janino.Java.Located
      extended by org.codehaus.janino.Java.Atom
          extended by org.codehaus.janino.Java.Rvalue
              extended by org.codehaus.janino.Java.BooleanRvalue
                  extended by org.codehaus.janino.Java.UnaryOperation
All Implemented Interfaces:
Java.ArrayInitializerOrRvalue, Java.Locatable
Enclosing class:
Java

public static final class Java.UnaryOperation
extends Java.BooleanRvalue

This class implements the unary operators "+", "-", "~" and "!".


Field Summary
 Java.Rvalue operand
           
 java.lang.String operator
           
 
Fields inherited from class org.codehaus.janino.Java.Rvalue
CONSTANT_VALUE_NULL, JUMP_IF_FALSE, JUMP_IF_TRUE
 
Constructor Summary
Java.UnaryOperation(Location location, java.lang.String operator, Java.Rvalue operand)
           
 
Method Summary
 void accept(Visitor.AtomVisitor visitor)
           
 void accept(Visitor.RvalueVisitor visitor)
           
 java.lang.String toString()
           
 
Methods inherited from class org.codehaus.janino.Java.Rvalue
getEnclosingBlockStatement, setEnclosingBlockStatement, toRvalue
 
Methods inherited from class org.codehaus.janino.Java.Atom
toLvalue, toLvalueOrPE, toRvalueOrPE, toType, toTypeOrPE
 
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwParseException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

operator

public final java.lang.String operator

operand

public final Java.Rvalue operand
Constructor Detail

Java.UnaryOperation

public Java.UnaryOperation(Location location,
                           java.lang.String operator,
                           Java.Rvalue operand)
Method Detail

toString

public java.lang.String toString()
Specified by:
toString in class Java.Atom

accept

public final void accept(Visitor.AtomVisitor visitor)
Specified by:
accept in class Java.Atom

accept

public final void accept(Visitor.RvalueVisitor visitor)
Specified by:
accept in class Java.Rvalue

Web Site