Class Container<T extends Indenter, M extends MemberData<?>>
java.lang.Object
org.openjdk.asmtools.jdis.Indenter
org.openjdk.asmtools.jdis.Container<T,M>
- All Implemented Interfaces:
Iterable<T>, Measurable, Printable
- Direct Known Subclasses:
StackMapTable
public class Container<T extends Indenter, M extends MemberData<?>>
extends Indenter
implements Iterable<T>, Measurable
-
Nested Class Summary
Nested classes/interfaces inherited from class Indenter
Indenter.NotImplementedException -
Field Summary
FieldsFields 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 TypeMethodDescriptionvoidvoidget(int index) intCalculates max print size of elements in a collection if they are measurable In the case of s collection the print size is equal to max print sizeintCalculates max print size of elements in a collection if they are measurable In the case of s collection the print size is equal to max print sizeprotected final booleanbooleaniterator()voidprint()If a table format is supported and the tool option TABLE is set, prints an object as a table entry.setHasSize(boolean value) Set up measure-ability of cartagevoidsetMaxPrintSize(int maxSize) Sets max print size to all elements of the collectionsetPrintable(boolean value) Set up print-ability of cartageintsize()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, printIndent, printIndent, printIndent, printIndentLn, printIndentLn, printIndentLn, printIndentPadLeft, printIndentPadRight, println, println, println, println, printPadLeft, printPadRight, setCommentOffset, setOffset, setTheSame, tableFormatSupported, tablePrint, tablePrint
-
Field Details
-
elements
-
owner
-
-
Constructor Details
-
Container
-
-
Method Details
-
isCollectionMeasurable
protected final boolean isCollectionMeasurable() -
print
-
add
- Throws:
IOException
-
size
public int size() -
get
-
isPrintable
public boolean isPrintable()- Specified by:
isPrintablein interfacePrintable
-
getPrintSize
public int getPrintSize()Calculates max print size of elements in a collection if they are measurable In the case of s collection the print size is equal to max print size- Specified by:
getPrintSizein interfaceMeasurable- Returns:
- maxSize or 0
-
setMaxPrintSize
public void setMaxPrintSize(int maxSize) Sets max print size to all elements of the collection- Specified by:
setMaxPrintSizein interfaceMeasurable
-
getMaxPrintSize
public int getMaxPrintSize()Calculates max print size of elements in a collection if they are measurable In the case of s collection the print size is equal to max print size- Specified by:
getMaxPrintSizein interfaceMeasurable- Returns:
- maxSize or 0
-
setPrintable
-
setHasSize
Set up measure-ability of cartage- Overrides:
setHasSizein classIndenter- Parameters:
value- can be measured- Returns:
- the instance
-
iterator
-
forEach
-
spliterator
- Specified by:
spliteratorin interfaceIterable<T extends Indenter>
-