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 |
|---|---|
TypeDeclaration |
declaringType() |
String |
getName() |
int |
getNoParams() |
ParameterDeclaration |
getParam(int i) |
TypeUsage |
getReturnType() |
List<TypeParameter> |
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 |
isField() |
boolean |
isPackageProtected() |
boolean |
isParameter() |
boolean |
isPrivate() |
boolean |
isType() |
boolean |
isVariable() |
MethodUsage |
resolveTypeVariables(Context context,
List<TypeUsage> parameterTypes) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLastParam, hasVariadicParameterasField, asMethod, asParameter, asType, hasName, isMethodpublic JavaParserMethodDeclaration(com.github.javaparser.ast.body.MethodDeclaration wrappedNode,
TypeSolver typeSolver)
public TypeDeclaration declaringType()
declaringType in interface MethodDeclarationpublic TypeUsage getReturnType()
getReturnType in interface MethodDeclarationpublic int getNoParams()
getNoParams in interface MethodDeclarationpublic ParameterDeclaration getParam(int i)
getParam in interface MethodDeclarationpublic MethodUsage getUsage(com.github.javaparser.ast.Node node)
public MethodUsage resolveTypeVariables(Context context, List<TypeUsage> parameterTypes)
resolveTypeVariables in interface MethodDeclarationpublic boolean isAbstract()
isAbstract in interface MethodDeclarationpublic boolean isPrivate()
isPrivate in interface MethodDeclarationpublic String getName()
getName in interface Declarationpublic boolean isField()
isField in interface Declarationpublic boolean isParameter()
isParameter in interface Declarationpublic boolean isVariable()
isVariable in interface Declarationpublic boolean isType()
isType in interface Declarationpublic List<TypeParameter> getTypeParameters()
getTypeParameters in interface TypeParametrizedpublic boolean isPackageProtected()
isPackageProtected in interface MethodDeclarationpublic com.github.javaparser.ast.body.MethodDeclaration getWrappedNode()
Copyright © 2016. All rights reserved.