soot.jimple.toolkits.invoke
Class TypeGraphNode2
java.lang.Object
|
+--soot.jimple.toolkits.invoke.TypeGraphNode2
- public class TypeGraphNode2
- extends java.lang.Object
- implements soot.jimple.toolkits.pointer.representations.ReferenceVariable
Field Summary |
protected static int |
counter
|
protected static java.util.HashMap |
nameToNode
|
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
nameToNode
protected static java.util.HashMap nameToNode
counter
protected static int counter
v
public static TypeGraphNode2 v(java.lang.String name)
- The only method to create a new node.
If there is a node exists for the name, return the node
otherwise, create a new node and returns it.
exists
public boolean exists(java.lang.String name)
- Check if the node for the name exists
getNode
public TypeGraphNode2 getNode(java.lang.String name)
getTypeSet2
public TypeSet2 getTypeSet2()
getName
public java.lang.String getName()
hashCode
public int hashCode()
- Returns hash code, it is a quick impl
- Overrides:
- hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object other)
- Check equality of two nodes.
Since the node is unique, just check equality of two object address.
- Overrides:
- equals in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
makeTempNode
public static TypeGraphNode2 makeTempNode()