|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.node.workflow.FlowObjectStack
public final class FlowObjectStack
Container for the stack that keeps for an individual node the
FlowObjectStack
information.
Constructor Summary | |
---|---|
FlowObjectStack(NodeID id,
FlowObjectStack... predStacks)
Creates new stack based. |
Method Summary | ||
---|---|---|
Map<String,FlowVariable> |
getAvailableFlowVariables()
Get all (visible!) variables on the stack in a non-modifiable map. |
|
(package private) List<FlowObject> |
getFlowObjectsOwnedBy(NodeID id)
Get all objects on the stack that are owned by the node with the given id. |
|
(package private) boolean |
isEmpty()
|
|
Iterator<FlowObject> |
iterator()
Get iterator on elements, top of stack first. |
|
|
peek(Class<T> type)
|
|
FlowVariable |
peekFlowVariable(String name,
FlowVariable.Type type)
Get the variable with the given name or null if no such variable is on the stack. |
|
|
pop(Class<T> type)
Removes all elements from the stack whose class is not of the given type. |
|
void |
push(FlowObject item)
|
|
(package private) int |
size()
Get number of elements in the stack. |
|
String |
toDeepString()
|
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
FlowObjectStack(NodeID id, FlowObjectStack... predStacks)
id
- The Node's ID, must not be null.predStacks
- The stacks from the predecessor nodes, may be null or
empty.
NullPointerException
- If id
is null
.
IllegalFlowObjectStackException
- If the stacks can't be merged.Method Detail |
---|
public <T extends FlowObject> T peek(Class<T> type)
T
- The class type of the context objecttype
- The desired FlowObject class
null
if no such element is found.Stack.peek()
public <T extends FlowObject> T pop(Class<T> type)
T
- The desired FlowObject type.type
- The class of that type.
type
or null
if no such element is available.Stack.pop()
public FlowVariable peekFlowVariable(String name, FlowVariable.Type type)
name
- To peektype
- The type of the variable to seek.
public Map<String,FlowVariable> getAvailableFlowVariables()
List<FlowObject> getFlowObjectsOwnedBy(NodeID id)
id
- identifies objects of interest.
public void push(FlowObject item)
item
- FlowObject to be put onto stack.Stack.push(java.lang.Object)
boolean isEmpty()
int size()
public Iterator<FlowObject> iterator()
iterator
in interface Iterable<FlowObject>
public String toString()
toString
in class Object
public String toDeepString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |