Class FieldData
- All Implemented Interfaces:
Measurable, Printable
Field data for field members in a class of the Java Disassembler
-
Nested Class Summary
Nested classes/interfaces inherited from class MemberData
MemberData.AnnotationElementStateNested classes/interfaces inherited from class Indenter
Indenter.NotImplementedException -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected intFields inherited from class MemberData
access, attributes, data, DEFAULT_VALUE_PREFIX, environment, invisibleAnnotations, invisibleTypeAnnotations, isDeprecated, isSynthetic, memberType, owner, pool, signature, visibleAnnotations, visibleTypeAnnotationsFields 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 TypeMethodDescriptionintprivate StringgetConstantValue(String prefix) private Stringintintprotected booleanhandleAttributes(DataInputStream in, EAttribute attributeTag, int attributeLength) protected booleanhandleUnrecognizedAttributes(DataInputStream in, int attributeNameCpx, int attributeLength) protected voidjasmPrint(int index, int size) Prints the field data to the current output stream called from ClassData.voidread(DataInputStream in) Read and resolve the field data called from ClassData.voidsetMaxPrintSize(int size) protected voidtablePrint(int index, int size) Prints the field data to the current output stream called from ClassData.Methods inherited from class MemberData
calculateInlinedTitleShift, getAnnotationElementState, getAnnotationsCount, getConstantPool, getListOf, getPseudoFlagsAsString, init, printAnnotations, printAttributes, printSysInfo, printVar, readAttributes, setElementState, setOwner, setSignatureMethods inherited from class Indenter
decIndent, decIndent, enlargedIndent, enlargedIndent, formatOperandLine, getIndentSize, getIndentStep, getIndentString, getLabelPrefix, getOffset, getPrintAttributeCommentPadding, getPrintAttributeKeyPadding, getTitle, incIndent, incIndent, Indent, IndentPadLeft, IndentPadRight, initIndent, isTableOutput, 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, tablePrintMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Printable
isPrintable
-
Field Details
-
name_cpx
protected int name_cpx -
type_cpx
protected int type_cpx -
value_cpx
protected int value_cpx
-
-
Constructor Details
-
FieldData
-
-
Method Details
-
handleAttributes
protected boolean handleAttributes(DataInputStream in, EAttribute attributeTag, int attributeLength) throws IOException - Overrides:
handleAttributesin classMemberData<ClassData>- Throws:
IOException
-
handleUnrecognizedAttributes
protected boolean handleUnrecognizedAttributes(DataInputStream in, int attributeNameCpx, int attributeLength) throws IOException - Overrides:
handleUnrecognizedAttributesin classMemberData<ClassData>- Throws:
IOException
-
read
Read and resolve the field data called from ClassData. Precondition: NumFields has already been read from the stream.- Throws:
IOException
-
jasmPrint
Prints the field data to the current output stream called from ClassData.- Overrides:
jasmPrintin classIndenter- Throws:
IOException
-
getConstantValue
-
tablePrint
Prints the field data to the current output stream called from ClassData.- Overrides:
tablePrintin classIndenter- Throws:
IOException
-
getFieldDefinitionString
-
getCommentOffset
public int getCommentOffset()- Overrides:
getCommentOffsetin classIndenter- Returns:
- the common offset of comments for printing methods
-
getPrintSize
public int getPrintSize()- Specified by:
getPrintSizein interfaceMeasurable
-
setMaxPrintSize
public void setMaxPrintSize(int size) - Specified by:
setMaxPrintSizein interfaceMeasurable
-
getMaxPrintSize
public int getMaxPrintSize()- Specified by:
getMaxPrintSizein interfaceMeasurable
-