public enum CaretPosition extends java.lang.Enum<CaretPosition> implements INativeEnum
Enum Constant and Description |
---|
BeginningOfLine
The caret is at the beginning of a line.
|
EndOfLine
The caret is at the end of a line.
|
Unknown
The caret is not at the beginning or the end of a line.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<CaretPosition> |
fromNativeValue(int nativeValue) |
java.lang.String |
getConstantName() |
int |
getNativeValue() |
static CaretPosition |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CaretPosition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CaretPosition Unknown
public static final CaretPosition EndOfLine
public static final CaretPosition BeginningOfLine
public static CaretPosition[] values()
for (CaretPosition c : CaretPosition.values()) System.out.println(c);
public static CaretPosition valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getNativeValue()
getNativeValue
in interface INativeEnum
public java.lang.String getConstantName()
getConstantName
in interface INativeEnum
public static java.util.Optional<CaretPosition> fromNativeValue(int nativeValue)