Interface ExecutableDeclaration
-
- All Superinterfaces:
AnnotationTarget,Declaration,Element,MemberDeclaration,NamedElement,TypeParameterDeclarator
- All Known Subinterfaces:
ConstructorDeclaration,MethodDeclaration,MutableConstructorDeclaration,MutableExecutableDeclaration,MutableMethodDeclaration
@Beta public interface ExecutableDeclaration extends TypeParameterDeclarator
A common super type forMethodDeclarationandConstructorDeclaration- Noimplement:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExpressiongetBody()java.lang.Iterable<? extends TypeReference>getExceptions()java.lang.Iterable<? extends ParameterDeclaration>getParameters()booleanisVarArgs()-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.AnnotationTarget
findAnnotation, getAnnotations
-
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
-
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
java.lang.Iterable<? extends ParameterDeclaration> getParameters()
- Returns:
- the declared parameters
-
getExceptions
java.lang.Iterable<? extends TypeReference> getExceptions()
- Returns:
- the declared exceptions
-
-