All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class openjava.ptree.AssignmentExpression

java.lang.Object
   |
   +----openjava.ptree.PtreeObject
           |
           +----openjava.ptree.NonLeaf
                   |
                   +----openjava.ptree.AssignmentExpression

public class AssignmentExpression
extends NonLeaf
implements Expression
The AssignmentExpression class represents an assignment expression with an assignment operator.

See Also:
Expression

Variable Index

 o ADD
 o AND
 o DIVIDE
 o EQUALS
 o MOD
 o MULT
 o OR
 o SHIFT_L
 o SHIFT_R
 o SHIFT_RR
 o SUB
 o XOR

Constructor Index

 o AssignmentExpression()
 o AssignmentExpression(Expression, int, Expression)
Allocates a new object.

Method Index

 o getKind()
 o getLeft()
Gets the expression of the left operand.
 o getOperator()
Gets the id number of the operator.
 o getRight()
Gets the expression of the right operand.
 o makeCopy()
Makes a new copy of this nonleaf-node as a ptree-node.
 o makeRecursiveCopy()
Makes a new copy (another object) of this nonleaf-node recursively.
 o setLeft(Expression)
Sets the expression of the left operand.
 o setOperator(int)
Sets the id number of the operator.
 o setRight(Expression)
Sets the expression of the right operand.
 o writeCode()
Writes the code this parse-tree presents for.

Variables

 o EQUALS
 public static final int EQUALS
 o MULT
 public static final int MULT
 o DIVIDE
 public static final int DIVIDE
 o MOD
 public static final int MOD
 o ADD
 public static final int ADD
 o SUB
 public static final int SUB
 o SHIFT_L
 public static final int SHIFT_L
 o SHIFT_R
 public static final int SHIFT_R
 o SHIFT_RR
 public static final int SHIFT_RR
 o AND
 public static final int AND
 o XOR
 public static final int XOR
 o OR
 public static final int OR

Constructors

 o AssignmentExpression
 public AssignmentExpression(Expression lexp,
                             int opr,
                             Expression rexp)
Allocates a new object.

Parameters:
lexp - the left expression.
opr - the id number of the operator.
rexp - the right expression.
 o AssignmentExpression
 public AssignmentExpression()

Methods

 o makeRecursiveCopy
 public Ptree makeRecursiveCopy()
Makes a new copy (another object) of this nonleaf-node recursively.

Overrides:
makeRecursiveCopy in class NonLeaf
 o makeCopy
 public Ptree makeCopy()
Makes a new copy of this nonleaf-node as a ptree-node.

Overrides:
makeCopy in class NonLeaf
 o writeCode
 public void writeCode()
Writes the code this parse-tree presents for.

Overrides:
writeCode in class NonLeaf
 o getLeft
 public Expression getLeft()
Gets the expression of the left operand.

Returns:
the left expression.
 o setLeft
 public void setLeft(Expression lexpr)
Sets the expression of the left operand.

Parameters:
lexpr - the left expression.
 o getRight
 public Expression getRight()
Gets the expression of the right operand.

Returns:
the right expression.
 o setRight
 public void setRight(Expression rexpr)
Sets the expression of the right operand.

Parameters:
rexpr - the right expression.
 o getOperator
 public int getOperator()
Gets the id number of the operator.

Returns:
the id number of the operator.
 o getKind
 public int getKind()
 o setOperator
 public void setOperator(int opr)
Sets the id number of the operator.

Parameters:
opr - the id number of the operator.

All Packages  Class Hierarchy  This Package  Previous  Next  Index