public class ReflectionMethodDeclaration extends Object implements MethodDeclaration
Constructor and Description |
---|
ReflectionMethodDeclaration(Method method,
TypeSolver typeSolver) |
Modifier and Type | Method and Description |
---|---|
AccessLevel |
accessLevel() |
TypeDeclaration |
declaringType() |
String |
getName() |
int |
getNumberOfParams() |
ParameterDeclaration |
getParam(int i) |
Type |
getReturnType() |
List<TypeParameterDeclaration> |
getTypeParameters() |
MethodUsage |
getUsage(com.github.javaparser.ast.Node node) |
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 ReflectionMethodDeclaration(Method method, TypeSolver typeSolver)
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 TypeDeclaration 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 List<TypeParameterDeclaration> getTypeParameters()
getTypeParameters
in interface TypeParametrizable
public MethodUsage resolveTypeVariables(Context context, List<Type> parameterTypes)
public boolean isAbstract()
isAbstract
in interface MethodDeclaration
public boolean isDefaultMethod()
isDefaultMethod
in interface MethodDeclaration
public AccessLevel accessLevel()
accessLevel
in interface HasAccessLevel
Copyright © 2016. All rights reserved.