public static enum SymbolReference.ContextOption extends java.lang.Enum<SymbolReference.ContextOption> implements SymbolReference.Option
These context options are used to define the context in which one symbol refers to another. For example, if a reference is only needed when the symbol is defined and not needed when the symbol is used, then code generators can automatically add the necessary imports for each circumstance.
Enum Constant and Description |
---|
DECLARE
Indicates that the referenced symbol is needed when declaring the symbol.
|
USE
Indicates that the referenced symbol is needed when importing/using the symbol.
|
Modifier and Type | Method and Description |
---|---|
static SymbolReference.ContextOption |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SymbolReference.ContextOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SymbolReference.ContextOption DECLARE
public static final SymbolReference.ContextOption USE
public static SymbolReference.ContextOption[] values()
for (SymbolReference.ContextOption c : SymbolReference.ContextOption.values()) System.out.println(c);
public static SymbolReference.ContextOption 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 null