Package de.intarsys.tools.functor
Interface IDeclarationElement
-
- All Superinterfaces:
IDeclaration
- All Known Subinterfaces:
IArgumentDeclaration
- All Known Implementing Classes:
ArgumentDeclaration,DeclarationElement
public interface IDeclarationElement extends IDeclaration
A concrete named declaration. AnIDeclarationElementmay have optional modifiers, supporting fine tuning of its behavior.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetName()An optional name for the declaration element.booleanhasModifier(java.lang.String modifier)trueif the declaration has the requested modifier.-
Methods inherited from interface de.intarsys.tools.functor.IDeclaration
accept, getDeclarationContext, isBlock
-
-
-
-
Method Detail
-
getName
java.lang.String getName()
An optional name for the declaration element.- Returns:
- An optional name for the declaration element.
-
hasModifier
boolean hasModifier(java.lang.String modifier)
trueif 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:
trueif the declaration has the requested modifier.
-
-