Interface ResolvedMethodDeclaration
- All Superinterfaces:
AssociableToAST<MethodDeclaration>
,HasAccessSpecifier
,ResolvedDeclaration
,ResolvedMethodLikeDeclaration
,ResolvedTypeParametrizable
public interface ResolvedMethodDeclaration
extends ResolvedMethodLikeDeclaration, AssociableToAST<MethodDeclaration>
A declaration of a method (either in an interface, a class, an enum or an annotation).
- Author:
- Federico Tomassetti
-
Method Summary
Modifier and TypeMethodDescriptionThe type of the value returned by the current method.boolean
Is the method abstract? All interface methods not marked as default are abstract.boolean
Is this a default method?boolean
isStatic()
Methods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST
toAst
Methods inherited from interface com.github.javaparser.resolution.declarations.HasAccessSpecifier
accessSpecifier
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asPattern, asType, getName, hasName, isEnumConstant, isField, isMethod, isParameter, isPattern, isType, isVariable
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration
declaringType, findTypeParameter, getClassName, getLastParam, getNumberOfParams, getNumberOfSpecifiedExceptions, getPackageName, getParam, getQualifiedName, getQualifiedSignature, getSignature, getSpecifiedException, getSpecifiedExceptions, hasVariadicParameter
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
getTypeParameters, isGeneric
-
Method Details
-
getReturnType
ResolvedType getReturnType()The type of the value returned by the current method. This method can also be invoked for methods returning void. -
isAbstract
boolean isAbstract()Is the method abstract? All interface methods not marked as default are abstract. -
isDefaultMethod
boolean isDefaultMethod()Is this a default method? -
isStatic
boolean isStatic()
-