Enum Class AndroidComponent

java.lang.Object
java.lang.Enum<AndroidComponent>
com.ibm.wala.dalvik.util.AndroidComponent
All Implemented Interfaces:
Serializable, Comparable<AndroidComponent>, Constable

public enum AndroidComponent extends Enum<AndroidComponent>
Android Components like Activity, Service, ...
Since:
2013-10-16
Author:
Tobias Blaschke <code@tobiasblaschke.de>
  • Enum Constant Details

  • Method Details

    • values

      public static AndroidComponent[] 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

      public static AndroidComponent valueOf(String name)
      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 name
      NullPointerException - 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