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, waitfindTypeParameter, getLastParam, getQualifiedName, getQualifiedSignature, getSignature, hasVariadicParameterasField, asMethod, asParameter, asType, hasName, isMethodpublic ReflectionMethodDeclaration(Method method, TypeSolver typeSolver)
public String getName()
getName in interface Declarationpublic boolean isField()
isField in interface Declarationpublic boolean isParameter()
isParameter in interface Declarationpublic boolean isType()
isType in interface Declarationpublic TypeDeclaration declaringType()
declaringType in interface MethodLikeDeclarationpublic Type getReturnType()
getReturnType in interface MethodDeclarationpublic int getNumberOfParams()
getNumberOfParams in interface MethodLikeDeclarationpublic ParameterDeclaration getParam(int i)
getParam in interface MethodLikeDeclarationpublic MethodUsage getUsage(com.github.javaparser.ast.Node node)
public List<TypeParameterDeclaration> getTypeParameters()
getTypeParameters in interface TypeParametrizablepublic MethodUsage resolveTypeVariables(Context context, List<Type> parameterTypes)
public boolean isAbstract()
isAbstract in interface MethodDeclarationpublic boolean isDefaultMethod()
isDefaultMethod in interface MethodDeclarationpublic AccessLevel accessLevel()
accessLevel in interface HasAccessLevelCopyright © 2016. All rights reserved.