public class CallGraphNode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
id
Graph-unique id for the node.
|
private java.lang.String |
text
Descriptive text for the node.
|
private java.lang.String |
tooltip
The node's tooltip.
|
private int |
type
Progress parser token type that describes the node.
|
Constructor and Description |
---|
CallGraphNode(java.lang.String id,
int type,
java.lang.String text,
java.lang.String tooltip)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Check if this instance is the same as the other one (if
id is the same). |
java.lang.String |
getId()
Obtain the unique id of the node.
|
java.lang.String |
getText()
Obtain the descriptive text for the node.
|
java.lang.String |
getTooltip()
Obtain the tooltip text for the node.
|
int |
getType()
Obtain the token type for the node.
|
int |
hashCode()
Compute the unique hashcode for this instance, using the
id . |
void |
setId(java.lang.String id)
Set the unique id of the node.
|
void |
setText(java.lang.String text)
Set the descriptive text for the node.
|
void |
setTooltip(java.lang.String tooltip)
Set the tooltip text for the node.
|
void |
setType(int type)
Set the token type for the node.
|
private java.lang.String id
private int type
private java.lang.String text
private java.lang.String tooltip
public CallGraphNode(java.lang.String id, int type, java.lang.String text, java.lang.String tooltip)
id
- Graph-unique id for the node.type
- Progress parser token type that describes the node.text
- Descriptive text for the node.tooltip
- Tooltip text for the node.public java.lang.String getId()
public void setId(java.lang.String id)
id
- The new id to assign.public int getType()
public void setType(int type)
type
- The token type to assign.public java.lang.String getText()
public void setText(java.lang.String text)
text
- The new descriptive text to assign.public java.lang.String getTooltip()
public void setTooltip(java.lang.String tooltip)
tooltip
- The new tooltip text to assign.public int hashCode()
id
.
fields.hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
id
is the same).equals
in class java.lang.Object
obj
- The instance to compare.