Class Java.Lvalue
java.lang.Object
org.codehaus.janino.Java.Located
org.codehaus.janino.Java.Atom
org.codehaus.janino.Java.Rvalue
org.codehaus.janino.Java.Lvalue
- All Implemented Interfaces:
Java.ArrayInitializerOrRvalue, Java.ElementValue, Java.Locatable
- Direct Known Subclasses:
Java.AmbiguousName, Java.ArrayAccessExpression, Java.FieldAccess, Java.FieldAccessExpression, Java.LocalVariableAccess, Java.ParenthesizedExpression, Java.SuperclassFieldAccessExpression
- Enclosing class:
Java
Representation of an "lvalue", i.e. an expression that has a type and a value, and can be assigned to: An
expression that can be the left-hand-side of an assignment.
-
Field Summary
Fields inherited from class Java.Rvalue
CONSTANT_VALUE_UNKNOWN, constantValueFields inherited from class Java.Located
NOWHERE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract <R, EX extends Throwable>
Raccept(Visitor.LvalueVisitor<R, EX> lvv) final <R, EX extends Throwable>
Raccept(Visitor.RvalueVisitor<R, EX> visitor) toLvalue()Methods inherited from class Java.Rvalue
accept, accept, accept, getEnclosingScope, getEnclosingScopeOrNull, setEnclosingScope, toRvalueMethods inherited from class Java.Atom
toLvalueOrCompileException, toRvalueOrCompileException, toString, toType, toTypeOrCompileExceptionMethods inherited from class Java.Located
getLocation, throwCompileExceptionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Java.Locatable
getLocation, throwCompileException
-
Constructor Details
-
Lvalue
-
-
Method Details
-
toLvalue
- Overrides:
toLvaluein classJava.Atom- Returns:
- This atom, converted to
Java.Lvalue, ornullif this atom is not an lvalue
-
accept
@Nullable public abstract <R, EX extends Throwable> R accept(Visitor.LvalueVisitor<R, EX> lvv) throws EX- Throws:
EX
-
accept
@Nullable public final <R, EX extends Throwable> R accept(Visitor.RvalueVisitor<R, EX> visitor) throws EXDescription copied from class:Java.Rvalue- Specified by:
acceptin classJava.Rvalue- Throws:
EX
-