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. AnIDeclarationElement
may have optional modifiers, supporting fine tuning of its behavior.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getName()
An optional name for the declaration element.boolean
hasModifier(java.lang.String modifier)
true
if 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)
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.
-
-