public class IndentHelperImpl extends IndentHelper
Modifier and Type | Field and Description |
---|---|
static int |
INDENT_FACTOR |
static int |
TOO_BIG_WALK_THRESHOLD |
Constructor and Description |
---|
IndentHelperImpl() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
fillIndent(CommonCodeStyleSettings.IndentOptions indentOptions,
int indent) |
static java.lang.String |
fillIndent(Project project,
FileType fileType,
int indent)
Deprecated.
|
static int |
getIndent(CommonCodeStyleSettings.IndentOptions indentOptions,
java.lang.String text,
boolean includeNonSpace) |
static int |
getIndent(Project project,
FileType fileType,
java.lang.String text,
boolean includeNonSpace)
Deprecated.
Do not use the implementation, see
IndentHelper |
int |
getIndent(PsiFile file,
ASTNode element) |
int |
getIndent(PsiFile file,
ASTNode element,
boolean includeNonSpace) |
static int |
getIndent(PsiFile file,
java.lang.String text,
boolean includeNonSpace) |
protected int |
getIndentInner(PsiFile file,
ASTNode element,
boolean includeNonSpace,
int recursionLevel) |
getIndent, getIndent, getInstance
public static final int INDENT_FACTOR
public static final int TOO_BIG_WALK_THRESHOLD
public int getIndent(PsiFile file, ASTNode element)
getIndent
in class IndentHelper
public int getIndent(PsiFile file, ASTNode element, boolean includeNonSpace)
getIndent
in class IndentHelper
protected int getIndentInner(PsiFile file, ASTNode element, boolean includeNonSpace, int recursionLevel)
@Deprecated public static java.lang.String fillIndent(Project project, FileType fileType, int indent)
fillIndent(CommonCodeStyleSettings.IndentOptions, int)
instead.public static java.lang.String fillIndent(CommonCodeStyleSettings.IndentOptions indentOptions, int indent)
@Deprecated public static int getIndent(Project project, FileType fileType, java.lang.String text, boolean includeNonSpace)
IndentHelper
public static int getIndent(PsiFile file, java.lang.String text, boolean includeNonSpace)
public static int getIndent(CommonCodeStyleSettings.IndentOptions indentOptions, java.lang.String text, boolean includeNonSpace)