Class Indentation
- java.lang.Object
-
- com.github.javaparser.printer.configuration.Indentation
-
public class Indentation extends java.lang.ObjectThis class defines the characteristics of an indentation: the type (space, tabs..) and the size (How many characters must be used to indent the code).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIndentation.IndentType
-
Field Summary
Fields Modifier and Type Field Description private static intDEFAULT_SIZEprivate java.lang.StringformattedIndentationprivate intsizeprivate Indentation.IndentTypetype
-
Constructor Summary
Constructors Constructor Description Indentation(Indentation.IndentType type)Indentation(Indentation.IndentType type, int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidformat()java.lang.StringgetIndent()intgetSize()Indentation.IndentTypegetType()IndentationsetSize(int size)IndentationsetType(Indentation.IndentType type)java.lang.StringtoString()
-
-
-
Field Detail
-
DEFAULT_SIZE
private static final int DEFAULT_SIZE
- See Also:
- Constant Field Values
-
type
private Indentation.IndentType type
-
size
private int size
-
formattedIndentation
private java.lang.String formattedIndentation
-
-
Constructor Detail
-
Indentation
public Indentation(Indentation.IndentType type, int size)
-
Indentation
public Indentation(Indentation.IndentType type)
-
-
Method Detail
-
setSize
public Indentation setSize(int size)
-
getSize
public int getSize()
-
setType
public Indentation setType(Indentation.IndentType type)
-
getType
public Indentation.IndentType getType()
-
getIndent
public java.lang.String getIndent()
-
format
private void format()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-