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, constantValueFields 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, accept, getEnclosingScope, getEnclosingScopeOrNull, setEnclosingScope, toRvalueMethods inherited from class org.codehaus.janino.Java.Atom
toLvalueOrCompileException, toRvalueOrCompileException, toString, toType, toTypeOrCompileExceptionMethods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileExceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.codehaus.janino.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
-