All Packages Class Hierarchy This Package Previous Next Index
Class espresso.syntaxtree.AssignmentNode
java.lang.Object
|
+----espresso.syntaxtree.SyntaxTreeNode
|
+----espresso.syntaxtree.ExpressionNode
|
+----espresso.syntaxtree.AssignmentNode
- public class AssignmentNode
- extends ExpressionNode
-
gotor_d
- Instruction to be back patched.
-
left_d
-
-
operator_d
-
-
parent_d
- This pointer is only set if my parent node is also an assignment.
-
realLeft_d
- Ref to the left value of the assignemnt.
-
right_d
-
-
AssignmentNode()
-
-
AssignmentNode(ExpressionNode, ExpressionNode)
-
-
translate(ClassGen, MethodGen)
-
-
translateOp(ClassGen, MethodGen)
-
-
translateSynthesized(ClassGen, MethodGen)
- First translate the expression and then synthesize it.
-
typeCheck(SymbolTable)
-
operator_d
public int operator_d
left_d
public ExpressionNode left_d
right_d
public ExpressionNode right_d
gotor_d
private BranchHandle gotor_d
- Instruction to be back patched. Used for code generation.
realLeft_d
private ExpressionNode realLeft_d
- Ref to the left value of the assignemnt. Needed when a cast
expression is inserted by the type checker.
parent_d
public AssignmentNode parent_d
- This pointer is only set if my parent node is also an assignment.
Needed to insert dups in the instruction list.
AssignmentNode
public AssignmentNode()
AssignmentNode
public AssignmentNode(ExpressionNode left,
ExpressionNode right)
typeCheck
public Type typeCheck(SymbolTable stable) throws TypeCheckError
- Overrides:
- typeCheck in class ExpressionNode
translateOp
private void translateOp(ClassGen classGen,
MethodGen methodGen)
translateSynthesized
public BranchHandle translateSynthesized(ClassGen classGen,
MethodGen methodGen)
- First translate the expression and then synthesize it.
- Overrides:
- translateSynthesized in class ExpressionNode
translate
public void translate(ClassGen classGen,
MethodGen methodGen)
- Overrides:
- translate in class ExpressionNode
All Packages Class Hierarchy This Package Previous Next Index