gnu.prolog.vm
Enum Environment.DoubleQuotesValue
java.lang.Object
java.lang.Enum<Environment.DoubleQuotesValue>
gnu.prolog.vm.Environment.DoubleQuotesValue
- All Implemented Interfaces:
- HasAtom, Serializable, Comparable<Environment.DoubleQuotesValue>
- Enclosing class:
- Environment
public static enum Environment.DoubleQuotesValue
- extends Enum<Environment.DoubleQuotesValue>
- implements HasAtom
The possible values of the double_quotes flag
- Author:
- Daniel Thomas
DQ_CODES
public static final Environment.DoubleQuotesValue DQ_CODES
DQ_CHARS
public static final Environment.DoubleQuotesValue DQ_CHARS
DQ_ATOM
public static final Environment.DoubleQuotesValue DQ_ATOM
values
public static Environment.DoubleQuotesValue[] 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 (Environment.DoubleQuotesValue c : Environment.DoubleQuotesValue.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Environment.DoubleQuotesValue 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 name
NullPointerException
- if the argument is null
getAtom
public abstract AtomTerm getAtom()
- Description copied from interface:
HasAtom
- Get the
AtomTerm
for this class.
- Specified by:
getAtom
in interface HasAtom
- Returns:
- the AtomTerm for this value for the double_quotes flag.
fromAtom
public static Environment.DoubleQuotesValue fromAtom(AtomTerm value)
- Parameters:
value
- the AtomTerm to be converted into a DoubleQuotesValue
- Returns:
- the DoubleQuotesValue for the value or null if it does not match.
getDefault
public static Environment.DoubleQuotesValue getDefault()
- Returns:
- the default value for the
double_quotes
flag
.