public class ReflectionMethodDeclaration extends Object implements ResolvedMethodDeclaration, TypeVariableResolutionCapability
| Constructor and Description |
|---|
ReflectionMethodDeclaration(Method method,
TypeSolver typeSolver) |
| Modifier and Type | Method and Description |
|---|---|
AccessSpecifier |
accessSpecifier() |
ResolvedReferenceTypeDeclaration |
declaringType() |
String |
getName() |
int |
getNumberOfParams() |
int |
getNumberOfSpecifiedExceptions() |
ResolvedParameterDeclaration |
getParam(int i) |
ResolvedType |
getReturnType() |
ResolvedType |
getSpecifiedException(int index) |
List<ResolvedTypeParameterDeclaration> |
getTypeParameters() |
boolean |
isAbstract() |
boolean |
isDefaultMethod() |
boolean |
isField() |
boolean |
isParameter() |
boolean |
isStatic() |
boolean |
isType() |
MethodUsage |
resolveTypeVariables(Context context,
List<ResolvedType> parameterTypes) |
Optional<MethodDeclaration> |
toAst() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindTypeParameter, getClassName, getLastParam, getPackageName, getQualifiedName, getQualifiedSignature, getSignature, getSpecifiedExceptions, hasVariadicParameterasEnumConstant, asField, asMethod, asParameter, asPattern, asType, hasName, isEnumConstant, isMethod, isPattern, isVariableisGenericpublic ReflectionMethodDeclaration(Method method, TypeSolver typeSolver)
public String getName()
getName in interface ResolvedDeclarationpublic boolean isField()
isField in interface ResolvedDeclarationpublic boolean isParameter()
isParameter in interface ResolvedDeclarationpublic boolean isType()
isType in interface ResolvedDeclarationpublic ResolvedReferenceTypeDeclaration declaringType()
declaringType in interface ResolvedMethodLikeDeclarationpublic ResolvedType getReturnType()
getReturnType in interface ResolvedMethodDeclarationpublic int getNumberOfParams()
getNumberOfParams in interface ResolvedMethodLikeDeclarationpublic ResolvedParameterDeclaration getParam(int i)
getParam in interface ResolvedMethodLikeDeclarationpublic List<ResolvedTypeParameterDeclaration> getTypeParameters()
getTypeParameters in interface ResolvedTypeParametrizablepublic MethodUsage resolveTypeVariables(Context context, List<ResolvedType> parameterTypes)
resolveTypeVariables in interface TypeVariableResolutionCapabilitypublic boolean isAbstract()
isAbstract in interface ResolvedMethodDeclarationpublic boolean isDefaultMethod()
isDefaultMethod in interface ResolvedMethodDeclarationpublic boolean isStatic()
isStatic in interface ResolvedMethodDeclarationpublic AccessSpecifier accessSpecifier()
accessSpecifier in interface HasAccessSpecifierpublic int getNumberOfSpecifiedExceptions()
getNumberOfSpecifiedExceptions in interface ResolvedMethodLikeDeclarationpublic ResolvedType getSpecifiedException(int index)
getSpecifiedException in interface ResolvedMethodLikeDeclarationpublic Optional<MethodDeclaration> toAst()
toAst in interface AssociableToAST<MethodDeclaration>Copyright © 2007–2020. All rights reserved.