Top Description Methods
com.github.javaparser.resolution.declarations

public Interface ResolvedMethodDeclaration

extends ResolvedMethodLikeDeclaration, AssociableToAST<MethodDeclaration>
Imports
com.github.javaparser.ast.body.MethodDeclaration, com.github.javaparser.resolution.types.ResolvedType

A declaration of a method (either in an interface, a class, an enum or an annotation).
Author
Federico Tomassetti

Method Summary

Modifier and TypeMethod and Description
public ResolvedType
getReturnType()

The type of the value returned by the current method.

public boolean
isAbstract()

Is the method abstract?

public boolean
isDefaultMethod()

Is this a default method?

public boolean
Inherited from com.github.javaparser.resolution.declarations.AssociableToAST:
toAst
Inherited from com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration:
declaringTypefindTypeParametergetClassNamegetLastParamgetNumberOfParamsgetNumberOfSpecifiedExceptionsgetPackageNamegetParamgetQualifiedNamegetQualifiedSignaturegetSignaturegetSpecifiedExceptiongetSpecifiedExceptionshasVariadicParameter

Method Detail

getReturnTypeback to summary
public ResolvedType getReturnType()

The type of the value returned by the current method. This method can also be invoked for methods returning void.

isAbstractback to summary
public boolean isAbstract()

Is the method abstract? All interface methods not marked as default are abstract.

isDefaultMethodback to summary
public boolean isDefaultMethod()

Is this a default method?

isStaticback to summary
public boolean isStatic()