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 Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic AndroidComponentReturns the Element the type matches exactly the given type.static AndroidComponentexplicit(TypeReference type) Returns the Element the type matches exactly the given type.static AndroidComponentReturns the Element the type matches exactly the given type.static AndroidComponentfrom(IClass type, IClassHierarchy cha) Return the Item that is a matching superclass.static AndroidComponentfrom(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 booleanstatic AndroidComponentReturns 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
-