Uses of Class
com.github.javaparser.ast.body.MethodDeclaration
-
-
Uses of MethodDeclaration in com.github.javaparser.ast.body
Methods in com.github.javaparser.ast.body that return MethodDeclaration Modifier and Type Method Description MethodDeclaration
BodyDeclaration. asMethodDeclaration()
MethodDeclaration
MethodDeclaration. asMethodDeclaration()
MethodDeclaration
MethodDeclaration. clone()
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 ClassOrInterfaceDeclarationMethodDeclaration
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 ClassOrInterfaceDeclarationMethodDeclaration
MethodDeclaration. removeBody()
MethodDeclaration
MethodDeclaration. setBody(BlockStmt body)
Sets the bodyMethodDeclaration
MethodDeclaration. setDefault(boolean set)
MethodDeclaration
MethodDeclaration. setModifiers(NodeList<Modifier> modifiers)
MethodDeclaration
MethodDeclaration. setName(SimpleName name)
MethodDeclaration
MethodDeclaration. setNative(boolean set)
MethodDeclaration
MethodDeclaration. setParameters(NodeList<Parameter> parameters)
MethodDeclaration
MethodDeclaration. setSynchronized(boolean set)
MethodDeclaration
MethodDeclaration. setThrownExceptions(NodeList<ReferenceType> thrownExceptions)
MethodDeclaration
MethodDeclaration. setType(Type type)
MethodDeclaration
MethodDeclaration. setTypeParameters(NodeList<TypeParameter> typeParameters)
Methods in com.github.javaparser.ast.body that return types with arguments of type MethodDeclaration Modifier and Type Method Description Optional<MethodDeclaration>
BodyDeclaration. toMethodDeclaration()
Optional<MethodDeclaration>
MethodDeclaration. toMethodDeclaration()
Method parameters in com.github.javaparser.ast.body with type arguments of type MethodDeclaration Modifier and Type Method Description void
BodyDeclaration. ifMethodDeclaration(Consumer<MethodDeclaration> action)
void
MethodDeclaration. ifMethodDeclaration(Consumer<MethodDeclaration> action)
-
Uses of MethodDeclaration in com.github.javaparser.ast.nodeTypes
Methods in com.github.javaparser.ast.nodeTypes that return MethodDeclaration Modifier and Type Method Description default MethodDeclaration
NodeWithMembers. addMethod(String methodName, Modifier.Keyword... modifiers)
Adds a methods with void return by default to this.Methods in com.github.javaparser.ast.nodeTypes that return types with arguments of type MethodDeclaration Modifier and Type Method 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 aMethodDeclaration
by its namedefault List<MethodDeclaration>
NodeWithMembers. getMethodsByParameterTypes(Class<?>... paramTypes)
Try to find aMethodDeclaration
by its parameters typesdefault List<MethodDeclaration>
NodeWithMembers. getMethodsByParameterTypes(String... paramTypes)
Try to find aMethodDeclaration
by its parameters typesdefault List<MethodDeclaration>
NodeWithMembers. getMethodsBySignature(String name, String... paramTypes)
Try to findMethodDeclaration
s by their name and parameters types -
Uses of MethodDeclaration in com.github.javaparser.ast.validator.chunks
Methods in com.github.javaparser.ast.validator.chunks with parameters of type MethodDeclaration Modifier and Type Method Description void
ModifierValidator. visit(MethodDeclaration n, ProblemReporter reporter)
-
Uses of MethodDeclaration in com.github.javaparser.ast.visitor
Methods in com.github.javaparser.ast.visitor with parameters of type MethodDeclaration Modifier and Type Method Description Visitable
CloneVisitor. visit(MethodDeclaration n, Object arg)
Boolean
EqualsVisitor. visit(MethodDeclaration n, Visitable arg)
List<R>
GenericListVisitorAdapter. visit(MethodDeclaration n, A arg)
R
GenericVisitor. visit(MethodDeclaration n, A arg)
R
GenericVisitorAdapter. visit(MethodDeclaration n, A arg)
R
GenericVisitorWithDefaults. visit(MethodDeclaration n, A arg)
Integer
HashCodeVisitor. visit(MethodDeclaration n, Void arg)
Visitable
ModifierVisitor. visit(MethodDeclaration n, A arg)
Boolean
NoCommentEqualsVisitor. visit(MethodDeclaration n, Visitable arg)
Integer
NoCommentHashCodeVisitor. visit(MethodDeclaration n, Void arg)
Boolean
ObjectIdentityEqualsVisitor. visit(MethodDeclaration n, Visitable arg)
Integer
ObjectIdentityHashCodeVisitor. visit(MethodDeclaration n, Void arg)
void
VoidVisitor. visit(MethodDeclaration n, A arg)
void
VoidVisitorAdapter. visit(MethodDeclaration n, A arg)
void
VoidVisitorWithDefaults. visit(MethodDeclaration n, A arg)
-
Uses of MethodDeclaration in com.github.javaparser.printer
Methods in com.github.javaparser.printer with parameters of type MethodDeclaration Modifier and Type Method Description void
PrettyPrintVisitor. visit(MethodDeclaration n, Void arg)
-