|
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 | |
|---|---|
void |
addDeclarationElement(IDeclarationElement declaration)
Add an IDeclarationElement to this block; |
void |
clear()
Remove all IDeclarationElement instances from this block; |
IDeclaration |
copy()
Create a copy of this. |
Object |
getDeclarationContext()
An optional declaration context. |
IDeclarationElement |
getDeclarationElement(String name)
The IDeclarationElement for the given name. |
IDeclarationElement[] |
getDeclarationElements()
The array of IDeclarationElement instances in this block. |
boolean |
isBlock()
true if this declaration has child elements itself. |
void |
moveDown(IDeclarationElement declaration)
Move element to the position after its current position. |
void |
moveUp(IDeclarationElement declaration)
Move element to the position before its current position. |
boolean |
removeDeclarationElement(IDeclarationElement declaration)
Remove an IDeclarationElement from this block; |
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 void addDeclarationElement(IDeclarationElement declaration)
IDeclarationBlockIDeclarationElement to this block;
addDeclarationElement in interface IDeclarationBlockpublic void clear()
IDeclarationBlockIDeclarationElement instances from this block;
clear in interface IDeclarationBlockpublic IDeclaration copy()
IDeclaration
copy in interface IDeclarationpublic Object getDeclarationContext()
IDeclarationIFunctorCall later and has parsed some
declarations on startup.
getDeclarationContext in interface IDeclarationpublic IDeclarationElement getDeclarationElement(String name)
IDeclarationBlockIDeclarationElement for the given name.
getDeclarationElement in interface IDeclarationBlockIDeclarationElement for the given name.public IDeclarationElement[] getDeclarationElements()
IDeclarationBlockIDeclarationElement instances in this block.
getDeclarationElements in interface IDeclarationBlockIDeclarationElement 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 void moveDown(IDeclarationElement declaration)
IDeclarationBlockIf the element is the last declaration or not contained in the block this method does nothing.
moveDown in interface IDeclarationBlockpublic void moveUp(IDeclarationElement declaration)
IDeclarationBlockIf the element is the first declaration or not contained in the block this method does nothing.
moveUp in interface IDeclarationBlockpublic boolean removeDeclarationElement(IDeclarationElement declaration)
IDeclarationBlockIDeclarationElement from this block;
removeDeclarationElement in interface IDeclarationBlocktrue if declaration was removedpublic 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 | |||||||||