1 18 package org.apache.activemq.systest.task; 19 20 import org.codehaus.jam.JAnnotation; 21 import org.codehaus.jam.JAnnotationValue; 22 import org.codehaus.jam.JClass; 23 import org.codehaus.jam.JComment; 24 import org.codehaus.jam.JConstructor; 25 import org.codehaus.jam.JElement; 26 import org.codehaus.jam.JField; 27 import org.codehaus.jam.JMethod; 28 import org.codehaus.jam.JPackage; 29 import org.codehaus.jam.JProperty; 30 import org.codehaus.jam.JSourcePosition; 31 import org.codehaus.jam.JamClassLoader; 32 import org.codehaus.jam.visitor.JVisitor; 33 34 38 public class ScenarioJClassStub implements JClass { 39 protected static final String [] EMPTY_ARRAY = {}; 40 41 private final String qualifiedName; 42 private final String [] interfaceNames; 43 private final String simpleName; 44 private JClass[] interfaces; 45 46 public ScenarioJClassStub(String qualifiedName, String [] interfaceNames) { 47 this.qualifiedName = qualifiedName; 48 this.interfaceNames = interfaceNames; 49 50 int idx = qualifiedName.lastIndexOf('.'); 51 if (idx > 0) { 52 this.simpleName = qualifiedName.substring(idx + 1); 53 } 54 else { 55 this.simpleName = qualifiedName; 56 } 57 } 58 59 public JPackage getContainingPackage() { 60 return null; 61 } 62 63 public JClass getSuperclass() { 64 return null; 65 } 66 67 public JClass[] getInterfaces() { 68 if (interfaces == null) { 69 int size = interfaceNames.length; 70 interfaces = new JClass[size]; 71 for (int i = 0; i < interfaceNames.length; i++) { 72 interfaces[i] = new ScenarioJClassStub(interfaceNames[i], EMPTY_ARRAY); 73 } 74 } 75 return interfaces; 76 } 77 78 public JField[] getFields() { 79 return null; 80 } 81 82 public JField[] getDeclaredFields() { 83 return null; 84 } 85 86 public JMethod[] getMethods() { 87 return null; 88 } 89 90 public JMethod[] getDeclaredMethods() { 91 return null; 92 } 93 94 public JConstructor[] getConstructors() { 95 return null; 96 } 97 98 public JProperty[] getProperties() { 99 return null; 100 } 101 102 public JProperty[] getDeclaredProperties() { 103 return null; 104 } 105 106 public boolean isInterface() { 107 return false; 108 } 109 110 public boolean isAnnotationType() { 111 return false; 112 } 113 114 public boolean isPrimitiveType() { 115 return false; 116 } 117 118 public boolean isBuiltinType() { 119 return false; 120 } 121 122 public Class getPrimitiveClass() { 123 return null; 124 } 125 126 public boolean isFinal() { 127 return false; 128 } 129 130 public boolean isStatic() { 131 return false; 132 } 133 134 public boolean isAbstract() { 135 return false; 136 } 137 138 public boolean isVoidType() { 139 return false; 140 } 141 142 public boolean isObjectType() { 143 return false; 144 } 145 146 public boolean isArrayType() { 147 return false; 148 } 149 150 public JClass getArrayComponentType() { 151 return null; 152 } 153 154 public int getArrayDimensions() { 155 return 0; 156 } 157 158 public boolean isAssignableFrom(JClass arg0) { 159 return false; 160 } 161 162 public JClass[] getClasses() { 163 return null; 164 } 165 166 public JClass getContainingClass() { 167 return null; 168 } 169 170 public String getFieldDescriptor() { 171 return null; 172 } 173 174 public boolean isEnumType() { 175 return false; 176 } 177 178 public JamClassLoader getClassLoader() { 179 return null; 180 } 181 182 public JClass forName(String arg0) { 183 return null; 184 } 185 186 public JClass[] getImportedClasses() { 187 return null; 188 } 189 190 public JPackage[] getImportedPackages() { 191 return null; 192 } 193 194 public boolean isUnresolvedType() { 195 return false; 196 } 197 198 public int getModifiers() { 199 return 0; 200 } 201 202 public boolean isPackagePrivate() { 203 return false; 204 } 205 206 public boolean isPrivate() { 207 return false; 208 } 209 210 public boolean isProtected() { 211 return false; 212 } 213 214 public boolean isPublic() { 215 return false; 216 } 217 218 public JAnnotation[] getAnnotations() { 219 return null; 220 } 221 222 public JAnnotation getAnnotation(Class arg0) { 223 return null; 224 } 225 226 public Object getAnnotationProxy(Class arg0) { 227 return null; 228 } 229 230 public JAnnotation getAnnotation(String arg0) { 231 return null; 232 } 233 234 public JAnnotationValue getAnnotationValue(String arg0) { 235 return null; 236 } 237 238 public JComment getComment() { 239 return null; 240 } 241 242 public JAnnotation[] getAllJavadocTags() { 243 return null; 244 } 245 246 public JElement getParent() { 247 return null; 248 } 249 250 public String getSimpleName() { 251 return simpleName; 252 } 253 254 public String getQualifiedName() { 255 return qualifiedName; 256 } 257 258 public JSourcePosition getSourcePosition() { 259 return null; 260 } 261 262 public void accept(JVisitor arg0) { 263 } 264 265 public Object getArtifact() { 266 return null; 267 } 268 269 } 270 | Popular Tags |