001: /*
002: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
003: */
004: package com.tc.object.bytecode.aspectwerkz;
005:
006: import org.apache.commons.lang.builder.ToStringBuilder;
007:
008: import com.tc.aspectwerkz.reflect.ClassInfo;
009: import com.tc.aspectwerkz.reflect.ConstructorInfo;
010: import com.tc.aspectwerkz.reflect.FieldInfo;
011: import com.tc.aspectwerkz.reflect.MethodInfo;
012: import com.tc.aspectwerkz.reflect.StaticInitializationInfo;
013: import com.tc.backport175.bytecode.AnnotationElement;
014: import com.tc.backport175.bytecode.AnnotationReader;
015:
016: public class SimpleClassInfo implements ClassInfo {
017:
018: private static final ClassInfo[] NO_INTERFACES = new ClassInfo[0];
019:
020: private String className;
021:
022: protected SimpleClassInfo(String className) {
023: this .className = className;
024: }
025:
026: public String toString() {
027: return ToStringBuilder.reflectionToString(this );
028: }
029:
030: public ConstructorInfo getConstructor(int hash) {
031: throw new RuntimeException();
032: }
033:
034: public ConstructorInfo[] getConstructors() {
035: throw new RuntimeException();
036: }
037:
038: public MethodInfo getMethod(int hash) {
039: throw new RuntimeException();
040: }
041:
042: public MethodInfo[] getMethods() {
043: throw new RuntimeException();
044: }
045:
046: public FieldInfo getField(int hash) {
047: throw new RuntimeException();
048: }
049:
050: public FieldInfo[] getFields() {
051: throw new RuntimeException();
052: }
053:
054: public ClassLoader getClassLoader() {
055: throw new RuntimeException();
056: }
057:
058: public boolean hasStaticInitializer() {
059: throw new RuntimeException();
060: }
061:
062: public StaticInitializationInfo staticInitializer() {
063: throw new RuntimeException();
064: }
065:
066: public ClassInfo[] getInterfaces() {
067: return NO_INTERFACES;
068: }
069:
070: public ClassInfo getSuperclass() {
071: return null;
072: }
073:
074: public ClassInfo getComponentType() {
075: throw new RuntimeException();
076: }
077:
078: public boolean isInterface() {
079: throw new RuntimeException();
080: }
081:
082: public boolean isPrimitive() {
083: throw new RuntimeException();
084: }
085:
086: public boolean isArray() {
087: throw new RuntimeException();
088: }
089:
090: public AnnotationReader getAnnotationReader() {
091: throw new RuntimeException();
092: }
093:
094: public String getName() {
095: return this .className;
096: }
097:
098: public String getSignature() {
099: throw new RuntimeException();
100: }
101:
102: public String getGenericsSignature() {
103: throw new RuntimeException();
104: }
105:
106: public int getModifiers() {
107: throw new RuntimeException();
108: }
109:
110: public AnnotationElement.Annotation[] getAnnotations() {
111: throw new RuntimeException();
112: }
113:
114: }
|