Enum AndroidComponent

    • 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 name
        NullPointerException - if the argument is null
      • 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