|
org.netbeans.modules.lexer/2 1.39.1 1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<EmbeddingPresence>
org.netbeans.spi.lexer.EmbeddingPresence
public enum EmbeddingPresence
Defines whether a default embedding can be present for the given token id or not.
It allows to speed up TokenSequence.embedded()
calls considerably in most cases.
This only affects the default embedding creation. Custom embedding creation
can always be performed by TokenSequene.createEmbedding()
.
Enum Constant Summary | |
---|---|
ALWAYS_QUERY
Default embedding creation will always be attempted for each token since the embedding presence varies (it may depend on token's text or other token properties). |
|
CACHED_FIRST_QUERY
Creation of the default embedding for the particular TokenId
will be attempted for the first time but if there will be no embedding
created then there will be no other attempts for embedding creation
for any tokens with the same token id. |
|
NONE
There is no default embedding for the given TokenId
and its creation will not be attempted. |
Method Summary | |
---|---|
static EmbeddingPresence |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static EmbeddingPresence[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final EmbeddingPresence CACHED_FIRST_QUERY
TokenId
will be attempted for the first time but if there will be no embedding
created then there will be no other attempts for embedding creation
for any tokens with the same token id.
LanguageHierarchy.embeddingPresence(org.netbeans.api.lexer.TokenId)
.
public static final EmbeddingPresence ALWAYS_QUERY
public static final EmbeddingPresence NONE
TokenId
and its creation will not be attempted.
Method Detail |
---|
public static EmbeddingPresence[] values()
for (EmbeddingPresence c : EmbeddingPresence.values()) System.out.println(c);
public static EmbeddingPresence valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
org.netbeans.modules.lexer/2 1.39.1 1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |