public class JavaParserMethodDeclaration extends Object implements MethodDeclaration
Constructor and Description |
---|
JavaParserMethodDeclaration(com.github.javaparser.ast.body.MethodDeclaration wrappedNode,
TypeSolver typeSolver) |
Modifier and Type | Method and Description |
---|---|
AccessLevel |
accessLevel() |
ReferenceTypeDeclaration |
declaringType() |
String |
getName() |
int |
getNumberOfParams() |
ParameterDeclaration |
getParam(int i) |
Type |
getReturnType() |
List<TypeParameterDeclaration> |
getTypeParameters() |
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 |
isType() |
MethodUsage |
resolveTypeVariables(Context context,
List<Type> parameterTypes) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findTypeParameter, getLastParam, getQualifiedName, getQualifiedSignature, getSignature, hasVariadicParameter
asField, asMethod, asParameter, asType, hasName, isMethod
public JavaParserMethodDeclaration(com.github.javaparser.ast.body.MethodDeclaration wrappedNode, TypeSolver typeSolver)
public ReferenceTypeDeclaration declaringType()
declaringType
in interface MethodLikeDeclaration
public Type getReturnType()
getReturnType
in interface MethodDeclaration
public int getNumberOfParams()
getNumberOfParams
in interface MethodLikeDeclaration
public ParameterDeclaration getParam(int i)
getParam
in interface MethodLikeDeclaration
public MethodUsage getUsage(com.github.javaparser.ast.Node node)
public MethodUsage resolveTypeVariables(Context context, List<Type> parameterTypes)
public boolean isAbstract()
isAbstract
in interface MethodDeclaration
public String getName()
getName
in interface Declaration
public boolean isField()
isField
in interface Declaration
public boolean isParameter()
isParameter
in interface Declaration
public boolean isType()
isType
in interface Declaration
public List<TypeParameterDeclaration> getTypeParameters()
getTypeParameters
in interface TypeParametrizable
public boolean isDefaultMethod()
isDefaultMethod
in interface MethodDeclaration
public com.github.javaparser.ast.body.MethodDeclaration getWrappedNode()
public AccessLevel accessLevel()
accessLevel
in interface HasAccessLevel
Copyright © 2016. All rights reserved.