Interface ResolvedMethodDeclaration
- All Superinterfaces:
AssociableToAST, HasAccessSpecifier, ResolvedDeclaration, ResolvedMethodLikeDeclaration, ResolvedTypeParametrizable
- All Known Implementing Classes:
JavaParserEnumDeclaration.ValueOfMethod, JavaParserEnumDeclaration.ValuesMethod, JavaParserMethodDeclaration, JavaParserRecordDeclaration.ImplicitGetterMethod, JavassistMethodDeclaration, ReflectionMethodDeclaration
A declaration of a method (either in an interface, a class, an enum or an annotation).
-
Method Summary
Modifier and TypeMethodDescriptionThe type of the value returned by the current method.booleanIs the method abstract? All interface methods not marked as default are abstract.booleanIs this a default method?default booleanisReturnTypeSubstituable(ResolvedType otherResolvedType) booleanisStatic()Methods inherited from interface AssociableToAST
toAst, toAstMethods inherited from interface HasAccessSpecifier
accessSpecifierMethods inherited from interface ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asType, asTypePattern, getName, hasName, isEnumConstant, isField, isMethod, isParameter, isType, isTypePattern, isVariableMethods inherited from interface ResolvedMethodLikeDeclaration
declaringType, findTypeParameter, formalParameterTypes, getClassName, getLastParam, getNumberOfParams, getNumberOfSpecifiedExceptions, getPackageName, getParam, getQualifiedName, getQualifiedSignature, getSignature, getSpecifiedException, getSpecifiedExceptions, hasVariadicParameterMethods inherited from interface 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() -
toDescriptor
String toDescriptor() -
isReturnTypeSubstituable
-