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 ResolvedTypegetReturnType()The type of the value returned by the current method.booleanisAbstract()Is the method abstract?booleanisDefaultMethod()Is this a default method?default booleanisReturnTypeSubstituable(ResolvedType otherResolvedType)booleanisStatic()StringtoDescriptor()-
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)
-
-