Package proguard.util
Class SimpleFeatureNamedProcessable
- java.lang.Object
-
- proguard.util.SimpleProcessable
-
- proguard.util.SimpleFeatureNamedProcessable
-
- All Implemented Interfaces:
java.io.Serializable
,FeatureNamed
,Processable
- Direct Known Subclasses:
LibraryClass
,ProgramClass
,ResourceFile
public class SimpleFeatureNamedProcessable extends SimpleProcessable implements FeatureNamed
ASimpleProcessable
that additionally implementsFeatureNamed
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Set<java.lang.String>
extraFeatureNames
java.lang.String
featureName
-
Fields inherited from class proguard.util.SimpleProcessable
processingFlags, processingInfo
-
-
Constructor Summary
Constructors Constructor Description SimpleFeatureNamedProcessable()
Creates an uninitialized SimpleFeatureNamedProcessable.SimpleFeatureNamedProcessable(java.lang.String featureName, int processingFlags, java.lang.Object processingInfo)
Creates an initialized SimpleFeatureNamedProcessable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExtraFeatureName(java.lang.String featureName)
Adds the feature name to the set of features this entity is part of.java.util.Set<java.lang.String>
getExtraFeatureNames()
Returns the set of feature names for this entity.java.lang.String
getFeatureName()
Returns the feature name for this entity.boolean
isInFeature(java.lang.String featureName)
Returns whether the entity is part of the given feature.void
setFeatureName(java.lang.String featureName)
Sets the feature name for this entity.-
Methods inherited from class proguard.util.SimpleProcessable
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
-
-
-
-
Constructor Detail
-
SimpleFeatureNamedProcessable
public SimpleFeatureNamedProcessable()
Creates an uninitialized SimpleFeatureNamedProcessable.
-
SimpleFeatureNamedProcessable
public SimpleFeatureNamedProcessable(java.lang.String featureName, int processingFlags, java.lang.Object processingInfo)
Creates an initialized SimpleFeatureNamedProcessable.
-
-
Method Detail
-
getFeatureName
public java.lang.String getFeatureName()
Description copied from interface:FeatureNamed
Returns the feature name for this entity.- Specified by:
getFeatureName
in interfaceFeatureNamed
-
setFeatureName
public void setFeatureName(java.lang.String featureName)
Description copied from interface:FeatureNamed
Sets the feature name for this entity.- Specified by:
setFeatureName
in interfaceFeatureNamed
- Parameters:
featureName
- the feature Name to be set.
-
addExtraFeatureName
public void addExtraFeatureName(java.lang.String featureName)
Description copied from interface:FeatureNamed
Adds the feature name to the set of features this entity is part of.- Specified by:
addExtraFeatureName
in interfaceFeatureNamed
- Parameters:
featureName
- the feature name to add.
-
getExtraFeatureNames
public java.util.Set<java.lang.String> getExtraFeatureNames()
Description copied from interface:FeatureNamed
Returns the set of feature names for this entity.- Specified by:
getExtraFeatureNames
in interfaceFeatureNamed
-
isInFeature
public boolean isInFeature(java.lang.String featureName)
Description copied from interface:FeatureNamed
Returns whether the entity is part of the given feature.- Specified by:
isInFeature
in interfaceFeatureNamed
- Parameters:
featureName
- the name of the feature to check.
-
-