Package | Description |
---|---|
com.github.javaparser.ast.body | |
com.github.javaparser.ast.nodeTypes | |
com.github.javaparser.ast.visitor |
Modifier and Type | Method and Description |
---|---|
MethodDeclaration |
FieldDeclaration.createGetter()
Create a getter for this field, will only work if this field declares only 1 identifier and if this field is
already added to a ClassOrInterfaceDeclaration
|
MethodDeclaration |
FieldDeclaration.createSetter()
Create a setter for this field, will only work if this field declares only 1 identifier and if this field is
already added to a ClassOrInterfaceDeclaration
|
MethodDeclaration |
MethodDeclaration.setArrayBracketPairsAfterElementType(NodeList<ArrayBracketPair> arrayBracketPairsAfterType) |
MethodDeclaration |
MethodDeclaration.setArrayBracketPairsAfterParameterList(NodeList<ArrayBracketPair> arrayBracketPairsAfterParameterList) |
MethodDeclaration |
MethodDeclaration.setBody(Optional<BlockStmt> body) |
MethodDeclaration |
MethodDeclaration.setDefault(boolean isDefault) |
MethodDeclaration |
MethodDeclaration.setElementType(Type elementType) |
MethodDeclaration |
MethodDeclaration.setModifiers(EnumSet<Modifier> modifiers) |
MethodDeclaration |
MethodDeclaration.setName(String name) |
MethodDeclaration |
MethodDeclaration.setNameExpr(NameExpr name) |
MethodDeclaration |
MethodDeclaration.setParameters(NodeList<Parameter> parameters) |
MethodDeclaration |
MethodDeclaration.setThrows(NodeList<ReferenceType<?>> throws_) |
MethodDeclaration |
MethodDeclaration.setType(Type type) |
MethodDeclaration |
MethodDeclaration.setTypeParameters(NodeList<TypeParameter> typeParameters) |
Modifier and Type | Method and Description |
---|---|
default MethodDeclaration |
NodeWithMembers.addMethod(String methodName,
Modifier... modifiers)
Adds a methods with void return by default to this
|
Modifier and Type | Method and Description |
---|---|
default List<MethodDeclaration> |
NodeWithMembers.getMethods()
Find all methods in the members of this node.
|
default List<MethodDeclaration> |
NodeWithMembers.getMethodsByName(String name)
Try to find a
MethodDeclaration by its name |
default List<MethodDeclaration> |
NodeWithMembers.getMethodsByParameterTypes(Class<?>... paramTypes)
Try to find a
MethodDeclaration by its parameters types |
default List<MethodDeclaration> |
NodeWithMembers.getMethodsByParameterTypes(String... paramTypes)
Try to find a
MethodDeclaration by its parameters types |
Modifier and Type | Method and Description |
---|---|
R |
GenericVisitor.visit(MethodDeclaration n,
A arg) |
void |
VoidVisitor.visit(MethodDeclaration n,
A arg) |
void |
VoidVisitorAdapter.visit(MethodDeclaration n,
A arg) |
Node |
ModifierVisitorAdapter.visit(MethodDeclaration n,
A arg) |
R |
GenericVisitorAdapter.visit(MethodDeclaration n,
A arg) |
Boolean |
EqualsVisitor.visit(MethodDeclaration n1,
Node arg) |
void |
DumpVisitor.visit(MethodDeclaration n,
Object arg) |
Node |
CloneVisitor.visit(MethodDeclaration _n,
Object _arg) |
Copyright © 2007–2016. All rights reserved.