Package com.ibm.wala.dalvik.classLoader
Class DexIClass
- java.lang.Object
-
- com.ibm.wala.classLoader.BytecodeClass<IClassLoader>
-
- com.ibm.wala.dalvik.classLoader.DexIClass
-
- All Implemented Interfaces:
IClass,IClassHierarchyDweller
public class DexIClass extends BytecodeClass<IClassLoader>
-
-
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
Constructors Constructor Description DexIClass(IClassLoader loader, IClassHierarchy cha, DexModuleEntry dexEntry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IMethod[]computeDeclaredMethods()booleanequals(Object obj)Collection<Annotation>getAnnotations()get annotations, if anyCollection<Annotation>getAnnotations(boolean runtimeInvisible)org.jf.dexlib.ClassDefItemgetClassDefItem()IMethodgetClassInitializer()ModulegetContainer()intgetModifiers()Return the integer that encodes the class's modifiers, as defined by the JVM specificationinthashCode()booleanisAbstract()booleanisInterface()Is this class a Java interface?booleanisPrivate()booleanisPublic()-
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, isArrayClass, isReferenceType, populateFieldArrayFromList, toString
-
-
-
-
Constructor Detail
-
DexIClass
public DexIClass(IClassLoader loader, IClassHierarchy cha, DexModuleEntry dexEntry)
-
-
Method Detail
-
getClassDefItem
public org.jf.dexlib.ClassDefItem getClassDefItem()
- Returns:
- The classDef Item associated with this class.
-
isPublic
public boolean isPublic()
- Returns:
- true iff this class is public
-
isPrivate
public boolean isPrivate()
- Returns:
- true iff this class is private
-
isInterface
public boolean isInterface()
Description copied from interface:IClassIs this class a Java interface?
-
isAbstract
public boolean isAbstract()
- Returns:
- true iff this class is abstract
-
getModifiers
public int getModifiers() throws UnsupportedOperationExceptionDescription copied from interface:IClassReturn the integer that encodes the class's modifiers, as defined by the JVM specification- Returns:
- the integer that encodes the class's modifiers, as defined by the JVM specification
- Throws:
UnsupportedOperationException
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classObject- See Also:
Object.equals(Object)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBytecodeClass<IClassLoader>
-
getAnnotations
public Collection<Annotation> 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
-
computeDeclaredMethods
protected IMethod[] computeDeclaredMethods() throws InvalidClassFileException
- Specified by:
computeDeclaredMethodsin classBytecodeClass<IClassLoader>- Throws:
InvalidClassFileException
-
getClassInitializer
public IMethod getClassInitializer()
- Returns:
- the method that is this class's initializer, or null if none
-
getContainer
public Module getContainer()
- Specified by:
getContainerin classBytecodeClass<IClassLoader>
-
-