public class IndentationConfiguration
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
additional |
private int |
step |
private int |
tabEmu |
| Constructor and Description |
|---|
IndentationConfiguration(int step)
Creates an indentation configuration object without tab emulation.
|
IndentationConfiguration(int step,
int tabEmu)
Creates an indentation configuration object.
|
IndentationConfiguration(int step,
int tabEmu,
int additional)
Creates an indentation configuration object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAdditional()
The number of additional whitespaces to be considered after indentation (extra
indentation, language dependent).
|
int |
getIndentationStep()
Returns the number of whitespaces used for one indentation step.
|
int |
getTabEmulation()
Returns the number of whitespaces used to emulate a tabulator character.
|
boolean |
isIndentationEnabled()
Returns whether indentation is enabled.
|
boolean |
isTabEmulationEnabled()
Returns whether tab emulation is enabled.
|
public IndentationConfiguration(int step)
step - the number of whitespaces per indentation step (positive integer, 0 or negative if
indentation shall be disabled)public IndentationConfiguration(int step,
int tabEmu)
step - the number of whitespaces per indentation step (positive integer, 0 or negative if
indentation shall be disabled)tabEmu - the number of whitespaces per tab (0 or negative if disabled)public IndentationConfiguration(int step,
int tabEmu,
int additional)
step - the number of whitespaces per indentation step (positive integer, 0 or negative if
indentation shall be disabled)tabEmu - the number of whitespaces per tab (0 or negative if disabled)additional - additional whitespaces to be removed after indentation for extra formatting
(language-dependent interpretation, non-negative integer)public int getIndentationStep()
public boolean isIndentationEnabled()
true if indentation is enabled, false elsepublic int getTabEmulation()
public boolean isTabEmulationEnabled()
true if tab emulation is enabled, false elsepublic int getAdditional()
Copyright © 2009 - 2018 SSE. All Rights Reserved.