Package jamopp.options
Enum ParserOptions
- java.lang.Object
-
- java.lang.Enum<ParserOptions>
-
- jamopp.options.ParserOptions
-
- All Implemented Interfaces:
Serializable
,Comparable<ParserOptions>
public enum ParserOptions extends Enum<ParserOptions>
Options for the single file parser.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATE_LAYOUT_INFORMATION
If this option is true, a minimal layout information is stored for every model element during the parsing.PREFER_BINDING_CONVERSION
If the binding-based resolution is executed and the reference resolution encounters a reference for which a binding is available and a mapping to a physical file, this option controls if the file is loaded or the binding is converted.REGISTER_LOCAL
If this option is true, the mapping between logical and physical URIs in the JavaClasspath are only stored for the ResourceSet of a corresponding model element.RESOLVE_ALL_BINDINGS
If the binding-based resolution is executed by RESOLVE_BINDINGS and this option is true, references are transitively and recursively resolved with bindings.RESOLVE_BINDINGS
Controls the binding-based resolution.RESOLVE_BINDINGS_OF_INFERABLE_TYPES
If this option is true, the bindings of variables with var as type are used to resolve the type.RESOLVE_EVERYTHING
If this option is true, references without bindings are resolved during the binding-based resolution.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getValue()
boolean
isTrue()
void
setValue(Object v)
static ParserOptions
valueOf(String name)
Returns the enum constant of this type with the specified name.static ParserOptions[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RESOLVE_ALL_BINDINGS
public static final ParserOptions RESOLVE_ALL_BINDINGS
If the binding-based resolution is executed by RESOLVE_BINDINGS and this option is true, references are transitively and recursively resolved with bindings.
-
RESOLVE_BINDINGS
public static final ParserOptions RESOLVE_BINDINGS
Controls the binding-based resolution. If the option is true, bindings are used to resolve references directly after the parsing.
-
RESOLVE_BINDINGS_OF_INFERABLE_TYPES
public static final ParserOptions RESOLVE_BINDINGS_OF_INFERABLE_TYPES
If this option is true, the bindings of variables with var as type are used to resolve the type.
-
CREATE_LAYOUT_INFORMATION
public static final ParserOptions CREATE_LAYOUT_INFORMATION
If this option is true, a minimal layout information is stored for every model element during the parsing. If the option is not set or set to false, no layout information is created.
-
PREFER_BINDING_CONVERSION
public static final ParserOptions PREFER_BINDING_CONVERSION
If the binding-based resolution is executed and the reference resolution encounters a reference for which a binding is available and a mapping to a physical file, this option controls if the file is loaded or the binding is converted. If the option is true, bindings are converted without loading the file. Otherwise, the file is loaded.
-
RESOLVE_EVERYTHING
public static final ParserOptions RESOLVE_EVERYTHING
If this option is true, references without bindings are resolved during the binding-based resolution.
-
REGISTER_LOCAL
public static final ParserOptions REGISTER_LOCAL
If this option is true, the mapping between logical and physical URIs in the JavaClasspath are only stored for the ResourceSet of a corresponding model element.
-
-
Method Detail
-
values
public static ParserOptions[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ParserOptions c : ParserOptions.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ParserOptions valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
setValue
public void setValue(Object v)
-
getValue
public Object getValue()
-
isTrue
public boolean isTrue()
-
-