1 package Analysis.SSJava;
8 private Descriptor desc;
10 private boolean isSkeleton;
11 private boolean isCombinationNode;
12 private boolean isSharedNode;
15 this.isSkeleton = false;
16 this.isCombinationNode = false;
17 this.isSharedNode = false;
20 public HNode(String name) {
25 public HNode(Descriptor d) {
28 this.name = d.getSymbol();
31 public boolean isSharedNode() {
35 public void setSharedNode(boolean b) {
36 this.isSharedNode = b;
39 public boolean isSkeleton() {
43 public void setSkeleton(boolean isSkeleton) {
44 this.isSkeleton = isSkeleton;
47 public boolean isCombinationNode() {
48 return isCombinationNode;
51 public void setCombinationNode(boolean b) {
52 isCombinationNode = b;
55 public String getName() {
59 public boolean equals(Object o) {
60 if (o instanceof HNode) {
62 if (getName().equals(in.getName())) {
69 public String toString() {
71 String properties = "";
77 if (isCombinationNode()) {
85 if (properties.length() > 0) {
86 properties = "(" + properties + ")";
89 return "[" + name + properties + "]";
92 public Descriptor getDescriptor() {
96 public int hashCode() {
97 return 7 + name.hashCode();