Package proguard.classfile.util.renderer
Class FieldViewModel
- java.lang.Object
-
- proguard.classfile.util.renderer.ProcessableViewModel
-
- proguard.classfile.util.renderer.MemberViewModel
-
- proguard.classfile.util.renderer.FieldViewModel
-
public class FieldViewModel extends MemberViewModel
This utility class rendersField
objects into a more human-readable format. It can be used as a Java type renderer in Intellij-based IDE to support debugging.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class proguard.classfile.util.renderer.MemberViewModel
MemberViewModel.Pair<K,V>
-
-
Field Summary
-
Fields inherited from class proguard.classfile.util.renderer.MemberViewModel
model, processingInfo
-
Fields inherited from class proguard.classfile.util.renderer.ProcessableViewModel
processingFlags
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FieldViewModel
render(Clazz clazz, Field field)
A wrapper utility method that wraps aField
object in aFieldViewModel
java.lang.String
renderPreview()
A utility method that renders aField
entry into a preview string, e.g., "public static int bar"-
Methods inherited from class proguard.classfile.util.renderer.ProcessableViewModel
addExtraProcessingFlags, renderProcessingFlags
-
-
-
-
Method Detail
-
render
public static FieldViewModel render(Clazz clazz, Field field)
A wrapper utility method that wraps aField
object in aFieldViewModel
-
renderPreview
public java.lang.String renderPreview()
A utility method that renders aField
entry into a preview string, e.g., "public static int bar"- Returns:
- A string previewing the constant pool entry.
-
-