Package proguard.classfile.util.renderer
Class ProcessableViewModel
- java.lang.Object
-
- proguard.classfile.util.renderer.ProcessableViewModel
-
- Direct Known Subclasses:
ClassViewModel
,ConstantViewModel
,MemberViewModel
public abstract class ProcessableViewModel extends java.lang.Object
A base ViewModel class for implementing classes of the Processable interface. This class takes care of rendering the processing flags.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>
processingFlags
protected java.lang.Object
processingInfo
-
Constructor Summary
Constructors Constructor Description ProcessableViewModel()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static <T extends ProcessingFlags>
voidaddExtraProcessingFlags(java.lang.Class<T> extraProcessingFlagsHolder)
A utility method that allows for adding additional processing flags that can be rendered as strings.static java.util.List<java.lang.String>
renderProcessingFlags(int processingFlags)
A utility method for rendering the processing flags of a processable instance.
-
-
-
Method Detail
-
renderProcessingFlags
public static java.util.List<java.lang.String> renderProcessingFlags(int processingFlags)
A utility method for rendering the processing flags of a processable instance.- Parameters:
processingFlags
- The processing flags of a processable to be rendered.- Returns:
- A list of strings containing rendered flags.
-
addExtraProcessingFlags
protected static <T extends ProcessingFlags> void addExtraProcessingFlags(java.lang.Class<T> extraProcessingFlagsHolder)
A utility method that allows for adding additional processing flags that can be rendered as strings.- Parameters:
extraProcessingFlagsHolder
- A sub class of ProcessingFlags that holds the additional flags.
-
-