public final class ShrikeClass extends JVMClass<IClassLoader>
allInterfaces, cha, hashCode, inheritCache, instanceFields, interfaceNames, loader, methodMap, staticFields, superClass, superclassComputed, superName, typeReference
Constructor and Description |
---|
ShrikeClass(ShrikeClassReaderHandle reader,
IClassLoader loader,
IClassHierarchy cha) |
Modifier and Type | Method and Description |
---|---|
void |
clearSoftCaches()
Clear all optional cached data associated with this class
|
protected ShrikeCTMethod[] |
computeDeclaredMethods()
initialize the declared methods array
|
boolean |
equals(Object obj) |
Collection<Annotation> |
getAnnotations()
get annotations, if any
|
Collection<Annotation> |
getAnnotations(boolean runtimeInvisible) |
ClassSignature |
getClassSignature() |
Module |
getContainer() |
protected Collection<Annotation> |
getFieldAnnotations(int fieldIndex,
boolean runtimeInvisible) |
ModuleEntry |
getModuleEntry() |
TypeReference |
getOuterClass()
If this is an inner class, return the outer class.
|
ClassReader |
getReader() |
Collection<Annotation> |
getRuntimeInvisibleAnnotations() |
Collection<Annotation> |
getRuntimeInvisibleAnnotations(int fieldIndex)
read the runtime-invisible annotations from the class file
|
Collection<Annotation> |
getRuntimeVisibleAnnotations() |
Collection<Annotation> |
getRuntimeVisibleAnnotations(int fieldIndex)
read the runtime-invisible annotations from the class file
|
boolean |
isInnerClass()
Does the class file indicate that this class is a member of some other
class?
|
boolean |
isStaticInnerClass()
Does the class file indicate that this class is a static inner class?
|
getClassInitializer, getModifiers, isAbstract, isInterface, isPrivate, isPublic
addFieldToList, computeAllInterfacesAsCollection, computeMethodMapIfNeeded, findDeclaredField, getAllFields, getAllImplementedInterfaces, getAllInstanceFields, getAllMethods, getAllStaticFields, getClassHierarchy, getClassLoader, getDeclaredInstanceFields, getDeclaredMethods, getDeclaredStaticFields, getDirectInterfaces, getField, getField, getMethod, getName, getReference, getSource, getSourceFileName, getSuperclass, hashCode, isArrayClass, isReferenceType, populateFieldArrayFromList, toString
public ShrikeClass(ShrikeClassReaderHandle reader, IClassLoader loader, IClassHierarchy cha) throws InvalidClassFileException
IllegalArgumentException
- if reader is nullInvalidClassFileException
protected ShrikeCTMethod[] computeDeclaredMethods() throws InvalidClassFileException
computeDeclaredMethods
in class BytecodeClass<IClassLoader>
InvalidClassFileException
public boolean equals(Object obj)
equals
in class Object
Object.equals(Object)
public ClassReader getReader()
public void clearSoftCaches()
public Collection<Annotation> getRuntimeInvisibleAnnotations() throws InvalidClassFileException
InvalidClassFileException
public Collection<Annotation> getRuntimeVisibleAnnotations() throws InvalidClassFileException
InvalidClassFileException
public Collection<Annotation> getAnnotations()
IClass
public Collection<Annotation> getAnnotations(boolean runtimeInvisible) throws InvalidClassFileException
getAnnotations
in class BytecodeClass<IClassLoader>
InvalidClassFileException
public Collection<Annotation> getRuntimeInvisibleAnnotations(int fieldIndex) throws InvalidClassFileException
InvalidClassFileException
public Collection<Annotation> getRuntimeVisibleAnnotations(int fieldIndex) throws InvalidClassFileException
InvalidClassFileException
protected Collection<Annotation> getFieldAnnotations(int fieldIndex, boolean runtimeInvisible) throws InvalidClassFileException
InvalidClassFileException
public ClassSignature getClassSignature() throws InvalidClassFileException
InvalidClassFileException
public ModuleEntry getModuleEntry()
public boolean isInnerClass() throws InvalidClassFileException
InvalidClassFileException
public boolean isStaticInnerClass() throws InvalidClassFileException
InvalidClassFileException
public TypeReference getOuterClass() throws InvalidClassFileException
InvalidClassFileException
public Module getContainer()
getContainer
in class BytecodeClass<IClassLoader>