public enum Literal extends Enum<Literal> implements org.refcodes.mixin.NameAccessor
String
) representation useful when parsing or
evaluating texts.Enum Constant and Description |
---|
FALSE |
LOCALHOST |
NO |
NULL |
OFF |
ON |
TRUE |
YES |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
static Literal |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Literal[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Literal NULL
public static final Literal TRUE
public static final Literal YES
public static final Literal ON
public static final Literal FALSE
public static final Literal NO
public static final Literal OFF
public static final Literal LOCALHOST
public static Literal[] values()
for (Literal c : Literal.values()) System.out.println(c);
public static Literal valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
getName
in interface org.refcodes.mixin.NameAccessor
Copyright © 2016. All rights reserved.