Package de.intarsys.tools.functor
Interface IDeclarationElement
- All Superinterfaces:
IDeclaration
- All Known Subinterfaces:
IArgumentDeclaration
- All Known Implementing Classes:
ArgumentDeclaration
,DeclarationElement
A concrete named declaration. An
IDeclarationElement
may have
optional modifiers, supporting fine tuning of its behavior.-
Method Summary
Modifier and TypeMethodDescriptiongetName()
An optional name for the declaration element.boolean
hasModifier
(String modifier) true
if the declaration has the requested modifier.Methods inherited from interface de.intarsys.tools.functor.IDeclaration
accept, getDeclarationContext, isBlock
-
Method Details
-
getName
String getName()An optional name for the declaration element.- Returns:
- An optional name for the declaration element.
-
hasModifier
true
if the declaration has the requested modifier.An implementation is free to support modifiers and define their respective semantics.
An example for a modifier may be "persistent" to indicate the implementation should store argument values to be able to present them again in a later call (in a wizard for example).
- Parameters:
modifier
- The modifier name.- Returns:
true
if the declaration has the requested modifier.
-