Enum Class AndroidComponent
- All Implemented Interfaces:
Serializable
,Comparable<AndroidComponent>
,Constable
Android Components like Activity, Service, ...
- Since:
- 2013-10-16
- Author:
- Tobias Blaschke <code@tobiasblaschke.de>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic AndroidComponent
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
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.getName()
The TypeName associated to the component.A name usable for display-output.static boolean
static AndroidComponent
Returns the enum constant of this class with the specified name.static AndroidComponent[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
APPLICATION
-
ACTIVITY
-
FRAGMENT
-
SERVICE
-
INTENT_SERVICE
-
ABSTRACT_INPUT_METHOD_SERVICE
-
ACCESSIBILITY_SERVICE
-
DREAM_SERVICE
-
HOST_APDU_SERVICE
-
MEDIA_ROUTE_PROVIDER_SERVICE
-
NOTIFICATION_LISTENER_SERVICE
-
OFF_HOST_APDU_SERVICE
-
PRINT_SERVICE
-
RECOGNITION_SERVICE
-
REMOTE_VIEWS_SERVICE
-
SETTING_INJECTOR_SERVICE
-
SPELL_CHECKER_SERVICE
-
TEXT_TO_SPEECH_SERVICE
-
VPN_SERVICE
-
WALLPAPER_SERVICE
-
INPUT_METHOD_SERVICE
-
PROVIDER
-
BROADCAST_RECEIVER
-
LOADER_CB
-
RESOLVER
-
CONTEXT
-
HTTP
-
BINDER
-
LOCATION_MGR
-
TELEPHONY
-
SMS
-
SMS_GSM
-
LOCATION_LISTENER
-
GPS_LISTENER
-
GPS_NMEA_LISTENER
-
UNKNOWN
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
isAndroidComponent
-
getPrettyName
A name usable for display-output.The name returned by this function may not necessarily as 'basename' for the class.
-
getName
The TypeName associated to the component. -
explicit
Returns the Element the type matches exactly the given type.- Returns:
- The Element if found or AndroidComponent.UNKNOWN if not
-
explicit
Returns the Element the type matches exactly the given type.- Returns:
- The Element if found or AndroidComponent.UNKNOWN if not
-
explicit
Returns the Element the type matches exactly the given type.- Returns:
- The Element if found or AndroidComponent.UNKNOWN if not
-
from
Return the Item that is a matching superclass.For example returns AndroidComponent.ACTIVITY for 'LauncherActivity'
- Returns:
- the corresponding Enum-Element or AndroidComponent.UNKNOWN
-
from
Returns the AndroidComponent the method is declared in.- Returns:
- the corresponding Enum-Element or AndroidComponent.UNKNOWN
-