soot.jimple.toolkits.invoke
Class TypeGraphNode2

java.lang.Object
  |
  +--soot.jimple.toolkits.invoke.TypeGraphNode2
All Implemented Interfaces:
soot.jimple.toolkits.pointer.representations.ReferenceVariable

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
           
 
Method Summary
 boolean equals(java.lang.Object other)
          Check equality of two nodes.
 boolean exists(java.lang.String name)
          Check if the node for the name exists
 java.lang.String getName()
           
 TypeGraphNode2 getNode(java.lang.String name)
           
 TypeSet2 getTypeSet2()
           
 int hashCode()
          Returns hash code, it is a quick impl
static TypeGraphNode2 makeTempNode()
           
 java.lang.String toString()
           
static TypeGraphNode2 v(java.lang.String name)
          The only method to create a new node.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

nameToNode

protected static java.util.HashMap nameToNode

counter

protected static int counter
Method Detail

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()