Java.ArrayInitializerOrRvalue
, Java.ElementValue
, Java.Locatable
public static final class Java.Crement extends Java.Rvalue
Modifier and Type | Field | Description |
---|---|---|
Java.Lvalue |
operand |
The lvalue to operate upon.
|
String |
operator |
The operator; either "++" or "--".
|
boolean |
pre |
Whether this operation is 'pre' (TRUE) or 'post' (FALSE).
|
NOWHERE
Constructor | Description |
---|---|
Crement(Location location,
String operator,
Java.Lvalue operand) |
|
Crement(Location location,
Java.Lvalue operand,
String operator) |
Modifier and Type | Method | Description |
---|---|---|
void |
accept(Visitor.AtomVisitor visitor) |
|
void |
accept(Visitor.ElementValueVisitor visitor) |
Invokes the '
visit...() ' method of Visitor.ElementValueVisitor for the concrete Java.ElementValue type. |
void |
accept(Visitor.RvalueVisitor visitor) |
|
String |
toString() |
toLvalue, toLvalueOrCompileException, toRvalueOrCompileException, toType, toTypeOrCompileException
getLocation, throwCompileException
getLocation, throwCompileException
getEnclosingBlockStatement, setEnclosingBlockStatement, toRvalue
public final boolean pre
public final String operator
public final Java.Lvalue operand
public Crement(Location location, String operator, Java.Lvalue operand)
public Crement(Location location, Java.Lvalue operand, String operator)
public void accept(Visitor.AtomVisitor visitor)
Java.Atom
public void accept(Visitor.RvalueVisitor visitor)
Java.Rvalue
accept
in class Java.Rvalue
public void accept(Visitor.ElementValueVisitor visitor)
Java.ElementValue
visit...()
' method of Visitor.ElementValueVisitor
for the concrete Java.ElementValue
type.Copyright © 2001–2019. All rights reserved.