pt.compiler.parser.ast.body
Class MethodDeclaration
java.lang.Object
pt.compiler.parser.ast.Node
pt.compiler.parser.ast.body.BodyDeclaration
pt.compiler.parser.ast.body.MethodDeclaration
public final class MethodDeclaration
- extends BodyDeclaration
- Author:
- Julio Vilmar Gesser
Constructor Summary |
MethodDeclaration(int line,
int column,
JavadocComment javaDoc,
int modifiers,
java.util.List<AnnotationExpr> annotations,
java.util.List<TypeParameter> typeParameters,
Type type,
java.lang.String name,
java.util.List<Parameter> parameters,
int arrayCount,
java.util.List<NameExpr> throws_,
BlockStmt block)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MethodDeclaration
public MethodDeclaration(int line,
int column,
JavadocComment javaDoc,
int modifiers,
java.util.List<AnnotationExpr> annotations,
java.util.List<TypeParameter> typeParameters,
Type type,
java.lang.String name,
java.util.List<Parameter> parameters,
int arrayCount,
java.util.List<NameExpr> throws_,
BlockStmt block)
getModifiers
public int getModifiers()
getAnnotations
public java.util.List<AnnotationExpr> getAnnotations()
getTypeParameters
public java.util.List<TypeParameter> getTypeParameters()
getType
public Type getType()
getName
public java.lang.String getName()
getParameters
public java.util.List<Parameter> getParameters()
getArrayCount
public int getArrayCount()
getThrows
public java.util.List<NameExpr> getThrows()
getBody
public BlockStmt getBody()
accept
public <A> void accept(VoidVisitor<A> v,
A arg)
- Overrides:
accept
in class Node
accept
public <R,A> R accept(GenericVisitor<R,A> v,
A arg)
- Overrides:
accept
in class Node