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()
boolean
equals(Object obj)
Collection<Annotation>
getAnnotations()
get annotations, if anyCollection<Annotation>
getAnnotations(boolean runtimeInvisible)
org.jf.dexlib.ClassDefItem
getClassDefItem()
IMethod
getClassInitializer()
Module
getContainer()
int
getModifiers()
Return the integer that encodes the class's modifiers, as defined by the JVM specificationint
hashCode()
boolean
isAbstract()
boolean
isInterface()
Is this class a Java interface?boolean
isPrivate()
boolean
isPublic()
-
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:IClass
Is this class a Java interface?
-
isAbstract
public boolean isAbstract()
- Returns:
- true iff this class is abstract
-
getModifiers
public int getModifiers() throws UnsupportedOperationException
Description copied from interface:IClass
Return 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:
equals
in classObject
- See Also:
Object.equals(Object)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classBytecodeClass<IClassLoader>
-
getAnnotations
public Collection<Annotation> 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
-
computeDeclaredMethods
protected IMethod[] computeDeclaredMethods() throws InvalidClassFileException
- Specified by:
computeDeclaredMethods
in 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:
getContainer
in classBytecodeClass<IClassLoader>
-
-