Uses of Class
com.github.javaparser.ast.body.MethodDeclaration
Packages that use MethodDeclaration
Package
Description
-
Uses of MethodDeclaration in com.github.javaparser
Fields in com.github.javaparser with type parameters of type MethodDeclarationModifier and TypeFieldDescriptionstatic final ParseStart
<MethodDeclaration> ParseStart.METHOD_DECLARATION
Methods in com.github.javaparser that return MethodDeclarationModifier and TypeMethodDescriptionfinal MethodDeclaration
GeneratedJavaParser.MethodDeclaration
(ModifierHolder modifier) https://docs.oracle.com/javase/specs/jls/se15/html/jls-8.html#jls-8.4final MethodDeclaration
GeneratedJavaParser.MethodDeclarationParseStart()
JavaParserAdapter.parseMethodDeclaration
(String methodDeclaration) static MethodDeclaration
StaticJavaParser.parseMethodDeclaration
(String methodDeclaration) Parses a method declaration and returns it as a MethodDeclaration.Methods in com.github.javaparser that return types with arguments of type MethodDeclarationModifier and TypeMethodDescriptionJavaParser.parseMethodDeclaration
(String methodDeclaration) Parses a method declaration and returns it as a MethodDeclaration. -
Uses of MethodDeclaration in com.github.javaparser.ast.body
Methods in com.github.javaparser.ast.body that return MethodDeclarationModifier and TypeMethodDescriptionBodyDeclaration.asMethodDeclaration()
MethodDeclaration.asMethodDeclaration()
MethodDeclaration.clone()
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 ClassOrInterfaceDeclarationFieldDeclaration.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.removeBody()
Sets the bodyMethodDeclaration.setDefault
(boolean set) MethodDeclaration.setModifiers
(NodeList<Modifier> modifiers) MethodDeclaration.setName
(SimpleName name) MethodDeclaration.setNative
(boolean set) MethodDeclaration.setParameters
(NodeList<Parameter> parameters) MethodDeclaration.setSynchronized
(boolean set) MethodDeclaration.setThrownExceptions
(NodeList<ReferenceType> thrownExceptions) MethodDeclaration.setTypeParameters
(NodeList<TypeParameter> typeParameters) Methods in com.github.javaparser.ast.body that return types with arguments of type MethodDeclarationModifier and TypeMethodDescriptionBodyDeclaration.toMethodDeclaration()
MethodDeclaration.toMethodDeclaration()
Method parameters in com.github.javaparser.ast.body with type arguments of type MethodDeclarationModifier and TypeMethodDescriptionvoid
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 MethodDeclarationModifier and TypeMethodDescriptiondefault 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 MethodDeclarationModifier and TypeMethodDescriptiondefault 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 parameter types.default List
<MethodDeclaration> NodeWithMembers.getMethodsByParameterTypes
(String... paramTypes) Try to find aMethodDeclaration
by its parameter types.default List
<MethodDeclaration> NodeWithMembers.getMethodsBySignature
(String name, String... paramTypes) Try to findMethodDeclaration
s by their name and parameter types. -
Uses of MethodDeclaration in com.github.javaparser.ast.validator.language_level_validations.chunks
Methods in com.github.javaparser.ast.validator.language_level_validations.chunks with parameters of type MethodDeclarationModifier and TypeMethodDescriptionvoid
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 MethodDeclarationModifier and TypeMethodDescriptionCloneVisitor.visit
(MethodDeclaration n, Object arg) EqualsVisitor.visit
(MethodDeclaration n, Visitable arg) GenericListVisitorAdapter.visit
(MethodDeclaration n, A arg) GenericVisitor.visit
(MethodDeclaration n, A arg) GenericVisitorAdapter.visit
(MethodDeclaration n, A arg) GenericVisitorWithDefaults.visit
(MethodDeclaration n, A arg) HashCodeVisitor.visit
(MethodDeclaration n, Void arg) ModifierVisitor.visit
(MethodDeclaration n, A arg) NoCommentEqualsVisitor.visit
(MethodDeclaration n, Visitable arg) NoCommentHashCodeVisitor.visit
(MethodDeclaration n, Void arg) void
NodeFinderVisitor.visit
(MethodDeclaration n, Range arg) ObjectIdentityEqualsVisitor.visit
(MethodDeclaration n, Visitable arg) 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 MethodDeclarationModifier and TypeMethodDescriptionvoid
DefaultPrettyPrinterVisitor.visit
(MethodDeclaration n, Void arg) void
PrettyPrintVisitor.visit
(MethodDeclaration n, Void arg) Deprecated. -
Uses of MethodDeclaration in com.github.javaparser.resolution
Methods in com.github.javaparser.resolution that return MethodDeclarationModifier and TypeMethodDescriptionstatic MethodDeclaration
Navigator.demandMethod
(TypeDeclaration<?> cd, String name) Methods in com.github.javaparser.resolution with parameters of type MethodDeclarationModifier and TypeMethodDescriptionstatic ReturnStmt
Navigator.demandReturnStmt
(MethodDeclaration method) static ReturnStmt
Navigator.findReturnStmt
(MethodDeclaration method) Deprecated.
Navigator.demandReturnStmt(MethodDeclaration)