|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.projectory.koivima.core.Element de.projectory.koivima.core.AbstractElementList
public abstract class AbstractElementList
A list of executable Elements that is itself an element.
Field Summary | |
---|---|
protected java.util.ArrayList<Element> |
code
A list that contains the elements |
Fields inherited from class de.projectory.koivima.core.Element |
---|
context |
Constructor Summary | |
---|---|
AbstractElementList()
Creates a new code block, that can be executed in the specified ExecutionContext If this code block is not inserted into another code block for execution purpose, than setExecutionContext must be called. |
Method Summary | |
---|---|
abstract void |
add(Element element)
Adds an element to the end of this list. |
abstract void |
addFirst(Element element)
Adds an element to the beginning of this list. |
void |
execute()
Overwrite execute in element. |
java.util.Iterator<Element> |
iterator()
|
void |
setExecutionContext(ExecutionContext context)
Overwrites setExecutionContext of Element |
Methods inherited from class de.projectory.koivima.core.Element |
---|
getExecutionContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.ArrayList<Element> code
Constructor Detail |
---|
public AbstractElementList()
Method Detail |
---|
public void setExecutionContext(ExecutionContext context)
setExecutionContext
in class Element
context
- ExecutionContext for this CodeBlock.public void execute()
execute
in class Element
public abstract void add(Element element)
element
- A code element: data element, operator or otherpublic abstract void addFirst(Element element)
element
- A code element: data element, operator or otherpublic java.util.Iterator<Element> iterator()
iterator
in interface java.lang.Iterable<Element>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |