Class ShrikeClass
-
Field Summary
Fields inherited from class com.ibm.wala.classLoader.BytecodeClass
allInterfaces, cha, hashCode, inheritCache, instanceFields, interfaceNames, loader, methodMap, staticFields, superClass, superclassComputed, superName, typeReference
-
Constructor Summary
ConstructorDescriptionShrikeClass
(ShrikeClassReaderHandle reader, IClassLoader loader, IClassHierarchy cha) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear all optional cached data associated with this classprotected ShrikeCTMethod[]
initialize the declared methods arrayboolean
get 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) boolean
Does the class file indicate that this class is a member of some other class?boolean
Does the class file indicate that this class is a static inner class?Methods inherited from class com.ibm.wala.classLoader.JVMClass
getClassInitializer, getModifiers, isAbstract, isInterface, isPrivate, isPublic, isSynthetic
Methods inherited from class com.ibm.wala.classLoader.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:
computeDeclaredMethods
in 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:IClass
get annotations, if any -
getAnnotations
public Collection<Annotation> getAnnotations(boolean runtimeInvisible) throws InvalidClassFileException - Specified by:
getAnnotations
in 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:
getContainer
in classBytecodeClass<IClassLoader>
-