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(java.lang.Object obj) |
java.util.Collection<Annotation> |
getAnnotations()
get annotations, if any
|
java.util.Collection<Annotation> |
getAnnotations(boolean runtimeInvisible) |
ClassSignature |
getClassSignature() |
Module |
getContainer() |
protected java.util.Collection<Annotation> |
getFieldAnnotations(int fieldIndex,
boolean runtimeInvisible) |
protected java.util.Collection<TypeAnnotation> |
getFieldTypeAnnotations(int fieldIndex,
boolean runtimeInvisible) |
ModuleEntry |
getModuleEntry() |
TypeReference |
getOuterClass()
If this is an inner class, return the outer class.
|
com.ibm.wala.shrikeCT.ClassReader |
getReader() |
java.util.Collection<Annotation> |
getRuntimeInvisibleAnnotations() |
java.util.Collection<Annotation> |
getRuntimeInvisibleAnnotations(int fieldIndex)
read the runtime-invisible annotations from the class file
|
java.util.Collection<TypeAnnotation> |
getRuntimeInvisibleTypeAnnotations(int fieldIndex)
read the runtime-invisible type annotations from the class file
|
java.util.Collection<Annotation> |
getRuntimeVisibleAnnotations() |
java.util.Collection<Annotation> |
getRuntimeVisibleAnnotations(int fieldIndex)
read the runtime-invisible annotations from the class file
|
java.util.Collection<TypeAnnotation> |
getRuntimeVisibleTypeAnnotations(int fieldIndex)
read the runtime-visible type annotations from the class file
|
java.util.Collection<TypeAnnotation> |
getTypeAnnotations(boolean runtimeInvisible) |
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, isSyntheticaddFieldToList, 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, toStringpublic ShrikeClass(ShrikeClassReaderHandle reader, IClassLoader loader, IClassHierarchy cha) throws com.ibm.wala.shrikeCT.InvalidClassFileException
java.lang.IllegalArgumentException - if reader is nullcom.ibm.wala.shrikeCT.InvalidClassFileExceptionprotected ShrikeCTMethod[] computeDeclaredMethods() throws com.ibm.wala.shrikeCT.InvalidClassFileException
computeDeclaredMethods in class BytecodeClass<IClassLoader>com.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(Object)public com.ibm.wala.shrikeCT.ClassReader getReader()
public void clearSoftCaches()
public java.util.Collection<Annotation> getRuntimeInvisibleAnnotations() throws com.ibm.wala.shrikeCT.InvalidClassFileException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic java.util.Collection<Annotation> getRuntimeVisibleAnnotations() throws com.ibm.wala.shrikeCT.InvalidClassFileException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic java.util.Collection<Annotation> getAnnotations()
IClasspublic java.util.Collection<Annotation> getAnnotations(boolean runtimeInvisible) throws com.ibm.wala.shrikeCT.InvalidClassFileException
getAnnotations in class BytecodeClass<IClassLoader>com.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic java.util.Collection<TypeAnnotation> getTypeAnnotations(boolean runtimeInvisible) throws com.ibm.wala.shrikeCT.InvalidClassFileException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic java.util.Collection<Annotation> getRuntimeInvisibleAnnotations(int fieldIndex) throws com.ibm.wala.shrikeCT.InvalidClassFileException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic java.util.Collection<Annotation> getRuntimeVisibleAnnotations(int fieldIndex) throws com.ibm.wala.shrikeCT.InvalidClassFileException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionprotected java.util.Collection<Annotation> getFieldAnnotations(int fieldIndex, boolean runtimeInvisible) throws com.ibm.wala.shrikeCT.InvalidClassFileException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic java.util.Collection<TypeAnnotation> getRuntimeInvisibleTypeAnnotations(int fieldIndex) throws com.ibm.wala.shrikeCT.InvalidClassFileException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic java.util.Collection<TypeAnnotation> getRuntimeVisibleTypeAnnotations(int fieldIndex) throws com.ibm.wala.shrikeCT.InvalidClassFileException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionprotected java.util.Collection<TypeAnnotation> getFieldTypeAnnotations(int fieldIndex, boolean runtimeInvisible) throws com.ibm.wala.shrikeCT.InvalidClassFileException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic ClassSignature getClassSignature() throws com.ibm.wala.shrikeCT.InvalidClassFileException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic ModuleEntry getModuleEntry()
public boolean isInnerClass()
throws com.ibm.wala.shrikeCT.InvalidClassFileException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic boolean isStaticInnerClass()
throws com.ibm.wala.shrikeCT.InvalidClassFileException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic TypeReference getOuterClass() throws com.ibm.wala.shrikeCT.InvalidClassFileException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic Module getContainer()
getContainer in class BytecodeClass<IClassLoader>