public class JavaParserMethodDeclaration extends Object implements com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration
| Constructor and Description |
|---|
JavaParserMethodDeclaration(com.github.javaparser.ast.body.MethodDeclaration wrappedNode,
TypeSolver typeSolver) |
| Modifier and Type | Method and Description |
|---|---|
com.github.javaparser.ast.AccessSpecifier |
accessSpecifier() |
com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration |
declaringType() |
String |
getName() |
int |
getNumberOfParams() |
int |
getNumberOfSpecifiedExceptions() |
com.github.javaparser.resolution.declarations.ResolvedParameterDeclaration |
getParam(int i) |
com.github.javaparser.resolution.types.ResolvedType |
getReturnType() |
com.github.javaparser.resolution.types.ResolvedType |
getSpecifiedException(int index) |
List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> |
getTypeParameters() |
com.github.javaparser.resolution.MethodUsage |
getUsage(com.github.javaparser.ast.Node node) |
com.github.javaparser.ast.body.MethodDeclaration |
getWrappedNode()
Returns the JavaParser node associated with this JavaParserMethodDeclaration.
|
boolean |
isAbstract() |
boolean |
isDefaultMethod() |
boolean |
isField() |
boolean |
isParameter() |
boolean |
isStatic() |
boolean |
isType() |
com.github.javaparser.resolution.MethodUsage |
resolveTypeVariables(Context context,
List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes) |
Optional<com.github.javaparser.ast.body.MethodDeclaration> |
toAst() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindTypeParameter, getClassName, getLastParam, getPackageName, getQualifiedName, getQualifiedSignature, getSignature, getSpecifiedExceptions, hasVariadicParameterpublic JavaParserMethodDeclaration(com.github.javaparser.ast.body.MethodDeclaration wrappedNode,
TypeSolver typeSolver)
public com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration declaringType()
declaringType in interface com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclarationpublic com.github.javaparser.resolution.types.ResolvedType getReturnType()
getReturnType in interface com.github.javaparser.resolution.declarations.ResolvedMethodDeclarationpublic int getNumberOfParams()
getNumberOfParams in interface com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclarationpublic com.github.javaparser.resolution.declarations.ResolvedParameterDeclaration getParam(int i)
getParam in interface com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclarationpublic com.github.javaparser.resolution.MethodUsage getUsage(com.github.javaparser.ast.Node node)
public com.github.javaparser.resolution.MethodUsage resolveTypeVariables(Context context, List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes)
public boolean isAbstract()
isAbstract in interface com.github.javaparser.resolution.declarations.ResolvedMethodDeclarationpublic String getName()
getName in interface com.github.javaparser.resolution.declarations.ResolvedDeclarationpublic boolean isField()
isField in interface com.github.javaparser.resolution.declarations.ResolvedDeclarationpublic boolean isParameter()
isParameter in interface com.github.javaparser.resolution.declarations.ResolvedDeclarationpublic boolean isType()
isType in interface com.github.javaparser.resolution.declarations.ResolvedDeclarationpublic List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()
getTypeParameters in interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizablepublic boolean isDefaultMethod()
isDefaultMethod in interface com.github.javaparser.resolution.declarations.ResolvedMethodDeclarationpublic boolean isStatic()
isStatic in interface com.github.javaparser.resolution.declarations.ResolvedMethodDeclarationpublic com.github.javaparser.ast.body.MethodDeclaration getWrappedNode()
public com.github.javaparser.ast.AccessSpecifier accessSpecifier()
accessSpecifier in interface com.github.javaparser.resolution.declarations.HasAccessSpecifierpublic int getNumberOfSpecifiedExceptions()
getNumberOfSpecifiedExceptions in interface com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclarationpublic com.github.javaparser.resolution.types.ResolvedType getSpecifiedException(int index)
getSpecifiedException in interface com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclarationpublic Optional<com.github.javaparser.ast.body.MethodDeclaration> toAst()
toAst in interface com.github.javaparser.resolution.declarations.AssociableToAST<com.github.javaparser.ast.body.MethodDeclaration>Copyright © 2007–2018. All rights reserved.