public enum AndroidComponent extends Enum<AndroidComponent>
Modifier and Type | Method and Description |
---|---|
static AndroidComponent |
explicit(String type)
Returns the Element the type matches exactly the given type.
|
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 |
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.
|
public static final AndroidComponent APPLICATION
public static final AndroidComponent ACTIVITY
public static final AndroidComponent FRAGMENT
public static final AndroidComponent SERVICE
public static final AndroidComponent INTENT_SERVICE
public static final AndroidComponent ABSTRACT_INPUT_METHOD_SERVICE
public static final AndroidComponent ACCESSIBILITY_SERVICE
public static final AndroidComponent DREAM_SERVICE
public static final AndroidComponent HOST_APDU_SERVICE
public static final AndroidComponent MEDIA_ROUTE_PROVIDER_SERVICE
public static final AndroidComponent NOTIFICATION_LISTENER_SERVICE
public static final AndroidComponent OFF_HOST_APDU_SERVICE
public static final AndroidComponent PRINT_SERVICE
public static final AndroidComponent RECOGNITION_SERVICE
public static final AndroidComponent REMOTE_VIEWS_SERVICE
public static final AndroidComponent SETTING_INJECTOR_SERVICE
public static final AndroidComponent SPELL_CHECKER_SERVICE
public static final AndroidComponent TEXT_TO_SPEECH_SERVICE
public static final AndroidComponent VPN_SERVICE
public static final AndroidComponent WALLPAPER_SERVICE
public static final AndroidComponent INPUT_METHOD_SERVICE
public static final AndroidComponent PROVIDER
public static final AndroidComponent BROADCAST_RECEIVER
public static final AndroidComponent LOADER_CB
public static final AndroidComponent RESOLVER
public static final AndroidComponent CONTEXT
public static final AndroidComponent HTTP
public static final AndroidComponent BINDER
public static final AndroidComponent LOCATION_MGR
public static final AndroidComponent TELEPHONY
public static final AndroidComponent SMS
public static final AndroidComponent SMS_GSM
public static final AndroidComponent LOCATION_LISTENER
public static final AndroidComponent GPS_LISTENER
public static final AndroidComponent GPS_NMEA_LISTENER
public static final AndroidComponent UNKNOWN
public static AndroidComponent[] values()
for (AndroidComponent c : AndroidComponent.values()) System.out.println(c);
public static AndroidComponent valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static boolean isAndroidComponent(TypeReference T, IClassHierarchy cha)
public String getPrettyName()
public TypeName getName()
public static AndroidComponent explicit(TypeName type)
public static AndroidComponent explicit(TypeReference type)
public static AndroidComponent explicit(String type)
public static AndroidComponent from(IClass type, IClassHierarchy cha)
public static AndroidComponent from(IMethod method, IClassHierarchy cha)