Class ReflectionMethodDeclaration
java.lang.Object
com.github.javaparser.symbolsolver.reflectionmodel.ReflectionMethodDeclaration
- All Implemented Interfaces:
AssociableToAST<MethodDeclaration>,HasAccessSpecifier,ResolvedDeclaration,ResolvedMethodDeclaration,ResolvedMethodLikeDeclaration,ResolvedTypeParametrizable,TypeVariableResolutionCapability
public class ReflectionMethodDeclaration
extends Object
implements ResolvedMethodDeclaration, TypeVariableResolutionCapability
- Author:
- Federico Tomassetti
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()intintgetParam(int i)getSpecifiedException(int index)booleanbooleanbooleanisField()booleanbooleanisStatic()booleanisType()resolveTypeVariables(Context context, List<ResolvedType> parameterTypes)toAst()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asPattern, asType, hasName, isEnumConstant, isMethod, isPattern, isVariableMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration
findTypeParameter, getClassName, getLastParam, getPackageName, getQualifiedName, getQualifiedSignature, getSignature, getSpecifiedExceptions, hasVariadicParameterMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
isGeneric
-
Constructor Details
-
ReflectionMethodDeclaration
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceResolvedDeclaration
-
isField
public boolean isField()- Specified by:
isFieldin interfaceResolvedDeclaration
-
isParameter
public boolean isParameter()- Specified by:
isParameterin interfaceResolvedDeclaration
-
toString
-
isType
public boolean isType()- Specified by:
isTypein interfaceResolvedDeclaration
-
declaringType
- Specified by:
declaringTypein interfaceResolvedMethodLikeDeclaration
-
getReturnType
- Specified by:
getReturnTypein interfaceResolvedMethodDeclaration
-
getNumberOfParams
public int getNumberOfParams()- Specified by:
getNumberOfParamsin interfaceResolvedMethodLikeDeclaration
-
getParam
- Specified by:
getParamin interfaceResolvedMethodLikeDeclaration
-
getTypeParameters
- Specified by:
getTypeParametersin interfaceResolvedTypeParametrizable
-
resolveTypeVariables
- Specified by:
resolveTypeVariablesin interfaceTypeVariableResolutionCapability
-
isAbstract
public boolean isAbstract()- Specified by:
isAbstractin interfaceResolvedMethodDeclaration
-
isDefaultMethod
public boolean isDefaultMethod()- Specified by:
isDefaultMethodin interfaceResolvedMethodDeclaration
-
isStatic
public boolean isStatic()- Specified by:
isStaticin interfaceResolvedMethodDeclaration
-
accessSpecifier
- Specified by:
accessSpecifierin interfaceHasAccessSpecifier
-
getNumberOfSpecifiedExceptions
public int getNumberOfSpecifiedExceptions()- Specified by:
getNumberOfSpecifiedExceptionsin interfaceResolvedMethodLikeDeclaration
-
getSpecifiedException
- Specified by:
getSpecifiedExceptionin interfaceResolvedMethodLikeDeclaration
-
toAst
- Specified by:
toAstin interfaceAssociableToAST<MethodDeclaration>
-