|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectdk.brics.grammar.ast.Node
dk.brics.grammar.ast.LeafNode
public class LeafNode
Leaf node, representing a substring of the original string.
| Constructor Summary | |
|---|---|
LeafNode(int i,
int j)
Constructs a new leaf node. |
|
| Method Summary | |
|---|---|
String |
getString(String x)
Returns the substring represented by this node. |
void |
print(String x,
StringBuilder b)
Prints this node. |
void |
setString(String s)
Sets the string. |
void |
visitBy(NodeVisitor v)
Visits this node. |
| Methods inherited from class dk.brics.grammar.ast.Node |
|---|
getFromIndex, getToIndex |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LeafNode(int i,
int j)
i - from indexj - to index (not included)| Method Detail |
|---|
public String getString(String x)
getString in class Nodex - original string (irrelevant if substring has been set by setString(String)})
public void print(String x,
StringBuilder b)
Node
print in class Nodex - original stringb - string buffer for outputpublic void setString(String s)
s - new stringpublic void visitBy(NodeVisitor v)
Node
visitBy in class Nodev - visitor
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||