Package org.openjdk.asmtools.jdis
Class Indenter
java.lang.Object
org.openjdk.asmtools.jdis.Indenter
- Direct Known Subclasses:
BootstrapMethodData
,ClassArrayData
,CodeData
,InnerClassData
,MemberData
,Module
,NestHostData
,RecordData
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecreaseIndent
(int decrease) Decreases indentation length.Creates indent string based on current indent size.increaseIndent
(int increase) Increases indentation length.int
indent()
Returns current indentation length.setIndent
(int indentLength) Increases indentation length.
-
Field Details
-
indentLength
private int indentLength
-
-
Constructor Details
-
Indenter
public Indenter(int indentLength) -
Indenter
public Indenter()
-
-
Method Details
-
indent
public int indent()Returns current indentation length.- Returns:
- current indentation length.
-
setIndent
Increases indentation length.- Parameters:
indentLength
- new indent length- Throws:
IllegalArgumentException
- if indentLength is negative.
-
increaseIndent
Increases indentation length.- Parameters:
increase
- length to increase by.- Throws:
IllegalArgumentException
- if increase is negative.
-
decreaseIndent
Decreases indentation length.- Parameters:
decrease
- length to decrease by- Throws:
IllegalArgumentException
- if decrease is negative, or if decrease is greater thancurrent indentation length
.
-
getIndentString
Creates indent string based on current indent size.
-