public class JavassistMethodDeclaration extends Object implements MethodDeclaration
Constructor and Description |
---|
JavassistMethodDeclaration(javassist.CtMethod ctMethod,
TypeSolver typeSolver) |
Modifier and Type | Method and Description |
---|---|
AccessLevel |
accessLevel() |
ReferenceTypeDeclaration |
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, wait
findTypeParameter, getLastParam, getQualifiedName, getQualifiedSignature, getSignature, hasVariadicParameter
asField, asMethod, asParameter, asType, hasName, isMethod
public JavassistMethodDeclaration(javassist.CtMethod ctMethod, TypeSolver typeSolver)
public boolean isDefaultMethod()
isDefaultMethod
in interface MethodDeclaration
public String getName()
getName
in interface Declaration
public boolean isField()
isField
in interface Declaration
public boolean isParameter()
isParameter
in interface Declaration
public boolean isType()
isType
in interface Declaration
public ReferenceTypeDeclaration declaringType()
declaringType
in interface MethodLikeDeclaration
public Type getReturnType()
getReturnType
in interface MethodDeclaration
public int getNumberOfParams()
getNumberOfParams
in interface MethodLikeDeclaration
public ParameterDeclaration getParam(int i)
getParam
in interface MethodLikeDeclaration
public MethodUsage getUsage(com.github.javaparser.ast.Node node)
public MethodUsage resolveTypeVariables(Context context, List<Type> parameterTypes)
public boolean isAbstract()
isAbstract
in interface MethodDeclaration
public List<TypeParameterDeclaration> getTypeParameters()
getTypeParameters
in interface TypeParametrizable
public AccessLevel accessLevel()
accessLevel
in interface HasAccessLevel
Copyright © 2016. All rights reserved.