Class AndroidModelClass
- java.lang.Object
-
- com.ibm.wala.classLoader.SyntheticClass
-
- com.ibm.wala.dalvik.ipa.callgraph.androidModel.AndroidModelClass
-
- All Implemented Interfaces:
IClass
,IClassHierarchyDweller
public final class AndroidModelClass extends SyntheticClass
Encapsulates synthetic methods for modeling Androids lifecycle. In the generated code this class may be found as "Lcom/ibm/wala/AndroidModelClass"- See Also:
com.ibm.wala.dalvik.ipa.callgraph.impl.FakeRootClass
-
-
Field Summary
Fields Modifier and Type Field Description static TypeReference
ANDROID_MODEL_CLASS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMethod(IMethod method)
boolean
containsMethod(Selector selector)
Collection<IField>
getAllFields()
This class does not contain any fields.Collection<IClass>
getAllImplementedInterfaces()
This class does not impement any interfaces.Collection<IField>
getAllInstanceFields()
This class does not contain any fields.Collection<IMethod>
getAllMethods()
Compute the methods declared by this class or any of its superclasses.Collection<IField>
getAllStaticFields()
This class does not contain any fields.IMethod
getClassInitializer()
Collection<IField>
getDeclaredInstanceFields()
This class does not contain any fields.Collection<IMethod>
getDeclaredMethods()
Collection<IField>
getDeclaredStaticFields()
This class does not contain any fields.Collection<IClass>
getDirectInterfaces()
IField
getField(Atom name)
Finds a field.static AndroidModelClass
getInstance(IClassHierarchy cha)
IMethod
getMethod(Selector selector)
Finds method matching signature.int
getModifiers()
This is a public final class.IClass
getSuperclass()
This is a subclass of the root class.boolean
isAbstract()
boolean
isArrayClass()
boolean
isInterface()
Is this class a Java interface?boolean
isPrivate()
boolean
isPublic()
boolean
isReferenceType()
Does 'this' refer to a reference type? If not, then it refers to a primitive type.void
putField(Atom name, TypeReference type)
-
Methods inherited from class com.ibm.wala.classLoader.SyntheticClass
equals, getAnnotations, getClassHierarchy, getClassLoader, getField, getName, getReference, getSource, getSourceFileName, hashCode
-
-
-
-
Field Detail
-
ANDROID_MODEL_CLASS
public static final TypeReference ANDROID_MODEL_CLASS
-
-
Method Detail
-
getInstance
public static AndroidModelClass getInstance(IClassHierarchy cha)
-
containsMethod
public boolean containsMethod(Selector selector)
-
getMethod
public IMethod getMethod(Selector selector)
Description copied from interface:IClass
Finds method matching signature. Delegates to superclass if not found.- Parameters:
selector
- a method signature- Returns:
- IMethod from this class matching the signature; null if not found in this class or any superclass.
-
getDeclaredMethods
public Collection<IMethod> getDeclaredMethods()
- Returns:
- an Iterator of the IMethods declared by this class.
-
getAllMethods
public Collection<IMethod> getAllMethods()
Description copied from interface:IClass
Compute the methods declared by this class or any of its superclasses.
-
addMethod
public void addMethod(IMethod method)
-
getClassInitializer
public IMethod getClassInitializer()
- Returns:
- the method that is this class's initializer, or null if none
-
getField
public IField getField(Atom name)
Description copied from interface:IClass
Finds a field.
-
putField
public void putField(Atom name, TypeReference type)
-
getAllFields
public Collection<IField> getAllFields()
This class does not contain any fields.
-
getDeclaredStaticFields
public Collection<IField> getDeclaredStaticFields()
This class does not contain any fields.- Returns:
- Collection of IField
-
getAllStaticFields
public Collection<IField> getAllStaticFields()
This class does not contain any fields.
-
getDeclaredInstanceFields
public Collection<IField> getDeclaredInstanceFields() throws UnsupportedOperationException
This class does not contain any fields.- Returns:
- Collection of IFields
- Throws:
UnsupportedOperationException
-
getAllInstanceFields
public Collection<IField> getAllInstanceFields()
This class does not contain any fields.
-
getModifiers
public int getModifiers()
This is a public final class.- Returns:
- the integer that encodes the class's modifiers, as defined by the JVM specification
-
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?- Specified by:
isInterface
in interfaceIClass
- Overrides:
isInterface
in classSyntheticClass
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstract
in interfaceIClass
- Overrides:
isAbstract
in classSyntheticClass
- Returns:
- true iff this class is abstract
-
isArrayClass
public boolean isArrayClass()
- Specified by:
isArrayClass
in interfaceIClass
- Overrides:
isArrayClass
in classSyntheticClass
- Returns:
- true iff the class is an array class.
-
getSuperclass
public IClass getSuperclass() throws UnsupportedOperationException
This is a subclass of the root class.- Returns:
- the superclass, or null if java.lang.Object
- Throws:
UnsupportedOperationException
-
getAllImplementedInterfaces
public Collection<IClass> getAllImplementedInterfaces()
This class does not impement any interfaces.- Returns:
- Collection of (IClass) interfaces this class implements, including all ancestors of interfaces immediately implemented. If this class is an interface, it returns all super-interfaces.
-
getDirectInterfaces
public Collection<IClass> getDirectInterfaces()
- Returns:
- Collection of (IClass) interfaces this class directly implements. If this class is an interface, returns the interfaces it immediately extends.
-
isReferenceType
public boolean isReferenceType()
Description copied from interface:IClass
Does 'this' refer to a reference type? If not, then it refers to a primitive type.
-
-