Package org.openjdk.asmtools.jdis
Class MemberData<T extends MemberData>
java.lang.Object
org.openjdk.asmtools.jdis.Indenter
org.openjdk.asmtools.jdis.MemberData<T>
- All Implemented Interfaces:
Printable
- Direct Known Subclasses:
AnnotationData,AnnotationElement,AnnotationElement.AnnotationValue,ClassArrayData,ClassData,CodeData,FieldData,InstructionAttr,MethodData,ModuleData,ParameterAnnotationData,RecordData,RecordData.Component,SignatureData,StackMapData
Base class for ClassData, MethodData, FieldData and RecordData(JEP 360)
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected Tprotected static final Stringprotected JdisEnvironmentprotected ArrayList<AnnotationData> protected ArrayList<TypeAnnotationData> protected booleanprotected booleanprotected Stringprotected ConstantPoolprotected SignatureDataprotected ArrayList<AnnotationData> protected ArrayList<TypeAnnotationData> Fields inherited from class org.openjdk.asmtools.jdis.Indenter
ARGUMENT_DELIMITER, COMMENT_OFFSET, COMMENT_PADDING, INDENT_OFFSET, INDENT_STEP, INDENT_STRING, INSTR_PREFIX_LENGTH, LINE_SPLITTER, OPERAND_PLACEHOLDER_LENGTH, printConstantPool, printCPIndex, printHEX, printLabelAsIdentifiers, printLineTable, printLocalVars, printProgramCounter, printSourceLines, PROGRAM_COUNTER_PLACEHOLDER_LENGTH, skipComments, STACKMAP_TYPE_PLACEHOLDER_LENGTH, toolOutput -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets a state of the annotation elementprotected final intprotected Stringprotected booleanhandleAttributes(DataInputStream in, EAttribute attributeTag, int attributeLength) voidprotected final voidprotected voidprintVar(StringBuilder prefix, String postfix, int name_cpx, int type_cpx, int value_cpx) Prints field or a record componentprotected voidSets the state of the annotation elementMethods inherited from class org.openjdk.asmtools.jdis.Indenter
decIndent, enlargedIndent, enlargedIndent, getCommentOffset, getIndentSize, getIndentStep, getIndentString, getOffset, incIndent, Indent, IndentPadLeft, IndentPadRight, initIndent, nCopies, padLeft, PadLeft, padRight, PadRight, print, print, print, printIndent, printIndent, printIndent, printIndentLn, printIndentLn, printIndentLn, printIndentPadRight, println, println, println, println, printPadLeft, printPadRight, resetIndent, setCommentOffset, setOffset, setTheSameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openjdk.asmtools.jdis.Printable
isPrintable
-
Field Details
-
DEFAULT_VALUE_PREFIX
- See Also:
-
data
-
environment
-
pool
-
memberType
-
access
protected int access -
isSynthetic
protected boolean isSynthetic -
isDeprecated
protected boolean isDeprecated -
annotationElementState
-
signature
-
visibleAnnotations
-
invisibleAnnotations
-
visibleTypeAnnotations
-
invisibleTypeAnnotations
-
attributes
-
-
Constructor Details
-
MemberData
-
MemberData
-
-
Method Details
-
init
-
getConstantPool
-
handleAttributes
protected boolean handleAttributes(DataInputStream in, EAttribute attributeTag, int attributeLength) throws IOException - Throws:
IOException
-
getPseudoFlagsAsString
-
getAnnotationElementState
Gets a state of the annotation element -
setElementState
Sets the state of the annotation element -
getAnnotationsCount
protected final int getAnnotationsCount() -
printAnnotations
- Throws:
IOException
-
printVar
protected void printVar(StringBuilder prefix, String postfix, int name_cpx, int type_cpx, int value_cpx) Prints field or a record component- Parameters:
prefix- the field prefix: "private static final Field" or the component prefix: "synthetic Component"postfix- String presentation of the initial value if exists ( = String "ABC" )name_cpx- Field/Component name cpIndextype_cpx- Field/Component type cpIndexvalue_cpx- either cpIndex of an initial value of a field or 0 if it's a component or the field doesn't have an initial value.
-
readAttributes
- Throws:
IOException
-