public static final members in order to support serialization.
| Modifier and Type | Class and Description |
|---|---|
| public static class | Option.
A builder for an immutable option set. |
| pack-priv static interface |
| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private final String | |
| private static final Option. | |
| private static final Map | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static <T, E extends Enum | |
| public abstract T | |
| public final T | |
| public static Option | Returns: the optionthe option string name, ClassLoader the class loader classLoader)Get an option from a string name, using the given classloader. |
| pack-priv static <T> Option. | |
| pack-priv static <T, E extends Enum | |
| public String | |
| pack-priv static <T> Option. | |
| public abstract T | Returns: the parsed valuethe string string, ClassLoader the class loader to use to parse the value classLoader)Parse a string value for this option. |
| protected final Object | |
| public static <T> Option | |
| public static Option. | |
| public static <T> Option | |
| public String | Returns: the string representationOverrides java. Get a human-readable string representation of this object. |
| public static < the type of the class object given T> Option | |
| public static < the type of the sequence element class object given T> Option | Returns: the option instancethe declaring class of the option declClass, final String the (field) name of this option name, final Class<T> the class object for the type of the sequence element class object given elementDeclType)Create an option with a sequence-of-types type. |
| declClass | back to summary |
|---|---|
| private final Class<?> declClass | |
| name | back to summary |
|---|---|
| private final String name | |
| noParser | back to summary |
|---|---|
| private static final Option. | |
| parsers | back to summary |
|---|---|
| private static final Map<Class<?>, Option. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| Option | back to summary |
|---|---|
| pack-priv Option(final Class<?> declClass, final String name) | |
| asEnum | back to summary |
|---|---|
private static <T, E extends Enum
| |
| cast | back to summary |
|---|---|
| public abstract T cast(Object o) throws ClassCastException Return the given object as the type of this option. If the cast could not be completed, an exception is thrown.
| |
| cast | back to summary |
|---|---|
| public final T cast(Object o, T defaultVal) throws ClassCastException Return the given object as the type of this option. If the cast could not be completed, an exception is thrown.
| |
| fromString | back to summary |
|---|---|
| public static Option Get an option from a string name, using the given classloader. If the classloader is
| |
| getClassParser | back to summary |
|---|---|
| pack-priv static <T> Option. | |
| getEnumParser | back to summary |
|---|---|
| pack-priv static <T, E extends Enum | |
| getName | back to summary |
|---|---|
| public String getName() Get the name of this option.
| |
| getParser | back to summary |
|---|---|
pack-priv static <T> Option.
| |
| parseValue | back to summary |
|---|---|
| public abstract T parseValue(String string, ClassLoader classLoader) throws IllegalArgumentException Parse a string value for this option.
| |
| readResolve | back to summary |
|---|---|
| protected final Object readResolve() throws ObjectStreamException Resolve this instance for serialization.
| |
| sequence | back to summary |
|---|---|
| public static <T> Option Create an option with a sequence type. The class object given must represent some immutable type, otherwise unexpected behavior may result. | |
| setBuilder | back to summary |
|---|---|
| public static Option. Create a builder for an immutable option set.
| |
| simple | back to summary |
|---|---|
| public static <T> Option Create an option with a simple type. The class object given must represent some immutable type, otherwise unexpected behavior may result. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Get a human-readable string representation of this object.
| |
| type | back to summary |
|---|---|
| public static <T> Option Create an option with a class type. The class object given may represent any type. | |
| typeSequence | back to summary |
|---|---|
| public static <T> Option Create an option with a sequence-of-types type. The class object given may represent any type. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Option. | |
| public Option. | |
| public Option. | |
| public Option. | |
| public Option. | Returns: this builderthe options to add options)Add all options from a collection to this set. |
| public Set |
| optionSet | back to summary |
|---|---|
| private List<Option<?>> optionSet | |
| SetBuilder | back to summary |
|---|---|
| pack-priv SetBuilder() | |
| add | back to summary |
|---|---|
| public Option. Add an option to this set.
| |
| add | back to summary |
|---|---|
| public Option. Add options to this set.
| |
| add | back to summary |
|---|---|
| public Option. Add options to this set.
| |
| add | back to summary |
|---|---|
| public Option. Add options to this set.
| |
| addAll | back to summary |
|---|---|
| public Option. Add all options from a collection to this set.
| |
| create | back to summary |
|---|---|
| public Set Create the immutable option set instance. | |
| Modifier and Type | Method and Description |
|---|---|
| public T |
| parseValue | back to summary |
|---|---|
| public T parseValue(String string, ClassLoader classLoader) throws IllegalArgumentException | |