public interface IDeclarationBlock extends IDeclaration
IDeclarationElement instances.| Modifier and Type | Method and Description |
|---|---|
void |
addDeclarationElement(IDeclarationElement element)
Add an
IDeclarationElement to this block; |
void |
clear()
Remove all
IDeclarationElement instances from this block; |
IDeclarationElement |
getDeclarationElement(String name)
The
IDeclarationElement for the given name. |
IDeclarationElement[] |
getDeclarationElements()
The array of
IDeclarationElement instances in this block. |
void |
moveDown(IDeclarationElement element)
Move element to the position after its current position.
|
void |
moveUp(IDeclarationElement element)
Move element to the position before its current position.
|
boolean |
removeDeclarationElement(IDeclarationElement element)
Remove an
IDeclarationElement from this block; |
int |
size()
The number of declarations in this block.
|
copy, getDeclarationContext, isBlockvoid addDeclarationElement(IDeclarationElement element)
IDeclarationElement to this block;element - void clear()
IDeclarationElement instances from this block;IDeclarationElement getDeclarationElement(String name)
IDeclarationElement for the given name.name - IDeclarationElement for the given name.IDeclarationElement[] getDeclarationElements()
IDeclarationElement instances in this block.IDeclarationElement instances in this block.void moveDown(IDeclarationElement element)
If the element is the last declaration or not contained in the block this method does nothing.
element - void moveUp(IDeclarationElement element)
If the element is the first declaration or not contained in the block this method does nothing.
element - boolean removeDeclarationElement(IDeclarationElement element)
IDeclarationElement from this block;element - true if declaration was removedint size()
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.