|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.brics.xpath.evaluator.StatusMap
public class StatusMap
Status map used by XPathEvaluator
.
Nested Class Summary | |
---|---|
static class |
StatusMap.Status
Status values. |
Constructor Summary | |
---|---|
StatusMap(Set<Integer> nodes)
Constructs an empty status map with given set of nodes. |
|
StatusMap(StatusMap other)
Constructs a copy of the given status map. |
Method Summary | |
---|---|
static String |
description(Node n)
|
StatusMap.Status |
get(int node)
Gets the status value for a given node. |
Set<Integer> |
getALL()
Gets the set of nodes with status ALL (or NEVER or DEFINITE). |
Set<Integer> |
getNodes()
Gets the set of nodes. |
Set<Integer> |
getNONE()
Gets the set of nodes with status NONE (or NEVER). |
Set<Integer> |
getSOME()
Gets the set of nodes with status SOME (or DEFINITE). |
void |
glb(int node,
StatusMap.Status status)
|
void |
merge(int node,
StatusMap.Status status)
Merges status mapping for a given node with the given status value. |
static void |
prettyprint(PrintStream out,
StatusMap sm,
XMLGraph xg)
|
void |
put(int node,
StatusMap.Status status)
Puts status for a given node (existing mappings will be removed) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatusMap(Set<Integer> nodes)
public StatusMap(StatusMap other)
Method Detail |
---|
public static String description(Node n)
public StatusMap.Status get(int node)
node
- node
public Set<Integer> getALL()
public Set<Integer> getNodes()
public Set<Integer> getNONE()
public Set<Integer> getSOME()
public void glb(int node, StatusMap.Status status)
public void merge(int node, StatusMap.Status status)
node
- nodestatus
- status valuepublic static void prettyprint(PrintStream out, StatusMap sm, XMLGraph xg)
public void put(int node, StatusMap.Status status)
node
- nodestatus
- status value
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |