public class AccessExpression extends BinaryExpression
Constructor and Description |
---|
AccessExpression(Expression lhs,
AccessOperator op,
Expression rhs)
Creates an assignment expression.
|
Modifier and Type | Method and Description |
---|---|
AccessExpression |
clone()
Returns a cloned AccessExpression object by calling the super
class,
BinaryExpression 's clone method. |
static void |
defaultPrint(AccessExpression e,
java.io.PrintWriter o)
Prints an assignment expression to a stream.
|
BinaryOperator |
getOperator()
Returns the operator of the expression.
|
static void |
setClassPrintMethod(java.lang.reflect.Method m)
Overrides the class print method, so that all subsequently
created objects will use the supplied method.
|
void |
setOperator(AccessOperator op)
Sets the operator for the expression.
|
defaultPrint, equals, getLHS, getRHS, setLHS, setOperator, setRHS, toString
compareTo, findExpression, getChildren, getParent, getStatement, hashCode, needsParens, print, printSelf, removeChild, setChild, setParens, setParent, setPrintMethod, swapWith, verify
public AccessExpression(Expression lhs, AccessOperator op, Expression rhs)
lhs
- The lefthand expression.op
- An assignment operator.rhs
- The righthand expression.NotAnOrphanException
- if lhs or rhs has a parent
object.public AccessExpression clone()
BinaryExpression
's clone method.clone
in class BinaryExpression
public static void defaultPrint(AccessExpression e, java.io.PrintWriter o)
e
- The expression to print.o
- The writer on which to print the expression.public BinaryOperator getOperator()
getOperator
in class BinaryExpression
public static void setClassPrintMethod(java.lang.reflect.Method m)
m
- The new print method.public void setOperator(AccessOperator op)
op
- The operator.