|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<SymbolAdoptionPolicy>
ua.gradsoft.termware.SymbolAdoptionPolicy
public enum SymbolAdoptionPolicy
SymbolAdoptionPolicy define constant wich determinate relations of symbols (i. e. names of terms) and global termware symbol table. This adoption policy is used for creation of terms.
| Enum Constant Summary | |
|---|---|
ADD
add symbol to table, if it yet not here. |
|
CHECK
check that symbol is here and throw unknown symbol exception. |
|
CONSTANT
symbol is one of preefined constants or digit or so-on. |
|
LAZY
not add symbol to table, but periodically check: are we have such symbol in our global index table. |
|
| Method Summary | |
|---|---|
int |
getIntCode()
|
static SymbolAdoptionPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SymbolAdoptionPolicy[] |
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 SymbolAdoptionPolicy ADD
public static final SymbolAdoptionPolicy CHECK
public static final SymbolAdoptionPolicy LAZY
public static final SymbolAdoptionPolicy CONSTANT
| Method Detail |
|---|
public static SymbolAdoptionPolicy[] values()
for (SymbolAdoptionPolicy c : SymbolAdoptionPolicy.values()) System.out.println(c);
public static SymbolAdoptionPolicy 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 nullpublic int getIntCode()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||