|
CubeTwister 2.0alpha142 2012-02-11 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
ch.randelshofer.rubik.parser.Node
ch.randelshofer.rubik.parser.StatementNode
public class StatementNode
A StatementNode is a structuring unit. It holds one child A. The side effect of a statement node to a Cube is A.
ScriptParser,
Serialized Form| Field Summary |
|---|
| Fields inherited from class ch.randelshofer.rubik.parser.Node |
|---|
endpos, layerCount, startpos, symbol |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
|---|---|
StatementNode(int layerCount)
|
|
StatementNode(int layerCount,
int startpos,
int endpos)
|
|
| Method Summary | |
|---|---|
java.util.List |
toResolvedList()
|
java.lang.String |
toString()
Returns a string representation of this node. |
void |
writeTokens(java.io.PrintWriter w,
Notation n,
java.util.Map<java.lang.String,MacroNode> macroMap)
Writes the token(s) represented by the subtree starting at this node. |
| Methods inherited from class ch.randelshofer.rubik.parser.Node |
|---|
applyTo, cloneSubtree, dumpTree, enumerateChildrenReversed, getBlockTurnCount, getChildAt, getChildren, getEndPosition, getFaceTurnCount, getLayerTurnCount, getQuarterTurnCount, getStartPosition, getSymbol, inverse, overwritePositions, reflect, resolvedEnumeration, setEndPosition, setStartPosition, toString, toString, transform, transform, transformOrientation |
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, 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, setUserObject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StatementNode(int layerCount)
public StatementNode(int layerCount,
int startpos,
int endpos)
| Method Detail |
|---|
public void writeTokens(java.io.PrintWriter w,
Notation n,
java.util.Map<java.lang.String,MacroNode> macroMap)
throws java.io.IOException
writeTokens in class Nodew - This is where the tokens are written to.n - The notation which provides the tokens.macroMap - Macros with identifiers of which
macroMap.containsKey(String) returns true
are preserved.
java.io.IOExceptionpublic java.util.List toResolvedList()
toResolvedList in class Nodepublic java.lang.String toString()
Node
toString in class Node
|
(c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||