public class JavaLineIndentProvider extends JavaLikeLangLineIndentProvider
JavaLikeLangLineIndentProvider.IndentCalculatorFactory, JavaLikeLangLineIndentProvider.JavaLikeElement
DO_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, isSuitableFor
protected SemanticEditorPosition.SyntaxElement mapType(IElementType tokenType)
mapType
in class JavaLikeLangLineIndentProvider
public boolean isSuitableForLanguage(Language language)
isSuitableForLanguage
in class JavaLikeLangLineIndentProvider
protected Indent getIndentInBlock(Project project, Language language, SemanticEditorPosition blockStartPosition)
getIndentInBlock
in class JavaLikeLangLineIndentProvider
protected boolean isInsideForLikeConstruction(SemanticEditorPosition position)
isInsideForLikeConstruction
in class JavaLikeLangLineIndentProvider
protected boolean isInArray(Editor editor, int offset)
JavaLikeLangLineIndentProvider
isInArray
in class JavaLikeLangLineIndentProvider
editor
- The editor.offset
- The current offset in the editor.true
if the position is inside array.protected boolean isIndentProvider(SemanticEditorPosition position, boolean ignoreLabels)
JavaLikeLangLineIndentProvider
isIndentProvider
in class JavaLikeLangLineIndentProvider
position
- position is the documentignoreLabels
- true
, if labels cannot be used as indent-providers in the context.true
, if statement is indent-provider (by default)