Package proguard.classfile.util.renderer
Class MethodViewModel
- java.lang.Object
-
- proguard.classfile.util.renderer.ProcessableViewModel
-
- proguard.classfile.util.renderer.MemberViewModel
-
- proguard.classfile.util.renderer.MethodViewModel
-
public class MethodViewModel extends MemberViewModel
This utility class rendersMethod
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 MethodViewModel
render(Clazz clazz, Method method)
A wrapper utility method that wraps aMethod
object in aMethodViewModel
java.lang.String
renderPreview()
A utility method that renders aMethod
entry into a preview string, e.g., private int bar(Foo obj)-
Methods inherited from class proguard.classfile.util.renderer.ProcessableViewModel
addExtraProcessingFlags, renderProcessingFlags
-
-
-
-
Method Detail
-
render
public static MethodViewModel render(Clazz clazz, Method method)
A wrapper utility method that wraps aMethod
object in aMethodViewModel
-
renderPreview
public java.lang.String renderPreview()
A utility method that renders aMethod
entry into a preview string, e.g., private int bar(Foo obj)- Returns:
- A string previewing the method signature.
-
-