Class AndroidModelClass
java.lang.Object
com.ibm.wala.classLoader.SyntheticClass
com.ibm.wala.dalvik.ipa.callgraph.androidModel.AndroidModelClass
- All Implemented Interfaces:
IClass
,IClassHierarchyDweller
Encapsulates synthetic methods for modeling Androids lifecycle.
In the generated code this class may be found as "Lcom/ibm/wala/AndroidModelClass"
- Author:
- Tobias Blaschke <code@tobiasblaschke.de> TODO: Move this class into an other loader? Currently: Primordial
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
containsMethod
(Selector selector) This class does not contain any fields.This class does not impement any interfaces.This class does not contain any fields.Compute the methods declared by this class or any of its superclasses.This class does not contain any fields.This class does not contain any fields.This class does not contain any fields.Finds a field.static AndroidModelClass
Finds method matching signature.int
This is a public final class.This is a subclass of the root class.boolean
boolean
boolean
Is this class a Java interface?boolean
boolean
isPublic()
boolean
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, isSynthetic
-
Field Details
-
ANDROID_MODEL_CLASS
-
-
Method Details
-
getInstance
-
containsMethod
-
getMethod
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
- Returns:
- an Iterator of the IMethods declared by this class.
-
getAllMethods
Description copied from interface:IClass
Compute the methods declared by this class or any of its superclasses. -
addMethod
-
getClassInitializer
- Returns:
- the method that is this class's initializer, or null if none
-
getField
-
putField
-
getAllFields
This class does not contain any fields. -
getDeclaredStaticFields
This class does not contain any fields.- Returns:
- Collection of IField
-
getAllStaticFields
This class does not contain any fields. -
getDeclaredInstanceFields
This class does not contain any fields.- Returns:
- Collection of IFields
- Throws:
UnsupportedOperationException
-
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
This is a subclass of the root class.- Returns:
- the superclass, or null if java.lang.Object
- Throws:
UnsupportedOperationException
-
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
- 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.
-