public class JavassistMethodDeclaration extends Object implements ResolvedMethodDeclaration, TypeVariableResolutionCapability
Constructor and Description |
---|
JavassistMethodDeclaration(javassist.CtMethod ctMethod,
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() |
MethodUsage |
getUsage(Node node) |
boolean |
isAbstract() |
boolean |
isDefaultMethod() |
boolean |
isField() |
boolean |
isParameter() |
boolean |
isStatic() |
boolean |
isType() |
MethodUsage |
resolveTypeVariables(Context context,
List<ResolvedType> parameterTypes) |
String |
toDescriptor() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isReturnTypeSubstituable
findTypeParameter, formalParameterTypes, getClassName, getLastParam, getPackageName, getQualifiedName, getQualifiedSignature, getSignature, getSpecifiedExceptions, hasVariadicParameter
asEnumConstant, asField, asMethod, asParameter, asType, asTypePattern, hasName, isEnumConstant, isMethod, isTypePattern, isVariable
toAst, toAst
isGeneric
public JavassistMethodDeclaration(javassist.CtMethod ctMethod, TypeSolver typeSolver)
public boolean isDefaultMethod()
isDefaultMethod
in interface ResolvedMethodDeclaration
public boolean isStatic()
isStatic
in interface ResolvedMethodDeclaration
public String getName()
getName
in interface ResolvedDeclaration
public boolean isField()
isField
in interface ResolvedDeclaration
public boolean isParameter()
isParameter
in interface ResolvedDeclaration
public boolean isType()
isType
in interface ResolvedDeclaration
public ResolvedReferenceTypeDeclaration declaringType()
declaringType
in interface ResolvedMethodLikeDeclaration
public ResolvedType getReturnType()
getReturnType
in interface ResolvedMethodDeclaration
public int getNumberOfParams()
getNumberOfParams
in interface ResolvedMethodLikeDeclaration
public ResolvedParameterDeclaration getParam(int i)
getParam
in interface ResolvedMethodLikeDeclaration
public MethodUsage getUsage(Node node)
public MethodUsage resolveTypeVariables(Context context, List<ResolvedType> parameterTypes)
resolveTypeVariables
in interface TypeVariableResolutionCapability
public boolean isAbstract()
isAbstract
in interface ResolvedMethodDeclaration
public List<ResolvedTypeParameterDeclaration> getTypeParameters()
getTypeParameters
in interface ResolvedTypeParametrizable
public AccessSpecifier accessSpecifier()
accessSpecifier
in interface HasAccessSpecifier
public int getNumberOfSpecifiedExceptions()
getNumberOfSpecifiedExceptions
in interface ResolvedMethodLikeDeclaration
public ResolvedType getSpecifiedException(int index)
getSpecifiedException
in interface ResolvedMethodLikeDeclaration
public String toDescriptor()
toDescriptor
in interface ResolvedMethodDeclaration
Copyright © 2007–2024. All rights reserved.