public class Step extends DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject| Constructor and Description |
|---|
Step()
Empty Constructor, for encoding purpose
|
Step(String oper,
EvalResult result)
Constructor with the producing operation and a result set
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
changeIndex(int newValue)
Select a new result by index
|
int |
getIndex() |
List<HashMap<String,Object>> |
getMirror() |
String |
getOperation() |
HashMap<String,net.sourceforge.czt.z.ast.Expr> |
getResultByIndex(int i)
Get a result selected by index
|
HashMap<String,net.sourceforge.czt.z.ast.Expr> |
getResultSelected()
Get the result selected
|
boolean |
isComplete() |
void |
print()
For debug purpose
|
void |
restore()
restore the mirror to expr map
|
void |
setComplete(boolean isComplete) |
void |
setIndex(int index) |
void |
setMirror(List<HashMap<String,Object>> mirror) |
void |
setOperation(String operation) |
int |
size()
Get the number of evaluated Results
|
String |
toString() |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObjectpublic Step()
public Step(String oper, EvalResult result)
operation - evalResult - public int size()
public boolean changeIndex(int newValue)
index - The index to set.public HashMap<String,net.sourceforge.czt.z.ast.Expr> getResultSelected()
public HashMap<String,net.sourceforge.czt.z.ast.Expr> getResultByIndex(int i)
i - public void restore()
public int getIndex()
public void setIndex(int index)
index - public boolean isComplete()
public void setComplete(boolean isComplete)
isComplete - The isComplete to set.public String getOperation()
public void setOperation(String operation)
operation - The operation to set.public void setMirror(List<HashMap<String,Object>> mirror)
mirror - The mirror to set.public String toString()
toString in class DefaultMutableTreeNodepublic void print()
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.