1 57 58 package org.apache.wsif.compiler.schema.tools; 59 60 import java.util.*; 61 62 67 public class ClassFile { 68 69 private Vector fields = new Vector(); 70 private Vector innerClasses = new Vector(); 71 String className; String packageName; String superClassName; 74 boolean isAbstract = false; 75 boolean isFinal = false; 76 77 83 public ClassFile(String className) { 84 85 this.className = className; 86 87 } 88 89 94 public void addField(ClassField field) { 95 96 fields.addElement(field); 97 } 98 99 104 public void addInnerClass(ClassFile innerClass) { 105 106 innerClasses.addElement(innerClass); 107 } 108 109 115 public ClassField getField(int i) { 116 117 return (ClassField) fields.elementAt(i); 118 } 119 120 125 public int getFieldCount() { 126 return fields.size(); 127 } 128 129 135 public ClassFile getInnerClass(int i) { 136 return (ClassFile) innerClasses.elementAt(i); 137 } 138 139 144 public int getInnerClassCount() { 145 return innerClasses.size(); 146 } 147 } | Popular Tags |