public class JavassistMethodDeclaration extends Object implements MethodDeclaration
| Constructor and Description |
|---|
JavassistMethodDeclaration(javassist.CtMethod ctMethod,
TypeSolver typeSolver) |
| Modifier and Type | Method and Description |
|---|---|
AccessLevel |
accessLevel() |
TypeDeclaration |
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, waitfindTypeParameter, getLastParam, getQualifiedName, getQualifiedSignature, getSignature, hasVariadicParameterasField, asMethod, asParameter, asType, hasName, isMethodpublic JavassistMethodDeclaration(javassist.CtMethod ctMethod,
TypeSolver typeSolver)
public boolean isDefaultMethod()
isDefaultMethod in interface MethodDeclarationpublic String getName()
getName in interface Declarationpublic boolean isField()
isField in interface Declarationpublic boolean isParameter()
isParameter in interface Declarationpublic boolean isType()
isType in interface Declarationpublic TypeDeclaration declaringType()
declaringType in interface MethodLikeDeclarationpublic Type getReturnType()
getReturnType in interface MethodDeclarationpublic int getNumberOfParams()
getNumberOfParams in interface MethodLikeDeclarationpublic ParameterDeclaration getParam(int i)
getParam in interface MethodLikeDeclarationpublic MethodUsage getUsage(com.github.javaparser.ast.Node node)
public MethodUsage resolveTypeVariables(Context context, List<Type> parameterTypes)
public boolean isAbstract()
isAbstract in interface MethodDeclarationpublic List<TypeParameterDeclaration> getTypeParameters()
getTypeParameters in interface TypeParametrizablepublic AccessLevel accessLevel()
accessLevel in interface HasAccessLevelCopyright © 2016. All rights reserved.