public class JavaParserMethodDeclaration extends Object implements MethodDeclaration
| Constructor and Description |
|---|
JavaParserMethodDeclaration(com.github.javaparser.ast.body.MethodDeclaration wrappedNode,
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) |
com.github.javaparser.ast.body.MethodDeclaration |
getWrappedNode()
Returns the JavaParser node associated with this JavaParserMethodDeclaration.
|
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 JavaParserMethodDeclaration(com.github.javaparser.ast.body.MethodDeclaration wrappedNode,
TypeSolver typeSolver)
public 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 String getName()
getName in interface Declarationpublic boolean isField()
isField in interface Declarationpublic boolean isParameter()
isParameter in interface Declarationpublic boolean isType()
isType in interface Declarationpublic List<TypeParameterDeclaration> getTypeParameters()
getTypeParameters in interface TypeParametrizablepublic boolean isDefaultMethod()
isDefaultMethod in interface MethodDeclarationpublic com.github.javaparser.ast.body.MethodDeclaration getWrappedNode()
public AccessLevel accessLevel()
accessLevel in interface HasAccessLevelCopyright © 2016. All rights reserved.