Interface ResolvedMethodDeclaration
-
- All Superinterfaces:
AssociableToAST
,HasAccessSpecifier
,ResolvedDeclaration
,ResolvedMethodLikeDeclaration
,ResolvedTypeParametrizable
public interface ResolvedMethodDeclaration extends ResolvedMethodLikeDeclaration
A declaration of a method (either in an interface, a class, an enum or an annotation).- Author:
- Federico Tomassetti
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ResolvedType
getReturnType()
The type of the value returned by the current method.boolean
isAbstract()
Is the method abstract?boolean
isDefaultMethod()
Is this a default method?default boolean
isReturnTypeSubstituable(ResolvedType otherResolvedType)
boolean
isStatic()
String
toDescriptor()
-
Methods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST
toAst, 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, asType, asTypePattern, getName, hasName, isEnumConstant, isField, isMethod, isParameter, isType, isTypePattern, isVariable
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration
declaringType, findTypeParameter, formalParameterTypes, 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 Detail
-
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
default boolean isReturnTypeSubstituable(ResolvedType otherResolvedType)
-
-