jellyj.syntaxtree
Class MethodDeclarationNode
jellyj.syntaxtree.SyntaxTreeNode
|
+--jellyj.syntaxtree.ClassBodyDeclarationNode
|
+--jellyj.syntaxtree.MethodDeclarationNode
- Direct Known Subclasses:
- ConstructorDeclarationNode
- public class MethodDeclarationNode
- extends ClassBodyDeclarationNode
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
MethodDeclarationNode
public MethodDeclarationNode()
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
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