Class ARSCFileParser.ResType

java.lang.Object
soot.jimple.infoflow.android.resources.ARSCFileParser.ResType
Enclosing class:
ARSCFileParser

public static class ARSCFileParser.ResType extends Object
A resource type in an Android resource file. All resources are associated with a type.
  • Constructor Details

    • ResType

      public ResType()
  • Method Details

    • getTypeName

      public String getTypeName()
    • getConfiguration

      public ARSCFileParser.ResConfig getConfiguration(ARSCFileParser.ResTable_Config config)
      Gets the configuration object for the given settings
      Parameters:
      config - The settings to look for
      Returns:
      The configuration object that is associated with the given settings, or null if no such configuration object exists
    • getConfigurations

      public List<ARSCFileParser.ResConfig> getConfigurations()
    • getAllResources

      public Collection<ARSCFileParser.AbstractResource> getAllResources()
      Gets a list of all resources in this type regardless of the configuration. Resources sharing the same ID will only be returned once, taking the value from the first applicable configuration.
      Returns:
      A list of all resources of this type.
    • getAllResourceNames

      public Collection<String> getAllResourceNames()
      Gets the names of all resources defined for this resource type
      Returns:
      The names of all resources in the current type
    • getAllResources

      public List<ARSCFileParser.AbstractResource> getAllResources(int resourceID)
      Gets all resource of the current type that have the given id
      Parameters:
      resourceID - The resource id to look for
      Returns:
      A list containing all resources with the given id
    • getResourceByName

      public ARSCFileParser.AbstractResource getResourceByName(String resourceName)
      Gets the first resource with the given name or null if no such resource exists
      Parameters:
      resourceName - The resource name to look for
      Returns:
      The first resource with the given name or null if no such resource exists
    • getFirstResource

      public ARSCFileParser.AbstractResource getFirstResource(String resourceName)
      Gets the first resource of the current type that has the given name
      Parameters:
      resourceName - The resource name to look for
      Returns:
      The resource with the given name if it exists, otherwise null
    • getFirstResource

      public ARSCFileParser.AbstractResource getFirstResource(int resourceID)
      Gets the first resource of the current type with the given ID
      Parameters:
      resourceID - The resource ID to look for
      Returns:
      The resource with the given ID if it exists, otherwise null
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object