Interface MethodDeclaration
-
- All Superinterfaces:
AnnotationTarget,Declaration,Element,ExecutableDeclaration,MemberDeclaration,NamedElement,TypeParameterDeclarator
- All Known Subinterfaces:
MutableMethodDeclaration
@Beta public interface MethodDeclaration extends ExecutableDeclaration
- Noimplement:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.Iterable<? extends MethodDeclaration>getOverriddenOrImplementedMethods()TypeReferencegetReturnType()booleanisAbstract()booleanisDefault()booleanisFinal()booleanisNative()booleanisStatic()booleanisStrictFloatingPoint()booleanisSynchronized()-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.AnnotationTarget
findAnnotation, getAnnotations
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.ExecutableDeclaration
getBody, getExceptions, getParameters, isVarArgs
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MemberDeclaration
getDeclaringType, getDocComment, getModifiers, getVisibility, isDeprecated
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement
getCompilationUnit, getSimpleName
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.TypeParameterDeclarator
getTypeParameters
-
-
-
-
Method Detail
-
isFinal
boolean isFinal()
- Returns:
- whether this method is declared
final
-
isAbstract
boolean isAbstract()
- Returns:
- whether this method is declared
abstract
-
isStatic
boolean isStatic()
- Returns:
- whether this method is declared
static
-
isSynchronized
boolean isSynchronized()
- Returns:
- whether this method is declared
synchronized
-
isDefault
boolean isDefault()
- Returns:
- whether this method is declared
default
-
isStrictFloatingPoint
boolean isStrictFloatingPoint()
- Returns:
- whether this method is declared
strictfp
-
isNative
boolean isNative()
- Returns:
- whether this method is declared
native
-
getReturnType
TypeReference getReturnType()
- Returns:
- the return type of this method
-
getOverriddenOrImplementedMethods
default java.lang.Iterable<? extends MethodDeclaration> getOverriddenOrImplementedMethods()
- Returns:
- the overridden or implemented methods
- Since:
- 2.23
-
-