public class FlowNode {
// descriptor tuple is a unique identifier of the flow node
- private NTuple<Descriptor> descTuple;
+ protected NTuple<Descriptor> descTuple;
// if the infer node represents the base type of field access,
// this set contains fields of the base type
return descTuple.get(descTuple.size() - 1);
}
- public boolean isReturn() {
- return isReturn;
- }
-
- public void setReturn(boolean isReturn) {
- this.isReturn = isReturn;
- }
-
public boolean isPrimitiveType() {
Descriptor desc = descTuple.get(descTuple.size() - 1);
if (desc instanceof VarDescriptor) {
return rtr;
}
-// public Iterator<FlowEdge> iteratorOfOutEdges() {
-// return outEdgeSet.iterator();
-// }
-//
-// public void addOutEdge(FlowEdge out) {
-// outEdgeSet.add(out);
-// }
-//
-// public Set<FlowEdge> getOutEdgeSet() {
-// return outEdgeSet;
-// }
-
public int hashCode() {
return 7 + descTuple.hashCode();
}
id += " " + compLoc;
}
- if (isReturn()) {
- property += "R";
- }
-
- if (isSkeleton()) {
- property += "S";
- }
+ // if (isReturn()) {
+ // property += "R";
+ // }
+ //
+ // if (isSkeleton()) {
+ // property += "S";
+ // }
if (property.length() > 0) {
property = " [" + property + "]";