1 package Analysis.SSJava;
8 private Descriptor desc;
10 private boolean isSkeleton;
11 private boolean isCombinationNode;
12 private boolean isSharedNode;
13 private boolean isMergeNode;
16 this.isSkeleton = false;
17 this.isCombinationNode = false;
18 this.isSharedNode = false;
19 this.isMergeNode = false;
22 public boolean isMergeNode() {
26 public void setMergeNode(boolean isMergeNode) {
27 this.isMergeNode = isMergeNode;
30 public HNode(String name) {
35 public HNode(Descriptor d) {
38 this.name = d.getSymbol();
41 public boolean isSharedNode() {
45 public void setSharedNode(boolean b) {
46 this.isSharedNode = b;
49 public boolean isSkeleton() {
53 public void setSkeleton(boolean isSkeleton) {
54 this.isSkeleton = isSkeleton;
57 public boolean isCombinationNode() {
58 return isCombinationNode;
61 public void setCombinationNode(boolean b) {
62 isCombinationNode = b;
65 public String getName() {
69 public boolean equals(Object o) {
70 if (o instanceof HNode) {
72 if (getName().equals(in.getName())) {
79 public String getNamePropertyString() {
80 return toString().substring(1, toString().length() - 1);
83 public String toString() {
85 String properties = "";
91 if (isCombinationNode()) {
99 if (properties.length() > 0) {
100 properties = "(" + properties + ")";
103 return "[" + name + properties + "]";
106 public Descriptor getDescriptor() {
110 public int hashCode() {
111 return 7 + name.hashCode();