Module org.eclipse.xtend.lib.macro
Interface ExecutableDeclaration
- All Superinterfaces:
AnnotationTarget,Declaration,Element,MemberDeclaration,NamedElement,TypeParameterDeclarator
- All Known Subinterfaces:
ConstructorDeclaration,MethodDeclaration,MutableConstructorDeclaration,MutableExecutableDeclaration,MutableMethodDeclaration
A common super type for
MethodDeclaration and ConstructorDeclaration- Author:
- Sven Efftinge
-
Method Summary
Modifier and TypeMethodDescriptiongetBody()Iterable<? extends TypeReference> Iterable<? extends ParameterDeclaration> booleanMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.AnnotationTarget
findAnnotation, getAnnotationsMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MemberDeclaration
getDeclaringType, getDocComment, getModifiers, getVisibility, isDeprecatedMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement
getCompilationUnit, getSimpleNameMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.TypeParameterDeclarator
getTypeParameters
-
Method Details
-
isVarArgs
boolean isVarArgs()- Returns:
- whether this is a varArs declaration.
-
getBody
Expression getBody()- Returns:
- the body, might be null for external elements as well as abstract methods.
-
getParameters
Iterable<? extends ParameterDeclaration> getParameters()- Returns:
- the declared parameters
-
getExceptions
Iterable<? extends TypeReference> getExceptions()- Returns:
- the declared exceptions
-