|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjoeq.Compiler.Analysis.FlowInsensitive.MethodSummary.Node
public abstract static class MethodSummary.Node
| Field Summary | |
|---|---|
int |
id
Unique id number. |
static boolean |
TRACK_REASONS
|
| Method Summary | |
|---|---|
boolean |
addAccessPathEdge(jq_Field m,
MethodSummary.FieldNode n)
Add the given successor node on the given field to the outside edge set. |
boolean |
addAccessPathEdges(jq_Field m,
java.util.Set s)
Add the given set of successor nodes on the given field to the outside edge set. |
boolean |
addEdge(jq_Field m,
MethodSummary.Node n)
Add the given successor node on the given field to the inside edge set. |
void |
addEdge(java.lang.String edge,
jwutil.io.Textualizable t)
|
boolean |
addEdges(jq_Field m,
java.util.Set s)
Add the given set of successor nodes on the given field to the inside edge set. |
static boolean |
addEdges(java.util.Set s,
jq_Field f,
MethodSummary.Node n)
Add the given successor node on the given field to the inside edge set of all of the given set of nodes. |
boolean |
addPredecessor(jq_Field m,
MethodSummary.Node n)
Add the given predecessor node on the given field to the predecessor set. |
int |
compareTo(MethodSummary.Node that)
|
int |
compareTo(java.lang.Object o)
|
abstract MethodSummary.Node |
copy()
Return a shallow copy of this node. |
java.util.Set |
getAccessPathEdgeFields()
Return the set of fields that this node has outside edges with. |
java.util.Set |
getAccessPathEdges()
Return a set of Map.Entry objects corresponding to the outside edges of this node. |
java.util.Set |
getAccessPathEdges(jq_Field m)
|
void |
getAccessPathEdges(jq_Field m,
java.util.Set result)
Add the nodes that are targets of outside edges on the given field to the given result set. |
java.util.Collection |
getAccessPathEdgeTargets()
Return the collection of target nodes that this node has inside edges with. |
java.util.Set |
getAllEdges()
|
java.util.Set |
getAllEdges(jq_Field m)
|
void |
getAllEdges(jq_Field m,
java.util.Set result)
Add the nodes that are targets of inside edges on the given field to the given result set. |
abstract jq_Reference |
getDeclaredType()
Return the declared type of this node. |
abstract jq_Method |
getDefiningMethod()
Return the method that this node is defined in, null if it doesn't come from a method. |
void |
getEdges_escaped(jq_Field m,
java.util.Set result)
Add the nodes that are targets of inside edges on the given field to the given result set. |
boolean |
getEscapes()
|
java.util.Set |
getNonEscapingEdgeFields()
Return the set of fields that this node has inside edges with. |
java.util.Set |
getNonEscapingEdges()
Return a set of Map.Entry objects corresponding to the inside edges of this node. |
java.util.Set |
getNonEscapingEdges(jq_Field m)
|
java.util.Collection |
getNonEscapingEdgeTargets()
Return the collection of target nodes that this node has inside edges with. |
java.util.Set |
getPassedParameters()
|
java.util.Set |
getPredecessors()
Return a set of Map.Entry objects corresponding to the incoming inside edges of this node. |
java.util.Collection |
getPredecessorTargets()
|
boolean |
hasAccessPathEdge(jq_Field m,
MethodSummary.Node n)
|
boolean |
hasAccessPathEdges()
Returns true if this node has any added outside edges. |
int |
hashCode()
|
boolean |
hasNonEscapingEdge(jq_Field m,
MethodSummary.Node n)
|
boolean |
hasNonEscapingEdges()
Returns true if this node has any added inside edges. |
boolean |
hasPredecessor(jq_Field f,
MethodSummary.Node n)
|
boolean |
isPassedAsParameter()
|
static int |
numberOfNodes()
Maps added edges to the quads that they come from. |
void |
readEdges(jwutil.collections.IndexMap map,
java.util.StringTokenizer st)
|
boolean |
recordPassedParameter(MethodSummary.PassedParameter cm)
Record the given passed parameter in the set for this node. |
boolean |
recordPassedParameter(ProgramLocation m,
int paramNum)
Record the passed parameter of the given method call and argument number in the set for this node. |
boolean |
removeAccessPathEdge(jq_Field m,
MethodSummary.FieldNode n)
Remove the given successor node on the given field from the outside edge set. |
boolean |
removeEdge(jq_Field m,
MethodSummary.Node n)
Remove the given successor node on the given field from the inside edge set. |
boolean |
removePredecessor(jq_Field m,
MethodSummary.Node n)
Remove the given predecessor node on the given field from the predecessor set. |
void |
replaceBy(java.util.Set set,
boolean removeSelf)
Replace this node by the given set of nodes. |
void |
setEscapes()
|
java.lang.String |
toString_long()
Return a string representation of the node in long form. |
abstract java.lang.String |
toString_short()
Return a string representation of the node in short form. |
java.lang.String |
toString()
|
void |
update(java.util.HashMap um)
Update all predecessor and successor nodes with the given update map. |
void |
write(jwutil.io.Textualizer t)
|
void |
writeEdges(jwutil.io.Textualizer t)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final int id
public static boolean TRACK_REASONS
| Method Detail |
|---|
public static int numberOfNodes()
public int hashCode()
hashCode in class java.lang.Objectpublic final int compareTo(MethodSummary.Node that)
public final int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic boolean isPassedAsParameter()
public java.util.Set getPassedParameters()
public void replaceBy(java.util.Set set,
boolean removeSelf)
public void update(java.util.HashMap um)
public abstract jq_Reference getDeclaredType()
public abstract jq_Method getDefiningMethod()
public abstract MethodSummary.Node copy()
public boolean hasPredecessor(jq_Field f,
MethodSummary.Node n)
public boolean removePredecessor(jq_Field m,
MethodSummary.Node n)
public boolean addPredecessor(jq_Field m,
MethodSummary.Node n)
public java.util.Set getPredecessors()
public java.util.Collection getPredecessorTargets()
public boolean recordPassedParameter(MethodSummary.PassedParameter cm)
public boolean recordPassedParameter(ProgramLocation m,
int paramNum)
public boolean removeEdge(jq_Field m,
MethodSummary.Node n)
public boolean hasNonEscapingEdge(jq_Field m,
MethodSummary.Node n)
public boolean addEdge(jq_Field m,
MethodSummary.Node n)
public boolean addEdges(jq_Field m,
java.util.Set s)
public static boolean addEdges(java.util.Set s,
jq_Field f,
MethodSummary.Node n)
public boolean removeAccessPathEdge(jq_Field m,
MethodSummary.FieldNode n)
public boolean hasAccessPathEdge(jq_Field m,
MethodSummary.Node n)
public boolean addAccessPathEdge(jq_Field m,
MethodSummary.FieldNode n)
public boolean addAccessPathEdges(jq_Field m,
java.util.Set s)
public final void getAllEdges(jq_Field m,
java.util.Set result)
public final java.util.Set getAllEdges(jq_Field m)
public final java.util.Set getAllEdges()
public final java.util.Set getNonEscapingEdges(jq_Field m)
public void getEdges_escaped(jq_Field m,
java.util.Set result)
public java.util.Set getNonEscapingEdges()
public java.util.Set getNonEscapingEdgeFields()
public java.util.Collection getNonEscapingEdgeTargets()
public boolean hasNonEscapingEdges()
public boolean hasAccessPathEdges()
public final java.util.Set getAccessPathEdges(jq_Field m)
public void getAccessPathEdges(jq_Field m,
java.util.Set result)
public java.util.Set getAccessPathEdges()
public java.util.Set getAccessPathEdgeFields()
public java.util.Collection getAccessPathEdgeTargets()
public void setEscapes()
public boolean getEscapes()
public abstract java.lang.String toString_short()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString_long()
public void write(jwutil.io.Textualizer t)
throws java.io.IOException
write in interface jwutil.io.Textualizablejava.io.IOException
public void readEdges(jwutil.collections.IndexMap map,
java.util.StringTokenizer st)
public void addEdge(java.lang.String edge,
jwutil.io.Textualizable t)
addEdge in interface jwutil.io.Textualizable
public void writeEdges(jwutil.io.Textualizer t)
throws java.io.IOException
writeEdges in interface jwutil.io.Textualizablejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||