All Packages Class Hierarchy This Package Previous Next Index
Class espresso.syntaxtree.FieldExpNode
java.lang.Object
|
+----espresso.syntaxtree.SyntaxTreeNode
|
+----espresso.syntaxtree.ExpressionNode
|
+----espresso.syntaxtree.FieldExpNode
- public class FieldExpNode
- extends ExpressionNode
-
index_d
- The index in the fields vector where the name was found.
-
left_d
- A ref to the expression to the left of the dot.
-
methodNode_d
- A ref to the AST node of the method where the field is being
accessed.
-
name_d
- Name of the field being accessed.
-
node_d
- A reference to the AST node.
-
FieldExpNode(ExpressionNode, String, MethodDeclarationNode)
-
-
FieldExpNode(ExpressionNode, Symbol, MethodDeclarationNode)
-
-
evaluate(SymbolTable)
-
-
translate(ClassGen, MethodGen)
-
-
translateSynthesized(ClassGen, MethodGen)
- First translate the expression and then synthesize it.
-
typeCheck(SymbolTable)
-
name_d
public Symbol name_d
- Name of the field being accessed.
left_d
public ExpressionNode left_d
- A ref to the expression to the left of the dot. Must be of
some ClassType.
node_d
public FieldDeclarationNode node_d
- A reference to the AST node.
index_d
public int index_d
- The index in the fields vector where the name was found.
methodNode_d
public MethodDeclarationNode methodNode_d
- A ref to the AST node of the method where the field is being
accessed. Null if called from a static initializer.
FieldExpNode
public FieldExpNode(ExpressionNode left,
Symbol name,
MethodDeclarationNode mnode)
FieldExpNode
public FieldExpNode(ExpressionNode left,
String name,
MethodDeclarationNode mnode)
evaluate
public BigDecimal evaluate(SymbolTable stable) throws NotConstant
- Overrides:
- evaluate in class ExpressionNode
typeCheck
public Type typeCheck(SymbolTable stable) throws TypeCheckError
- Overrides:
- typeCheck in class ExpressionNode
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