de.intarsys.tools.functor
public class EmptyDeclarationBlock extends java.lang.Object implements IDeclarationBlock
Constructor and Description |
---|
EmptyDeclarationBlock() |
Modifier and Type | Method and Description |
---|---|
IFunctorCall |
accept(IFunctorCall call)
Apply this declaration to
call . |
java.lang.Object |
getDeclarationContext()
An optional declaration context.
|
IDeclaration[] |
getDeclarations()
The array of
IDeclaration instances in this block. |
boolean |
isBlock()
true if this declaration has child elements itself. |
int |
size()
The number of declarations in this block.
|
public IFunctorCall accept(IFunctorCall call) throws DeclarationException
IDeclaration
call
.
The semantics of this method is up to the designer.
accept
in interface IDeclaration
call
- The IFunctorCall
to be modified.IFunctorCall
.DeclarationException
public java.lang.Object getDeclarationContext()
IDeclaration
IFunctorCall
later and has parsed some
declarations on startup.getDeclarationContext
in interface IDeclaration
public IDeclaration[] getDeclarations()
IDeclarationBlock
IDeclaration
instances in this block.getDeclarations
in interface IDeclarationBlock
IDeclaration
instances in this block.public boolean isBlock()
IDeclaration
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.
isBlock
in interface IDeclaration
true
if this declaration has child elements
itself.public int size()
IDeclarationBlock
size
in interface IDeclarationBlock