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 ClassesNested classes/interfaces inherited from class Indenter
Indenter.NotImplementedException -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected Tprotected static final Stringprotected Environmentprotected ArrayList<AnnotationData> protected ArrayList<TypeAnnotationData> protected booleanprotected booleanprotected String(package private) MemberData<? extends MemberData<T>> protected ConstantPoolprotected SignatureDataprotected ArrayList<AnnotationData> protected ArrayList<TypeAnnotationData> Fields inherited from class Indenter
ARGUMENT_DELIMITER, bestEffort, BootstrapArgumentsBreakPositions, BootstrapMethodBreakPositions, CIRCULAR_COMMENT_OFFSET, COMMENT_PADDING, commentOffset, detailedOutput, dropCharacterRange, dropClasses, dropSignatures, dropSourceFile, extraDetailedOutput, hasSize, INDENT_CHAR, INDENT_OFFSET, INDENT_STEP, INDENT_STRING, INITIAL_COMMENT_OFFSET, INSTR_PREFIX_LENGTH, InvokeDynamicBreakPositions, LdwBreakPositions, LINE_SPLITTER, maxSize, maxSizeCalculated, NO_BSM_ARGUMENTS, NO_BSM_ARGUMENTS_REGEX, OPERAND_PLACEHOLDER_LENGTH, printable, printConstantPool, printCPIndex, printHEX, printLabelAsIdentifiers, printLineNumber, printLineTable, printLineTableLines, printLineTableNumbers, printLocalVariables, printLocalVariableTypes, printProgramCounter, printSourceLines, PROGRAM_COUNTER_PLACEHOLDER_LENGTH, REPLACEMENT_NO_BSM_ARGUMENTS, skipComments, STACKMAP_TYPE_PLACEHOLDER_LENGTH, sysInfo, TABLE_PADDING, tableFormat, tableToken, toolOutput, UNDEFINED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcalculateInlinedTitleShift(String Header) | 012: aad |iiSSSSSHeader....Gets a state of the annotation elementprotected intgetListOf(EAttribute attributeTag) protected Stringprotected booleanhandleAttributes(DataInputStream in, EAttribute attributeTag, int attributeLength) protected booleanhandleUnrecognizedAttributes(DataInputStream in, int attributeNameCpx, int attributeLength) voidprotected <T extends AnnotationData>
voidprintAnnotations(List<T>... annotationLists) Print member's (ClassData, MethodData, FieldData and RecordData) annotationsprotected voidprintAttributes(Container<? extends Indenter, CodeData>... tables) protected voidPrints system comments if the option -sysinfo is used.protected voidprintVar(StringBuilder prefix, String postfix, String eol, int name_cpx, int type_cpx, int value_cpx) Prints field or a record componentprotected voidSets the state of the annotation elementsetOwner(MemberData<? extends MemberData<T>> owner) setSignature(SignatureData signatureData) Methods inherited from class Indenter
decIndent, decIndent, enlargedIndent, enlargedIndent, formatOperandLine, getCommentOffset, getIndentSize, getIndentStep, getIndentString, getLabelPrefix, getOffset, getPrintAttributeCommentPadding, getPrintAttributeKeyPadding, getTitle, incIndent, incIndent, Indent, IndentPadLeft, IndentPadRight, initIndent, isTableOutput, jasmPrint, jasmPrint, nCopies, padLeft, PadLeft, padRight, PadRight, print, print, print, print, printIndent, printIndent, printIndent, printIndentLn, printIndentLn, printIndentLn, printIndentPadLeft, printIndentPadRight, println, println, println, println, printPadLeft, printPadRight, setCommentOffset, setHasSize, setOffset, setTheSame, tableFormatSupported, tablePrint, tablePrintMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Printable
isPrintable
-
Field Details
-
DEFAULT_VALUE_PREFIX
- See Also:
-
data
-
environment
-
pool
-
memberType
-
owner
MemberData<? extends MemberData<T extends MemberData>> owner -
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
-
setOwner
-
init
-
printSysInfo
protected void printSysInfo()Prints system comments if the option -sysinfo is used. -
setSignature
-
getConstantPool
-
handleAttributes
protected boolean handleAttributes(DataInputStream in, EAttribute attributeTag, int attributeLength) throws IOException - Throws:
IOException
-
handleUnrecognizedAttributes
protected boolean handleUnrecognizedAttributes(DataInputStream in, int attributeNameCpx, 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 int getAnnotationsCount() -
printAnnotations
protected <T extends AnnotationData> void printAnnotations(List<T>... annotationLists) throws IOException Print member's (ClassData, MethodData, FieldData and RecordData) annotations- Throws:
IOException- signals that an exception to some sort has occurred
-
printAttributes
protected void printAttributes(Container<? extends Indenter, CodeData>... tables) throws IOException - Throws:
IOException
-
printVar
protected void printVar(StringBuilder prefix, String postfix, String eol, 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 end of line (either ":" or ";")name_cpx- Field/Component name cpIndextype_cpx- Field/Component type cpIndexvalue_cpx- either cpIndex of an initial field's value or 0 if it's a component or the field doesn't have an initial value.
-
readAttributes
- Throws:
IOException
-
getListOf
-
calculateInlinedTitleShift
| 012: aad |iiSSSSSHeader.... ii - indent SSSS - shift that is returned.
-