janino.net

org.codehaus.janino
Class Java.Rvalue

java.lang.Object
  extended by org.codehaus.janino.Java.Located
      extended by org.codehaus.janino.Java.Atom
          extended by org.codehaus.janino.Java.Rvalue
All Implemented Interfaces:
Java.ArrayInitializerOrRvalue, Java.ElementValue, Java.Locatable
Direct Known Subclasses:
Java.ArrayLength, Java.Assignment, Java.BooleanRvalue, Java.Cast, Java.ClassLiteral, Java.ConditionalExpression, Java.Crement, Java.Instanceof, Java.Invocation, Java.Literal, Java.Lvalue, Java.NewAnonymousClassInstance, Java.NewArray, Java.NewClassInstance, Java.NewInitializedArray, Java.ParameterAccess, Java.QualifiedThisReference, Java.SimpleConstant, Java.ThisReference
Enclosing class:
Java

public abstract static class Java.Rvalue
extends Java.Atom
implements Java.ArrayInitializerOrRvalue, Java.ElementValue

Representation of an "rvalue", i.e. an expression that has a type and a value, but cannot be assigned to: An expression that can be the right-hand-side of an assignment.


Field Summary
 
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
 
Constructor Summary
protected Java.Rvalue(Location location)
           
 
Method Summary
abstract  void accept(Visitor.RvalueVisitor rvv)
          Invokes the 'visit...()' method of Visitor.RvalueVisitor for the concrete Java.Rvalue type.
 Java.BlockStatement getEnclosingBlockStatement()
           
 void setEnclosingBlockStatement(Java.BlockStatement enclosingBlockStatement)
          Sets enclosing block statement for this object and all subordinate Java.Rvalue objects.
 Java.Rvalue toRvalue()
           
 
Methods inherited from class org.codehaus.janino.Java.Atom
accept, toLvalue, toLvalueOrCompileException, toRvalueOrCompileException, toString, toType, toTypeOrCompileException
 
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwCompileException
 
Methods inherited from interface org.codehaus.janino.Java.ElementValue
accept
 

Constructor Detail

Java.Rvalue

protected Java.Rvalue(Location location)
Method Detail

setEnclosingBlockStatement

public final void setEnclosingBlockStatement(Java.BlockStatement enclosingBlockStatement)
Sets enclosing block statement for this object and all subordinate Java.Rvalue objects.


getEnclosingBlockStatement

public Java.BlockStatement getEnclosingBlockStatement()
Returns:
The enclosing block statement, as set with setEnclosingBlockStatement(Java.BlockStatement)

toRvalue

public Java.Rvalue toRvalue()
Overrides:
toRvalue in class Java.Atom
Returns:
This atom, converted to Java.Rvalue, or null if this atom is not an rvalue

accept

public abstract void accept(Visitor.RvalueVisitor rvv)
Invokes the 'visit...()' method of Visitor.RvalueVisitor for the concrete Java.Rvalue type.


janino.net