Package com.ibm.wala.dalvik.util
Enum AndroidComponent
- java.lang.Object
-
- java.lang.Enum<AndroidComponent>
-
- com.ibm.wala.dalvik.util.AndroidComponent
-
- All Implemented Interfaces:
Serializable
,Comparable<AndroidComponent>
public enum AndroidComponent extends Enum<AndroidComponent>
Android Components like Activity, Service, ...- Since:
- 2013-10-16
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AndroidComponent
explicit(TypeName type)
Returns the Element the type matches exactly the given type.static AndroidComponent
explicit(TypeReference type)
Returns the Element the type matches exactly the given type.static AndroidComponent
explicit(String type)
Returns the Element the type matches exactly the given type.static AndroidComponent
from(IClass type, IClassHierarchy cha)
Return the Item that is a matching superclass.static AndroidComponent
from(IMethod method, IClassHierarchy cha)
Returns the AndroidComponent the method is declared in.TypeName
getName()
The TypeName associated to the component.String
getPrettyName()
A name usable for display-output.static boolean
isAndroidComponent(TypeReference T, IClassHierarchy cha)
static AndroidComponent
valueOf(String name)
Returns the enum constant of this type with the specified name.static AndroidComponent[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
APPLICATION
public static final AndroidComponent APPLICATION
-
ACTIVITY
public static final AndroidComponent ACTIVITY
-
FRAGMENT
public static final AndroidComponent FRAGMENT
-
SERVICE
public static final AndroidComponent SERVICE
-
INTENT_SERVICE
public static final AndroidComponent INTENT_SERVICE
-
ABSTRACT_INPUT_METHOD_SERVICE
public static final AndroidComponent ABSTRACT_INPUT_METHOD_SERVICE
-
ACCESSIBILITY_SERVICE
public static final AndroidComponent ACCESSIBILITY_SERVICE
-
DREAM_SERVICE
public static final AndroidComponent DREAM_SERVICE
-
HOST_APDU_SERVICE
public static final AndroidComponent HOST_APDU_SERVICE
-
MEDIA_ROUTE_PROVIDER_SERVICE
public static final AndroidComponent MEDIA_ROUTE_PROVIDER_SERVICE
-
NOTIFICATION_LISTENER_SERVICE
public static final AndroidComponent NOTIFICATION_LISTENER_SERVICE
-
OFF_HOST_APDU_SERVICE
public static final AndroidComponent OFF_HOST_APDU_SERVICE
-
PRINT_SERVICE
public static final AndroidComponent PRINT_SERVICE
-
RECOGNITION_SERVICE
public static final AndroidComponent RECOGNITION_SERVICE
-
REMOTE_VIEWS_SERVICE
public static final AndroidComponent REMOTE_VIEWS_SERVICE
-
SETTING_INJECTOR_SERVICE
public static final AndroidComponent SETTING_INJECTOR_SERVICE
-
SPELL_CHECKER_SERVICE
public static final AndroidComponent SPELL_CHECKER_SERVICE
-
TEXT_TO_SPEECH_SERVICE
public static final AndroidComponent TEXT_TO_SPEECH_SERVICE
-
VPN_SERVICE
public static final AndroidComponent VPN_SERVICE
-
WALLPAPER_SERVICE
public static final AndroidComponent WALLPAPER_SERVICE
-
INPUT_METHOD_SERVICE
public static final AndroidComponent INPUT_METHOD_SERVICE
-
PROVIDER
public static final AndroidComponent PROVIDER
-
BROADCAST_RECEIVER
public static final AndroidComponent BROADCAST_RECEIVER
-
LOADER_CB
public static final AndroidComponent LOADER_CB
-
RESOLVER
public static final AndroidComponent RESOLVER
-
CONTEXT
public static final AndroidComponent CONTEXT
-
HTTP
public static final AndroidComponent HTTP
-
BINDER
public static final AndroidComponent BINDER
-
LOCATION_MGR
public static final AndroidComponent LOCATION_MGR
-
TELEPHONY
public static final AndroidComponent TELEPHONY
-
SMS
public static final AndroidComponent SMS
-
SMS_GSM
public static final AndroidComponent SMS_GSM
-
LOCATION_LISTENER
public static final AndroidComponent LOCATION_LISTENER
-
GPS_LISTENER
public static final AndroidComponent GPS_LISTENER
-
GPS_NMEA_LISTENER
public static final AndroidComponent GPS_NMEA_LISTENER
-
UNKNOWN
public static final AndroidComponent UNKNOWN
-
-
Method Detail
-
values
public static AndroidComponent[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AndroidComponent c : AndroidComponent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AndroidComponent valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isAndroidComponent
public static boolean isAndroidComponent(TypeReference T, IClassHierarchy cha)
-
getPrettyName
public String getPrettyName()
A name usable for display-output. The name returned by this function may not necessarily as 'basename' for the class.
-
getName
public TypeName getName()
The TypeName associated to the component.
-
explicit
public static AndroidComponent explicit(TypeName type)
Returns the Element the type matches exactly the given type.- Returns:
- The Element if found or AndroidComponent.UNKNOWN if not
-
explicit
public static AndroidComponent explicit(TypeReference type)
Returns the Element the type matches exactly the given type.- Returns:
- The Element if found or AndroidComponent.UNKNOWN if not
-
explicit
public static AndroidComponent explicit(String type)
Returns the Element the type matches exactly the given type.- Returns:
- The Element if found or AndroidComponent.UNKNOWN if not
-
from
public static AndroidComponent from(IClass type, IClassHierarchy cha)
Return the Item that is a matching superclass. For example returns AndroidComponent.ACTIVITY for 'LauncherActivity'- Returns:
- the corresponding Enum-Element or AndroidComponent.UNKNOWN
-
from
public static AndroidComponent from(IMethod method, IClassHierarchy cha)
Returns the AndroidComponent the method is declared in.- Returns:
- the corresponding Enum-Element or AndroidComponent.UNKNOWN
-
-