|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectdk.brics.xmlgraph.Node
public abstract class Node
Abstract superclass for nodes.
| Field Summary | |
|---|---|
protected int |
index
Index of this node. |
protected Origin |
origin
Origin of this node. |
| Constructor Summary | |
|---|---|
Node(Origin origin)
Constructor for node objects. |
|
| Method Summary | ||
|---|---|---|
protected abstract Node |
clone()
Clones this node. |
|
int |
getIndex()
Returns the index of this node. |
|
Origin |
getOrigin()
Returns the source information. |
|
abstract
|
process(NodeProcessor<T> v)
Applies the given node processor on this node. |
|
void |
setOrigin(Origin origin)
Sets the source information. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int index
protected Origin origin
| Constructor Detail |
|---|
public Node(Origin origin)
origin - source information (null if not applicable)| Method Detail |
|---|
protected abstract Node clone()
clone in class Objectpublic int getIndex()
public Origin getOrigin()
public abstract <T> T process(NodeProcessor<T> v)
T - return typev - node processor
public void setOrigin(Origin origin)
origin - source information (null if not applicable)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||