All Packages Class Hierarchy This Package Previous Next Index
Class espresso.syntaxtree.MethodDeclarationNode
java.lang.Object
|
+----espresso.syntaxtree.SyntaxTreeNode
|
+----espresso.syntaxtree.ClassBodyDeclarationNode
|
+----espresso.syntaxtree.MethodDeclarationNode
- public class MethodDeclarationNode
- extends ClassBodyDeclarationNode
-
block_d
-
-
exceptions_d
-
-
formals_d
-
-
name_d
-
-
NUMBER_FORMALS
-
-
scope_d
-
-
MethodDeclarationNode()
-
-
argsNames()
-
-
argsType()
-
-
encodeType()
- Move the ['s defined on the method name to the type and encode
param types with return types.
-
isReturn(Instruction)
-
-
returnType()
-
-
translate(ClassGen)
-
-
typeCheck(SymbolTable)
-
NUMBER_FORMALS
public static int NUMBER_FORMALS
name_d
public Symbol name_d
formals_d
public Vector formals_d
exceptions_d
public Vector exceptions_d
block_d
public BlockNode block_d
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.
- Overrides:
- encodeType in class ClassBodyDeclarationNode
typeCheck
public Type typeCheck(SymbolTable stable) throws TypeCheckError
- Overrides:
- typeCheck in class ClassBodyDeclarationNode
argsNames
protected String[] argsNames()
argsType
protected ClassGenType[] argsType()
returnType
protected ClassGenType returnType()
isReturn
protected boolean isReturn(Instruction in)
translate
public void translate(ClassGen classGen)
- Overrides:
- translate in class ClassBodyDeclarationNode
All Packages Class Hierarchy This Package Previous Next Index