jellyj.syntaxtree
Class MethodDeclarationNode

jellyj.syntaxtree.SyntaxTreeNode
  |
  +--jellyj.syntaxtree.ClassBodyDeclarationNode
        |
        +--jellyj.syntaxtree.MethodDeclarationNode
Direct Known Subclasses:
ConstructorDeclarationNode

public class MethodDeclarationNode
extends ClassBodyDeclarationNode


Field Summary
 BlockNodeblock_d
           
 Vectorexceptions_d
           
 Vectorformals_d
           
 Symbolname_d
           
 static intNUMBER_FORMALS
           
 booleanoverriding
           
 Integerscope_d
           

Fields inherited from class jellyj.syntaxtree.ClassBodyDeclarationNode
accessFlags_d, type_d

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

Constructor Summary
MethodDeclarationNode()
           

Method Summary
 voidencodeType()
          Move the ['s defined on the method name to the type and encode param types with return types.
 voidtranslate(ClassGen classGen)
           
 TypetypeCheck(SymbolTable stable)
           

Methods inherited from class jellyj.syntaxtree.ClassBodyDeclarationNode
isFinal, isInstance, isPrivate, isProtected, isPublic, isStatic, type

Field Detail

block_d

public BlockNode block_d

exceptions_d

public Vector exceptions_d

formals_d

public Vector formals_d

name_d

public Symbol name_d

NUMBER_FORMALS

public static int NUMBER_FORMALS

overriding

public boolean overriding

scope_d

public Integer scope_d
Constructor Detail

MethodDeclarationNode

public MethodDeclarationNode()
Method Detail

encodeType

public void encodeType()
Move the ['s defined on the method name to the type and encode param types with return types.

translate

public void translate(ClassGen classGen)

typeCheck

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

Association Links

to Class jellyj.util.Symbol

to Class java.util.Vector

to Class java.util.Vector

to Class jellyj.syntaxtree.BlockNode

to Class java.lang.Integer