01: /**
02: * Copyright (C) 2001-2005 France Telecom R&D
03: */package org.objectweb.speedo.genclass.merger;
04:
05: import java.util.HashSet;
06: import java.util.Set;
07:
08: public class GCInfo {
09:
10: public final String gcn;
11: public final String firstClass;
12: public final String secondClass;
13: public final String classToWrite;
14: public boolean isAbstract;
15: public Set nonAbstractMethods = new HashSet();
16: private String super Name;
17: public String[] itfs;
18:
19: public GCInfo(String gcn, String class1, String class2, String write) {
20: this .gcn = gcn;
21: this .firstClass = class1;
22: this .secondClass = class2;
23: this .classToWrite = write;
24: }
25:
26: public void setSuperName(String sn) {
27: if (super Name != null && !super Name.equals(sn)) {
28: System.err.println("Assign new super name: " + sn);
29: }
30: this .super Name = sn;
31: }
32:
33: public String getSuperName() {
34: return super Name;
35: }
36:
37: public boolean implement(String itfName) {
38: for (int i = 0; i < itfs.length; i++) {
39: if (itfs[i].equals(itfName)) {
40: return true;
41: }
42: }
43: return false;
44: }
45: }
|