类 ClassViewModel
java.lang.Object
proguard.classfile.util.renderer.ProcessableViewModel
proguard.classfile.util.renderer.ClassViewModel
This utility class renders
Clazz objects into a more human-readable format. It can be
used as a Java type renderer in Intellij-based IDE to support debugging.-
字段概要
从类继承的字段 proguard.classfile.util.renderer.ProcessableViewModel
processingFlags, processingInfo -
方法概要
修饰符和类型方法说明static ClassViewModelRendersClazzobject into an abstract representation that hides the low-level Jvm class data structure.static <T extends ProcessingFlags>
ClassViewModelRendersClazzobject into an abstract representation that hides the low-level Jvm class data structure; additional processing flags declared in a subclass ofProcessingFlagswill also be rendered.static ConstantViewModel[]renderConstantPool(Clazz model) A utility method for rendering each constant pool entry into a higher-level representation. seeConstantViewModel.static FieldViewModel[]renderFields(Clazz model) A utility method for rendering eachFieldinto a higher-level representation. seeFieldViewModel.static ClassViewModel[]renderInterfaces(Clazz model) A utility method for recursively rendering interfaces of an implementingClazz.static MethodViewModel[]renderMethods(Clazz model) A utility method for rendering eachMethodinto a higher-level representation. seeMethodViewModel.static StringrenderPreview(Clazz model) A utility method that renders aClazzobject into a string containing class name, type, accessibility.static ClassViewModelrenderSuperClass(Clazz model) A utility method for recursively renderingClazzobjects in the hierarchy.从类继承的方法 proguard.classfile.util.renderer.ProcessableViewModel
addExtraProcessingFlags, renderProcessingFlags
-
方法详细资料
-
render
RendersClazzobject into an abstract representation that hides the low-level Jvm class data structure. The processing flags rendering are limited to those declared inProcessingFlags.- 参数:
clazz- TheClazzobject to be rendered.- 返回:
- A high-level representation of
Clazz(i.e.,ClassViewModelobject).
-
render
public static <T extends ProcessingFlags> ClassViewModel render(Clazz clazz, Class<T> processingFlagsHolder) RendersClazzobject into an abstract representation that hides the low-level Jvm class data structure; additional processing flags declared in a subclass ofProcessingFlagswill also be rendered.- 参数:
clazz- TheClazzobject to be rendered.processingFlagsHolder- A subclass ofProcessingFlagsthat holds additional processing flags.- 返回:
- A high-level representation of
Clazz(i.e.,ClassViewModelobject).
-
renderPreview
A utility method that renders aClazzobject into a string containing class name, type, accessibility. (e.g., "public static class Foo").- 参数:
model-Clazzobject to be rendered.- 返回:
- A string previewing the class signature.
-
renderSuperClass
A utility method for recursively renderingClazzobjects in the hierarchy. -
renderInterfaces
A utility method for recursively rendering interfaces of an implementingClazz.- 参数:
model- AClazzobject whose interfaces need to be rendered.- 返回:
- An array of high-level representation of the implemented interfaces.
-
renderConstantPool
A utility method for rendering each constant pool entry into a higher-level representation. seeConstantViewModel.- 参数:
model- AClazzobject whose constant pool needs to be rendered.- 返回:
- An array of high-level representation of the constant pool entries.
-
renderFields
A utility method for rendering eachFieldinto a higher-level representation. seeFieldViewModel.- 参数:
model- AClazzobject whose fields need to be rendered.- 返回:
- An array of high-level representation of the class' fields.
-
renderMethods
A utility method for rendering eachMethodinto a higher-level representation. seeMethodViewModel.- 参数:
model- AClazzobject whose methods need to be rendered.- 返回:
- An array of high-level representation of the class' methods.
-