Class ARSCFileParser.ResType
java.lang.Object
soot.jimple.infoflow.android.resources.ARSCFileParser.ResType
- Enclosing class:
- ARSCFileParser
A resource type in an Android resource file. All resources are associated
with a type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the names of all resources defined for this resource typeGets a list of all resources in this type regardless of the configuration.getAllResources(int resourceID) Gets all resource of the current type that have the given idGets the configuration object for the given settingsgetFirstResource(int resourceID) Gets the first resource of the current type with the given IDgetFirstResource(String resourceName) Gets the first resource of the current type that has the given namegetResourceByName(String resourceName) Gets the first resource with the given name or null if no such resource existsinthashCode()toString()
-
Constructor Details
-
ResType
public ResType()
-
-
Method Details
-
getTypeName
-
getConfiguration
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
nullif no such configuration object exists
-
getConfigurations
-
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
Gets the names of all resources defined for this resource type- Returns:
- The names of all resources in the current type
-
getAllResources
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
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
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
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
-
hashCode
public int hashCode() -
equals
-