public class NodeLabeller extends Object
| Constructor and Description |
|---|
NodeLabeller() |
| Modifier and Type | Method and Description |
|---|---|
int |
addNode(com.ibm.wala.cast.tree.CAstNode node)
Adds a node to the mapping if it is not present yet.
|
int |
getLabel(com.ibm.wala.cast.tree.CAstNode node)
Determines the label of a node in the mapping.
|
com.ibm.wala.cast.tree.CAstNode |
getNode(int label)
Determines the node associated with a given label.
|
public int addNode(com.ibm.wala.cast.tree.CAstNode node)
node - the node to addpublic int getLabel(com.ibm.wala.cast.tree.CAstNode node)
node - the node whose label is to be determinedpublic com.ibm.wala.cast.tree.CAstNode getNode(int label)
Copyright © 2017. All rights reserved.