Package org.codehaus.janino
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 org.codehaus.janino.Java.Rvalue
CONSTANT_VALUE_UNKNOWN, constantValue
Fields inherited from class org.codehaus.janino.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 org.codehaus.janino.Java.Rvalue
accept, accept, getEnclosingScope, getEnclosingScopeOrNull, setEnclosingScope, toRvalue
Methods inherited from class org.codehaus.janino.Java.Atom
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
-
Constructor Details
-
Lvalue
-
-
Method Details
-
toLvalue
- Overrides:
toLvalue
in classJava.Atom
- Returns:
- This atom, converted to
Java.Lvalue
, ornull
if 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 extends Throwable
-
accept
@Nullable public final <R,EX extends Throwable> R accept(Visitor.RvalueVisitor<R, EX> visitor) throws EXDescription copied from class:Java.Rvalue
- Specified by:
accept
in classJava.Rvalue
- Throws:
EX extends Throwable
-