jellyj.syntaxtree
Class ConstructorInvocationNode

jellyj.syntaxtree.SyntaxTreeNode
  |
  +--jellyj.syntaxtree.ExpressionNode
        |
        +--jellyj.syntaxtree.ConstructorInvocationNode

public class ConstructorInvocationNode
extends ExpressionNode


Field Summary
 Vectorargs_d
          Vector containing invocation arguments.
 SymbolclassName_d
          Here we keep the type name to which the invoked constructor belongs.
 booleaninvocationThis_d
          True if "this" was used, false if "super" was used.
 Symbolname_d
          Name of this class or super class.
 MethodDeclarationNodenode_d
          A ref to the AST node.

Fields inherited from class jellyj.syntaxtree.ExpressionNode
falseList_d, leftValue_d, statementExp_d, trueList_d, type_d

Fields inherited from class jellyj.syntaxtree.SyntaxTreeNode
column_d, line_d

Constructor Summary
ConstructorInvocationNode()
           
ConstructorInvocationNode(Symbol name)
           

Method Summary
 voidtranslate(ClassGen classGen, MethodGen methodGen)
           
 TypetypeCheck(SymbolTable stable)
           

Methods inherited from class jellyj.syntaxtree.ExpressionNode
addFalseList, addTrueList, appendToFalseList, appendToTrueList, backPatch, desynthesize, evaluate, evaluateExp, leftValue, lookupPrimop, superExp, synthesize, thisExp, thisOrSuperExp, translateSynthesized, type, typeExp, variableExp

Field Detail

args_d

public Vector args_d
Vector containing invocation arguments.

className_d

public Symbol className_d
Here we keep the type name to which the invoked constructor belongs.

invocationThis_d

public boolean invocationThis_d
True if "this" was used, false if "super" was used.

name_d

public Symbol name_d
Name of this class or super class.

node_d

public MethodDeclarationNode node_d
A ref to the AST node.
Constructor Detail

ConstructorInvocationNode

public ConstructorInvocationNode()

ConstructorInvocationNode

public ConstructorInvocationNode(Symbol name)
Method Detail

translate

public void translate(ClassGen classGen, MethodGen methodGen)

typeCheck

public Type typeCheck(SymbolTable stable)
throws jellyj.util.TypeCheckError

Association Links

to Class java.util.Vector

Vector containing invocation arguments.

to Class jellyj.util.Symbol

Name of this class or super class.

to Class jellyj.syntaxtree.MethodDeclarationNode

A ref to the AST node.

to Class jellyj.util.Symbol

Here we keep the type name to which the invoked constructor belongs.