Package proguard.util

Class SimpleFeatureNamedProcessable

java.lang.Object
proguard.util.SimpleProcessable
proguard.util.SimpleFeatureNamedProcessable
All Implemented Interfaces:
Serializable, FeatureNamed, Processable
Direct Known Subclasses:
LibraryClass, ProgramClass, ResourceFile

public class SimpleFeatureNamedProcessable extends SimpleProcessable implements FeatureNamed
A SimpleProcessable that additionally implements FeatureNamed.
See Also:
  • Field Details

    • featureName

      public String featureName
    • extraFeatureNames

      public Set<String> extraFeatureNames
  • Constructor Details

    • SimpleFeatureNamedProcessable

      public SimpleFeatureNamedProcessable()
      Creates an uninitialized SimpleFeatureNamedProcessable.
    • SimpleFeatureNamedProcessable

      public SimpleFeatureNamedProcessable(String featureName, int processingFlags, Object processingInfo)
      Creates an initialized SimpleFeatureNamedProcessable.
  • Method Details

    • getFeatureName

      public String getFeatureName()
      Description copied from interface: FeatureNamed
      Returns the feature name for this entity.
      Specified by:
      getFeatureName in interface FeatureNamed
    • setFeatureName

      public void setFeatureName(String featureName)
      Description copied from interface: FeatureNamed
      Sets the feature name for this entity.
      Specified by:
      setFeatureName in interface FeatureNamed
      Parameters:
      featureName - the feature Name to be set.
    • addExtraFeatureName

      public void addExtraFeatureName(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 interface FeatureNamed
      Parameters:
      featureName - the feature name to add.
    • getExtraFeatureNames

      public Set<String> getExtraFeatureNames()
      Description copied from interface: FeatureNamed
      Returns the set of feature names for this entity.
      Specified by:
      getExtraFeatureNames in interface FeatureNamed
    • isInFeature

      public boolean isInFeature(String featureName)
      Description copied from interface: FeatureNamed
      Returns whether the entity is part of the given feature.
      Specified by:
      isInFeature in interface FeatureNamed
      Parameters:
      featureName - the name of the feature to check.