Package proguard.classfile.util.renderer
Class ConstantViewModel
- java.lang.Object
-
- proguard.classfile.util.renderer.ProcessableViewModel
-
- proguard.classfile.util.renderer.ConstantViewModel
-
public class ConstantViewModel extends ProcessableViewModel
This utility class rendersConstant
objects into a more human-readable format. It can be used as a Java type renderer in Intellij-based IDE to support debugging.
-
-
Field Summary
-
Fields inherited from class proguard.classfile.util.renderer.ProcessableViewModel
processingFlags, processingInfo
-
-
Constructor Summary
Constructors Constructor Description ConstantViewModel(Clazz clazz, Constant constant)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
renderPreview()
A utility method that renders aConstant
entry into a preview string, e.g., String(18) -> "Foo".-
Methods inherited from class proguard.classfile.util.renderer.ProcessableViewModel
addExtraProcessingFlags, renderProcessingFlags
-
-
-
-
Method Detail
-
renderPreview
public java.lang.String renderPreview()
A utility method that renders aConstant
entry into a preview string, e.g., String(18) -> "Foo".- Returns:
- A string previewing the constant pool entry.
-
-