|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDeclaration
A declaration allows to modify the state and or behavior of an
IFunctorCall. The IDeclaration is attached to an object
owning an IFunctor and should be executed against the
IFunctorCall prior to performing the call.
An example for a declaration is IArgumentDeclaration, allowing for
argument naming and ordering and to provide default values when an argument
is missing.
Syntax, semantics and application to the IFunctorCall of declarations
are up to the client.
| Method Summary | |
|---|---|
IFunctorCall |
accept(IFunctorCall call)
Apply this declaration to call. |
Object |
getDeclarationContext()
An optional declaration context. |
boolean |
isBlock()
true if this declaration has child elements itself. |
| Method Detail |
|---|
IFunctorCall accept(IFunctorCall call)
throws DeclarationException
call.
The semantics of this method is up to the designer.
call - The IFunctorCall to be modified.
IFunctorCall.
DeclarationExceptionObject getDeclarationContext()
IFunctorCall later and has parsed some
declarations on startup.
boolean isBlock()
true if this declaration has child elements itself.
A IDeclarationElement may be a IDeclarationBlock,
supporting nested declarations. You should not use "instanceof
IDeclarationBlock" to check this behavior but this method.
true if this declaration has child elements
itself.
|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||