Class SignatureData
- All Implemented Interfaces:
Printable
The Signature attribute data since class file 49.0
Signature_attribute { u2 attribute_name_index; u4 attribute_length; u2 signature_index; }
-
Nested Class Summary
Nested classes/interfaces inherited from class MemberData
MemberData.AnnotationElementStateNested classes/interfaces inherited from class Indenter
Indenter.NotImplementedException -
Field Summary
FieldsFields 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 TypeMethodDescriptionintgetJasmPrintInfo(Function<Integer, Boolean> checkRange) protected intCalculates offsets for Class's attributes:booleanprotected voidread(DataInputStream in, int attribute_length) setKeywordPadding(int keywordPadding) protected voidtoString()Methods inherited from class MemberData
calculateInlinedTitleShift, getAnnotationElementState, getAnnotationsCount, getConstantPool, getListOf, getPseudoFlagsAsString, handleAttributes, handleUnrecognizedAttributes, init, printAnnotations, printAttributes, printSysInfo, printVar, readAttributes, setElementState, setOwner, setSignatureMethods inherited from class Indenter
decIndent, decIndent, enlargedIndent, enlargedIndent, formatOperandLine, getCommentOffset, getIndentSize, getIndentStep, getIndentString, getLabelPrefix, getOffset, getPrintAttributeCommentPadding, 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, tablePrint
-
Field Details
-
cpIndex
private int cpIndex -
signatureType
-
keywordPadding
private int keywordPadding -
eol
-
-
Constructor Details
-
SignatureData
-
-
Method Details
-
getCPIndex
public int getCPIndex() -
isPrintable
public boolean isPrintable() -
read
public SignatureData read(DataInputStream in, int attribute_length) throws IOException, ClassFormatError - Throws:
IOExceptionClassFormatError
-
toString
-
getJavaSignature
-
getSignatureType
-
setKeywordPadding
-
getPrintAttributeKeyPadding
protected int getPrintAttributeKeyPadding()Description copied from class:IndenterCalculates offsets for Class's attributes:12AAAAAAAAAAAAAAAAAAAAAAAAAAACCCCCCCCCCCCCCCCC SourceFile #126; // TestMethods0.java 12 - Indent AAA.A - getPrintAttributeKeyPadding() CCC.C - getPrintAttributeCommentPadding()
- Overrides:
getPrintAttributeKeyPaddingin classIndenter- Returns:
-
disableNewLine
-
enableNewLine
-
tablePrint
protected void tablePrint()- Overrides:
tablePrintin classIndenter
-
jasmPrint
-
getJasmPrintInfo
- Parameters:
checkRange- function to check that index belongs CP- Returns:
- a string representation of the index and signature used to print the JASM-specific signature of ClassFile, field_info, method_info, or record_component_info. Alternatively, return an empty pair (new Pair("", "")) if extended (table-specific) printing is requested.
-