public class ReflectionMethodDeclaration extends Object implements MethodDeclaration
| Constructor and Description |
|---|
ReflectionMethodDeclaration(Method method,
TypeSolver typeSolver) |
| Modifier and Type | Method and Description |
|---|---|
TypeDeclaration |
declaringType() |
String |
getName() |
int |
getNoParams() |
ParameterDeclaration |
getParam(int i) |
TypeUsage |
getReturnType() |
List<TypeParameter> |
getTypeParameters() |
MethodUsage |
getUsage(com.github.javaparser.ast.Node node) |
boolean |
isAbstract() |
boolean |
isField() |
boolean |
isPackageProtected() |
boolean |
isParameter() |
boolean |
isPrivate() |
boolean |
isType() |
boolean |
isVariable() |
MethodUsage |
resolveTypeVariables(Context context,
List<TypeUsage> parameterTypes) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLastParam, 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 isVariable()
isVariable in interface Declarationpublic boolean isType()
isType in interface Declarationpublic TypeDeclaration declaringType()
declaringType in interface MethodDeclarationpublic TypeUsage getReturnType()
getReturnType in interface MethodDeclarationpublic int getNoParams()
getNoParams in interface MethodDeclarationpublic ParameterDeclaration getParam(int i)
getParam in interface MethodDeclarationpublic MethodUsage getUsage(com.github.javaparser.ast.Node node)
public List<TypeParameter> getTypeParameters()
getTypeParameters in interface TypeParametrizedpublic MethodUsage resolveTypeVariables(Context context, List<TypeUsage> parameterTypes)
resolveTypeVariables in interface MethodDeclarationpublic boolean isAbstract()
isAbstract in interface MethodDeclarationpublic boolean isPrivate()
isPrivate in interface MethodDeclarationpublic boolean isPackageProtected()
isPackageProtected in interface MethodDeclarationCopyright © 2016. All rights reserved.