KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > bytecode > aspectwerkz > SimpleClassInfo


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.object.bytecode.aspectwerkz;
5
6 import org.apache.commons.lang.builder.ToStringBuilder;
7
8 import com.tc.aspectwerkz.reflect.ClassInfo;
9 import com.tc.aspectwerkz.reflect.ConstructorInfo;
10 import com.tc.aspectwerkz.reflect.FieldInfo;
11 import com.tc.aspectwerkz.reflect.MethodInfo;
12 import com.tc.aspectwerkz.reflect.StaticInitializationInfo;
13 import com.tc.backport175.bytecode.AnnotationElement;
14 import com.tc.backport175.bytecode.AnnotationReader;
15
16 /**
17  *
18  */

19 public class SimpleClassInfo implements ClassInfo {
20
21   private static final ClassInfo[] NO_INTERFACES = new ClassInfo[0];
22   
23   private String JavaDoc className;
24
25   protected SimpleClassInfo(String JavaDoc className) {
26     this.className = className;
27   }
28
29   public String JavaDoc toString() {
30     return ToStringBuilder.reflectionToString(this);
31   }
32
33   public ConstructorInfo getConstructor(int hash) {
34     throw new RuntimeException JavaDoc();
35   }
36
37   public ConstructorInfo[] getConstructors() {
38     throw new RuntimeException JavaDoc();
39   }
40
41   public MethodInfo getMethod(int hash) {
42     throw new RuntimeException JavaDoc();
43   }
44
45   public MethodInfo[] getMethods() {
46     throw new RuntimeException JavaDoc();
47   }
48
49   public FieldInfo getField(int hash) {
50     throw new RuntimeException JavaDoc();
51   }
52
53   public FieldInfo[] getFields() {
54     throw new RuntimeException JavaDoc();
55   }
56
57   public ClassLoader JavaDoc getClassLoader() {
58     throw new RuntimeException JavaDoc();
59   }
60
61   public boolean hasStaticInitializer() {
62     throw new RuntimeException JavaDoc();
63   }
64
65   public StaticInitializationInfo staticInitializer() {
66     throw new RuntimeException JavaDoc();
67   }
68
69   public ClassInfo[] getInterfaces() {
70     return NO_INTERFACES;
71   }
72
73   public ClassInfo getSuperclass() {
74     return null;
75   }
76
77   public ClassInfo getComponentType() {
78     throw new RuntimeException JavaDoc();
79   }
80
81   public boolean isInterface() {
82     throw new RuntimeException JavaDoc();
83   }
84
85   public boolean isPrimitive() {
86     throw new RuntimeException JavaDoc();
87   }
88
89   public boolean isArray() {
90     throw new RuntimeException JavaDoc();
91   }
92
93   public AnnotationReader getAnnotationReader() {
94     throw new RuntimeException JavaDoc();
95   }
96
97   public String JavaDoc getName() {
98     return this.className;
99   }
100
101   public String JavaDoc getSignature() {
102     throw new RuntimeException JavaDoc();
103   }
104   
105   public String JavaDoc getGenericsSignature() {
106     throw new RuntimeException JavaDoc();
107   }
108
109   public int getModifiers() {
110     throw new RuntimeException JavaDoc();
111   }
112
113   public AnnotationElement.Annotation[] getAnnotations() {
114     throw new RuntimeException JavaDoc();
115   }
116
117 }
118
Popular Tags