public final class MethodDeclaration extends BodyDeclaration
Constructor and Description |
---|
MethodDeclaration() |
MethodDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
JavadocComment javaDoc,
int modifiers,
List<AnnotationExpr> annotations,
List<TypeParameter> typeParameters,
Type type,
String name,
List<Parameter> parameters,
int arrayCount,
List<NameExpr> throws_,
BlockStmt block) |
MethodDeclaration(int modifiers,
Type type,
String name) |
MethodDeclaration(int modifiers,
Type type,
String name,
List<Parameter> parameters) |
MethodDeclaration(JavadocComment javaDoc,
int modifiers,
List<AnnotationExpr> annotations,
List<TypeParameter> typeParameters,
Type type,
String name,
List<Parameter> parameters,
int arrayCount,
List<NameExpr> throws_,
BlockStmt block) |
Modifier and Type | Method and Description |
---|---|
<R,A> R |
accept(GenericVisitor<R,A> v,
A arg)
Accept method for visitor support.
|
<A> void |
accept(VoidVisitor<A> v,
A arg)
Accept method for visitor support.
|
int |
getArrayCount() |
BlockStmt |
getBody() |
int |
getModifiers()
Return the modifiers of this member declaration.
|
String |
getName() |
List<Parameter> |
getParameters() |
List<NameExpr> |
getThrows() |
Type |
getType() |
List<TypeParameter> |
getTypeParameters() |
void |
setArrayCount(int arrayCount) |
void |
setBody(BlockStmt body) |
void |
setModifiers(int modifiers) |
void |
setName(String name) |
void |
setParameters(List<Parameter> parameters) |
void |
setThrows(List<NameExpr> throws_) |
void |
setType(Type type) |
void |
setTypeParameters(List<TypeParameter> typeParameters) |
getAnnotations, getJavaDoc, setAnnotations, setJavaDoc
equals, getBeginColumn, getBeginComments, getBeginIndex, getBeginLine, getData, getEndColumn, getEndComments, getEndIndex, getEndLine, getInternalComments, hashCode, setBeginColumn, setBeginComments, setBeginIndex, setBeginLine, setData, setEndColumn, setEndComments, setEndIndex, setEndLine, setInternalComments, toString
public MethodDeclaration()
public MethodDeclaration(int modifiers, Type type, String name, List<Parameter> parameters)
public MethodDeclaration(JavadocComment javaDoc, int modifiers, List<AnnotationExpr> annotations, List<TypeParameter> typeParameters, Type type, String name, List<Parameter> parameters, int arrayCount, List<NameExpr> throws_, BlockStmt block)
public MethodDeclaration(int beginLine, int beginColumn, int endLine, int endColumn, JavadocComment javaDoc, int modifiers, List<AnnotationExpr> annotations, List<TypeParameter> typeParameters, Type type, String name, List<Parameter> parameters, int arrayCount, List<NameExpr> throws_, BlockStmt block)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Node
public <A> void accept(VoidVisitor<A> v, A arg)
Node
public int getArrayCount()
public BlockStmt getBody()
public int getModifiers()
ModifierSet
public String getName()
public Type getType()
public List<TypeParameter> getTypeParameters()
public void setArrayCount(int arrayCount)
public void setBody(BlockStmt body)
public void setModifiers(int modifiers)
public void setName(String name)
public void setType(Type type)
public void setTypeParameters(List<TypeParameter> typeParameters)
Copyright © 2013. All Rights Reserved.