|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.intarsys.tools.functor.EmptyDeclarationBlock
public class EmptyDeclarationBlock
Helper implementation for an empty declaration block.
| Constructor Summary | |
|---|---|
EmptyDeclarationBlock()
|
|
| Method Summary | |
|---|---|
IFunctorCall |
accept(IFunctorCall call)
Apply this declaration to call. |
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmptyDeclarationBlock()
| Method Detail |
|---|
public IFunctorCall accept(IFunctorCall call)
throws DeclarationException
IDeclarationcall.
The semantics of this method is up to the designer.
accept in interface IDeclarationcall - The IFunctorCall to be modified.
IFunctorCall.
DeclarationExceptionpublic Object getDeclarationContext()
IDeclarationIFunctorCall later and has parsed some
declarations on startup.
getDeclarationContext in interface IDeclarationpublic IDeclaration[] getDeclarations()
IDeclarationBlockIDeclaration instances in this block.
getDeclarations in interface IDeclarationBlockIDeclaration instances in this block.public boolean isBlock()
IDeclarationtrue 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 IDeclarationtrue if this declaration has child elements
itself.public int size()
IDeclarationBlock
size in interface IDeclarationBlock
|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||