public abstract class TailType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static TailType |
CASE_COLON |
static TailType |
COND_EXPR_COLON |
static TailType |
DOT |
static TailType |
HUMBLE_SPACE_BEFORE_WORD
insert a space unless there's one at the caret position already, followed by a word
|
static TailType |
INSERT_SPACE
always insert a space
|
static TailType |
LPARENTH |
static TailType |
NONE |
static TailType |
SEMICOLON |
static TailType |
SPACE
insert a space, overtype if already present
|
static TailType |
UNKNOWN |
Constructor and Description |
---|
TailType() |
Modifier and Type | Method and Description |
---|---|
static TailType |
createSimpleTailType(char c) |
protected static FileType |
getFileType(Editor editor) |
static int |
insertChar(Editor editor,
int tailOffset,
char c) |
static int |
insertChar(Editor editor,
int tailOffset,
char c,
boolean overwrite) |
boolean |
isApplicable(InsertionContext context) |
protected static int |
moveCaret(Editor editor,
int tailOffset,
int delta) |
abstract int |
processTail(Editor editor,
int tailOffset) |
public static final TailType UNKNOWN
public static final TailType NONE
public static final TailType SEMICOLON
public static final TailType SPACE
public static final TailType INSERT_SPACE
public static final TailType HUMBLE_SPACE_BEFORE_WORD
public static final TailType DOT
public static final TailType CASE_COLON
public static final TailType COND_EXPR_COLON
public static final TailType LPARENTH
public static int insertChar(Editor editor, int tailOffset, char c)
public static int insertChar(Editor editor, int tailOffset, char c, boolean overwrite)
protected static int moveCaret(Editor editor, int tailOffset, int delta)
public abstract int processTail(Editor editor, int tailOffset)
public static TailType createSimpleTailType(char c)
public boolean isApplicable(InsertionContext context)