Package javassist.compiler.ast
Class MethodDecl
- java.lang.Object
-
- javassist.compiler.ast.ASTree
-
- javassist.compiler.ast.ASTList
-
- javassist.compiler.ast.MethodDecl
-
- All Implemented Interfaces:
Serializable
public class MethodDecl extends ASTList
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MethodDecl(ASTree _head, ASTList _tail)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor v)
Is a method for the visitor pattern.Stmnt
getBody()
ASTList
getModifiers()
ASTList
getParams()
Declarator
getReturn()
ASTList
getThrows()
boolean
isConstructor()
-
-
-
Field Detail
-
initName
public static final String initName
- See Also:
- Constant Field Values
-
-
Method Detail
-
isConstructor
public boolean isConstructor()
-
getModifiers
public ASTList getModifiers()
-
getReturn
public Declarator getReturn()
-
getParams
public ASTList getParams()
-
getThrows
public ASTList getThrows()
-
getBody
public Stmnt getBody()
-
accept
public void accept(Visitor v) throws CompileError
Description copied from class:ASTree
Is a method for the visitor pattern. It callsatXXX()
on the given visitor, whereXXX
is the class name of the node object.- Overrides:
accept
in classASTList
- Throws:
CompileError
-
-