Class ShrikeClass
- All Implemented Interfaces:
IClass, IClassHierarchyDweller
A class read from Shrike
-
Field Summary
Fields inherited from class BytecodeClass
allInterfaces, cha, hashCode, inheritCache, instanceFields, interfaceNames, loader, methodMap, staticFields, superClass, superclassComputed, superName, typeReference -
Constructor Summary
ConstructorsConstructorDescriptionShrikeClass(ShrikeClassReaderHandle reader, IClassLoader loader, IClassHierarchy cha) -
Method Summary
Modifier and TypeMethodDescriptionvoidClear all optional cached data associated with this classprotected ShrikeCTMethod[]initialize the declared methods arraybooleanget annotations, if anygetAnnotations(boolean runtimeInvisible) If this is an inner class, return the outer class.getRuntimeInvisibleAnnotations(int fieldIndex) read the runtime-invisible annotations from the class filegetRuntimeInvisibleTypeAnnotations(int fieldIndex) read the runtime-invisible type annotations from the class filegetRuntimeVisibleAnnotations(int fieldIndex) read the runtime-invisible annotations from the class filegetRuntimeVisibleTypeAnnotations(int fieldIndex) read the runtime-visible type annotations from the class filegetTypeAnnotations(boolean runtimeInvisible) booleanDoes the class file indicate that this class is a member of some other class?booleanDoes the class file indicate that this class is a static inner class?Methods inherited from class JVMClass
getClassInitializer, getModifiers, isAbstract, isInterface, isPrivate, isPublic, isSyntheticMethods inherited from class BytecodeClass
addFieldToList, computeAllInterfacesAsCollection, computeMethodMapIfNeeded, findDeclaredField, getAllFields, getAllImplementedInterfaces, getAllInstanceFields, getAllMethods, getAllStaticFields, getClassHierarchy, getClassLoader, getDeclaredInstanceFields, getDeclaredMethods, getDeclaredStaticFields, getDirectInterfaces, getField, getField, getMethod, getName, getReference, getSource, getSourceFileName, getSuperclass, getSuperName, hashCode, isArrayClass, isReferenceType, toString
-
Constructor Details
-
ShrikeClass
public ShrikeClass(ShrikeClassReaderHandle reader, IClassLoader loader, IClassHierarchy cha) throws InvalidClassFileException - Throws:
IllegalArgumentException- if reader is nullInvalidClassFileException
-
-
Method Details
-
computeDeclaredMethods
initialize the declared methods array- Specified by:
computeDeclaredMethodsin classBytecodeClass<IClassLoader>- Throws:
InvalidClassFileException
-
equals
-
getReader
-
clearSoftCaches
public void clearSoftCaches()Clear all optional cached data associated with this class -
getRuntimeInvisibleAnnotations
- Throws:
InvalidClassFileException
-
getRuntimeVisibleAnnotations
- Throws:
InvalidClassFileException
-
getAnnotations
Description copied from interface:IClassget annotations, if any -
getAnnotations
public Collection<Annotation> getAnnotations(boolean runtimeInvisible) throws InvalidClassFileException - Specified by:
getAnnotationsin classBytecodeClass<IClassLoader>- Throws:
InvalidClassFileException
-
getTypeAnnotations
public Collection<TypeAnnotation> getTypeAnnotations(boolean runtimeInvisible) throws InvalidClassFileException - Throws:
InvalidClassFileException
-
getRuntimeInvisibleAnnotations
public Collection<Annotation> getRuntimeInvisibleAnnotations(int fieldIndex) throws InvalidClassFileException read the runtime-invisible annotations from the class file- Throws:
InvalidClassFileException
-
getRuntimeVisibleAnnotations
public Collection<Annotation> getRuntimeVisibleAnnotations(int fieldIndex) throws InvalidClassFileException read the runtime-invisible annotations from the class file- Throws:
InvalidClassFileException
-
getRuntimeInvisibleTypeAnnotations
public Collection<TypeAnnotation> getRuntimeInvisibleTypeAnnotations(int fieldIndex) throws InvalidClassFileException read the runtime-invisible type annotations from the class file- Throws:
InvalidClassFileException
-
getRuntimeVisibleTypeAnnotations
public Collection<TypeAnnotation> getRuntimeVisibleTypeAnnotations(int fieldIndex) throws InvalidClassFileException read the runtime-visible type annotations from the class file- Throws:
InvalidClassFileException
-
getClassSignature
- Throws:
InvalidClassFileException
-
getModuleEntry
-
isInnerClass
Does the class file indicate that this class is a member of some other class?- Throws:
InvalidClassFileException
-
isStaticInnerClass
Does the class file indicate that this class is a static inner class?- Throws:
InvalidClassFileException
-
getOuterClass
If this is an inner class, return the outer class. Else return null.- Throws:
InvalidClassFileException
-
getContainer
- Specified by:
getContainerin classBytecodeClass<IClassLoader>
-