Package de.saar.chorus.domgraph.graph
Class NodeLabels
java.lang.Object
de.saar.chorus.domgraph.graph.NodeLabels
A map which is used for storing the node labels of a labelled
dominance graph.
- Author:
- Alexander Koller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a label for a given node.voidclear()Removes all node-label mappings from this map.booleanGets the label for a given node.inthashCode()makeSolvedForm(SolvedFormSpec spec) toString()
-
Constructor Details
-
NodeLabels
public NodeLabels()
-
-
Method Details
-
clear
public void clear()Removes all node-label mappings from this map. -
addLabel
Adds a label for a given node.- Parameters:
node- the nodelabel- the label for this node
-
getLabel
Gets the label for a given node. If the node was not assigned a label, returns null.- Parameters:
node- a node- Returns:
- the label, or null if the node has no label
-
toString
-
equals
-
hashCode
public int hashCode() -
makeSolvedForm
-