Package proguard.io
Class ClassPathEntry
java.lang.Object
proguard.io.ClassPathEntry
This class represents an entry from a class path: an apk, a jar, an aar, a war, a zip, an ear, or
a directory. It has a name, and a flag to indicate whether the entry is an input entry or an
output entry.
It also has an optional feature name that can serve as a tag to indicate the group to which the entry belongs, e.g. a given Android dynamic feature.
It also has optional filters for the names of the contained resource/classes, apks, jars, aars, wars, ears, and zips.
-
Constructor Summary
ConstructorsConstructorDescriptionClassPathEntry(File file, boolean isOutput) Creates a new ClassPathEntry with the given file and output flag.ClassPathEntry(File file, boolean isOutput, String featureName) Creates a new ClassPathEntry with the given file, output flag, and optional feature name. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name filter that is applied to aab files in this entry, if any.Returns the name filter that is applied to aar files in this entry, if any.Returns the name filter that is applied to apk files in this entry, if any.Returns the name filter that is applied to ear files in this entry, if any.Returns the feature name.getFile()Returns the file.Returns the name filter that is applied to bottom-level files in this entry.Returns the name filter that is applied to jar files in this entry, if any.Returns the name filter that is applied to jmod files in this entry, if any.getName()Returns the path name of the entry.Returns the name filter that is applied to war files in this entry, if any.Returns the name filter that is applied to zip files in this entry, if any.booleanisAab()Returns whether this data entry is an aab file.booleanisAar()Returns whether this data entry is an aar file.booleanisApk()Returns whether this data entry is an apk file.booleanisDex()Returns whether this data entry is a dex file.booleanisEar()Returns whether this data entry is a ear file.booleanReturns whether this data entry has any kind of filter.booleanisJar()Returns whether this data entry is a jar file.booleanisJmod()Returns whether this data entry is a jmod file.booleanisOutput()Returns whether this data entry is an output entry.booleanisWar()Returns whether this data entry is a war file.booleanisZip()Returns whether this data entry is a zip file.voidsetAabFilter(List<String> filter) Sets the name filter that is applied to aab files in this entry, if any.voidsetAarFilter(List<String> filter) Sets the name filter that is applied to aar files in this entry, if any.voidsetApkFilter(List<String> filter) Sets the name filter that is applied to apk files in this entry, if any.voidsetEarFilter(List<String> filter) Sets the name filter that is applied to ear files in this entry, if any.voidsetFeatureName(String featureName) Sets the feature name.voidSets the file.voidSets the name filter that is applied to bottom-level files in this entry.voidsetJarFilter(List<String> filter) Sets the name filter that is applied to jar files in this entry, if any.voidsetJmodFilter(List<String> filter) Sets the name filter that is applied to jmod files in this entry, if any.voidsetOutput(boolean output) Specifies whether this data entry is an output entry.voidsetWarFilter(List<String> filter) Sets the name filter that is applied to war files in this entry, if any.voidsetZipFilter(List<String> filter) Sets the name filter that is applied to zip files in this entry, if any.toString()
-
Constructor Details
-
ClassPathEntry
Creates a new ClassPathEntry with the given file and output flag. -
ClassPathEntry
Creates a new ClassPathEntry with the given file, output flag, and optional feature name.
-
-
Method Details
-
getName
Returns the path name of the entry. -
getFile
Returns the file. -
setFile
Sets the file. -
isOutput
public boolean isOutput()Returns whether this data entry is an output entry. -
setOutput
public void setOutput(boolean output) Specifies whether this data entry is an output entry. -
getFeatureName
Returns the feature name. -
setFeatureName
Sets the feature name. -
isDex
public boolean isDex()Returns whether this data entry is a dex file. -
isApk
public boolean isApk()Returns whether this data entry is an apk file. -
isAab
public boolean isAab()Returns whether this data entry is an aab file. -
isJar
public boolean isJar()Returns whether this data entry is a jar file. -
isAar
public boolean isAar()Returns whether this data entry is an aar file. -
isWar
public boolean isWar()Returns whether this data entry is a war file. -
isEar
public boolean isEar()Returns whether this data entry is a ear file. -
isJmod
public boolean isJmod()Returns whether this data entry is a jmod file. -
isZip
public boolean isZip()Returns whether this data entry is a zip file. -
isFiltered
public boolean isFiltered()Returns whether this data entry has any kind of filter. -
getFilter
Returns the name filter that is applied to bottom-level files in this entry. -
setFilter
Sets the name filter that is applied to bottom-level files in this entry. -
getApkFilter
Returns the name filter that is applied to apk files in this entry, if any. -
setApkFilter
Sets the name filter that is applied to apk files in this entry, if any. -
getAabFilter
Returns the name filter that is applied to aab files in this entry, if any. -
setAabFilter
Sets the name filter that is applied to aab files in this entry, if any. -
getJarFilter
Returns the name filter that is applied to jar files in this entry, if any. -
setJarFilter
Sets the name filter that is applied to jar files in this entry, if any. -
getAarFilter
Returns the name filter that is applied to aar files in this entry, if any. -
setAarFilter
Sets the name filter that is applied to aar files in this entry, if any. -
getWarFilter
Returns the name filter that is applied to war files in this entry, if any. -
setWarFilter
Sets the name filter that is applied to war files in this entry, if any. -
getEarFilter
Returns the name filter that is applied to ear files in this entry, if any. -
setEarFilter
Sets the name filter that is applied to ear files in this entry, if any. -
getJmodFilter
Returns the name filter that is applied to jmod files in this entry, if any. -
setJmodFilter
Sets the name filter that is applied to jmod files in this entry, if any. -
getZipFilter
Returns the name filter that is applied to zip files in this entry, if any. -
setZipFilter
Sets the name filter that is applied to zip files in this entry, if any. -
toString
-