public class JavaLineIndentProvider extends JavaLikeLangLineIndentProvider
JavaLikeLangLineIndentProvider.IndentCalculatorFactory, JavaLikeLangLineIndentProvider.JavaLikeElementDO_NOT_ADJUST| Constructor and Description |
|---|
JavaLineIndentProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected Indent |
getIndentInBlock(Project project,
Language language,
SemanticEditorPosition blockStartPosition) |
protected boolean |
isInArray(Editor editor,
int offset)
Checks that the current offset is inside array.
|
protected boolean |
isIndentProvider(SemanticEditorPosition position,
boolean ignoreLabels)
Checking the document context in position as indent-provider.
|
protected boolean |
isInsideForLikeConstruction(SemanticEditorPosition position) |
boolean |
isSuitableForLanguage(Language language) |
protected SemanticEditorPosition.SyntaxElement |
mapType(IElementType tokenType) |
dropIndentAfterReturnLike, getBlockStatementStartOffset, getDeepBlockStatementStartOffset, getDefaultIndentFromType, getIndent, getIndentInBrackets, getIndentTypeInBrackets, getIteratorAtPosition, getLineIndent, getPosition, isColonAfterLabelOrCase, isStartOfStatementWithOptionalBlock, isSuitableForprotected SemanticEditorPosition.SyntaxElement mapType(IElementType tokenType)
mapType in class JavaLikeLangLineIndentProviderpublic boolean isSuitableForLanguage(Language language)
isSuitableForLanguage in class JavaLikeLangLineIndentProviderprotected Indent getIndentInBlock(Project project, Language language, SemanticEditorPosition blockStartPosition)
getIndentInBlock in class JavaLikeLangLineIndentProviderprotected boolean isInsideForLikeConstruction(SemanticEditorPosition position)
isInsideForLikeConstruction in class JavaLikeLangLineIndentProviderprotected boolean isInArray(Editor editor, int offset)
JavaLikeLangLineIndentProviderisInArray in class JavaLikeLangLineIndentProvidereditor - The editor.offset - The current offset in the editor.true if the position is inside array.protected boolean isIndentProvider(SemanticEditorPosition position, boolean ignoreLabels)
JavaLikeLangLineIndentProviderisIndentProvider in class JavaLikeLangLineIndentProviderposition - position is the documentignoreLabels - true, if labels cannot be used as indent-providers in the context.true, if statement is indent-provider (by default)