org.codehaus.janino
Class Java.Rvalue
java.lang.Object
org.codehaus.janino.Java.Located
org.codehaus.janino.Java.Atom
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.
Java.Rvalue
protected Java.Rvalue(Location location)
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.