Package proguard.util
Class SimpleProcessable
- java.lang.Object
-
- proguard.util.SimpleProcessable
-
- All Implemented Interfaces:
java.io.Serializable,Processable
- Direct Known Subclasses:
Annotation,Attribute,BootstrapMethodInfo,Constant,ElementValue,ExceptionInfo,ExportsInfo,InnerClassesInfo,KotlinAnnotation,KotlinAnnotationArgument,KotlinConstructorMetadata,KotlinContractMetadata,KotlinEffectExpressionMetadata,KotlinEffectMetadata,KotlinEnumEntryMetadata,KotlinFunctionMetadata,KotlinMetadata,KotlinPropertyAccessorMetadata,KotlinPropertyMetadata,KotlinTypeAliasMetadata,KotlinTypeMetadata,KotlinTypeParameterMetadata,KotlinValueParameterMetadata,KotlinVersionRequirementMetadata,LibraryMember,LocalVariableInfo,LocalVariableTypeInfo,OpensInfo,ParameterInfo,ProgramMember,ProvidesInfo,RecordComponentInfo,RequiresInfo,SimpleFeatureNamedProcessable,StackMapFrame,VerificationType
public class SimpleProcessable extends java.lang.Object implements Processable
This class provides a straightforward implementation of the Processable interface.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description intprocessingFlagsjava.lang.ObjectprocessingInfo
-
Constructor Summary
Constructors Constructor Description SimpleProcessable()Creates an uninitialized SimpleProcessable.SimpleProcessable(int processingFlags, java.lang.Object processingInfo)Creates an initialized SimpleProcessable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProcessingFlags(int... flags)Adds all given flags to this processable.intgetProcessingFlags()Returns the processing flags.java.lang.ObjectgetProcessingInfo()Gets the processing information.booleanhasProcessingFlags(int... flags)Checks whether all the given flags are set on this processable.voidremoveProcessingFlags(int... flags)Removes all given flags from this processable.voidsetProcessingFlags(int processingFlags)Sets the processing flags.voidsetProcessingInfo(java.lang.Object processingInfo)Sets the processing information.
-
-
-
Method Detail
-
getProcessingFlags
public int getProcessingFlags()
Description copied from interface:ProcessableReturns the processing flags.- Specified by:
getProcessingFlagsin interfaceProcessable
-
setProcessingFlags
public void setProcessingFlags(int processingFlags)
Description copied from interface:ProcessableSets the processing flags.- Specified by:
setProcessingFlagsin interfaceProcessable
-
addProcessingFlags
public void addProcessingFlags(int... flags)
Adds all given flags to this processable.
-
removeProcessingFlags
public void removeProcessingFlags(int... flags)
Removes all given flags from this processable.
-
hasProcessingFlags
public boolean hasProcessingFlags(int... flags)
Checks whether all the given flags are set on this processable.
-
getProcessingInfo
public java.lang.Object getProcessingInfo()
Description copied from interface:ProcessableGets the processing information.- Specified by:
getProcessingInfoin interfaceProcessable
-
setProcessingInfo
public void setProcessingInfo(java.lang.Object processingInfo)
Description copied from interface:ProcessableSets the processing information.- Specified by:
setProcessingInfoin interfaceProcessable
-
-