public final class MethodDeclaration extends BodyDeclaration implements org.walkmod.merger.Mergeable<MethodDeclaration>
| 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<ClassOrInterfaceType> throws_,
BlockStmt block) |
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<ClassOrInterfaceType> throws_,
BlockStmt block,
boolean isDefault) |
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<ClassOrInterfaceType> throws_,
BlockStmt block) |
MethodDeclaration(JavadocComment javaDoc,
int modifiers,
List<AnnotationExpr> annotations,
List<TypeParameter> typeParameters,
Type type,
String name,
List<Parameter> parameters,
int arrayCount,
List<ClassOrInterfaceType> throws_,
BlockStmt block,
boolean isDefault) |
| 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() |
Comparator<?> |
getIdentityComparator() |
int |
getModifiers()
Return the modifiers of this member declaration.
|
String |
getName() |
List<Parameter> |
getParameters() |
List<ClassOrInterfaceType> |
getThrows() |
Type |
getType() |
List<TypeParameter> |
getTypeParameters() |
boolean |
isDefault() |
void |
merge(MethodDeclaration remote,
org.walkmod.merger.MergeEngine configuration) |
void |
setArrayCount(int arrayCount) |
void |
setBody(BlockStmt body) |
void |
setDefault(boolean isDefault) |
void |
setModifiers(int modifiers) |
void |
setName(String name) |
void |
setParameters(List<Parameter> parameters) |
void |
setThrows(List<ClassOrInterfaceType> throws_) |
void |
setType(Type type) |
void |
setTypeParameters(List<TypeParameter> typeParameters) |
getAnnotations, getJavaDoc, merge, setAnnotations, setJavaDoccontains, equals, getBeginColumn, getBeginLine, getData, getEndColumn, getEndLine, hashCode, isInEqualLocation, isNewNode, isPreviousThan, setBeginColumn, setBeginLine, setData, setEndColumn, setEndLine, toStringpublic 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<ClassOrInterfaceType> throws_, BlockStmt block)
public MethodDeclaration(JavadocComment javaDoc, int modifiers, List<AnnotationExpr> annotations, List<TypeParameter> typeParameters, Type type, String name, List<Parameter> parameters, int arrayCount, List<ClassOrInterfaceType> throws_, BlockStmt block, boolean isDefault)
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<ClassOrInterfaceType> 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<ClassOrInterfaceType> throws_,
BlockStmt block,
boolean isDefault)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Nodepublic <A> void accept(VoidVisitor<A> v, A arg)
Nodepublic int getArrayCount()
public BlockStmt getBody()
public int getModifiers()
ModifierSetpublic String getName()
public List<ClassOrInterfaceType> getThrows()
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 setThrows(List<ClassOrInterfaceType> throws_)
public void setType(Type type)
public void setTypeParameters(List<TypeParameter> typeParameters)
public Comparator<?> getIdentityComparator()
getIdentityComparator in interface org.walkmod.merger.IdentificableNodepublic void merge(MethodDeclaration remote, org.walkmod.merger.MergeEngine configuration)
merge in interface org.walkmod.merger.Mergeable<MethodDeclaration>public boolean isDefault()
public void setDefault(boolean isDefault)
Copyright © 2015. All rights reserved.