- All Implemented Interfaces:
Serializable,Comparable<OptionMethodType>,Constable
All possible setters to be generated.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMethod to clear the current value(s) of the option.Getter on the builder base class.The "main" setter method on the builder base class.Setter specific to char array options.Only created if the option type itself has a builder.Only created if the option type is built by another prototype, or if there is a factory method to build the type from another prototype.Only created if the option type itself has a builder.Singular add method for builder consumer.Singular add method to add a value to a collection that is a value of aMap.Singular add method to add values to a collection that is a value of aMap.Getter on the prototype implementation class.Getter added to the prototype interface. -
Method Summary
Modifier and TypeMethodDescriptionstatic OptionMethodTypeReturns the enum constant of this class with the specified name.static OptionMethodType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PROTOTYPE_GETTER
Getter added to the prototype interface. This method may not be generated if the method is inherited from a public interface.All methods from blueprint are re-generated on prototype.
-
IMPL_GETTER
Getter on the prototype implementation class. This method always returns the declared type, as it implements a method either from the prototype or from an inherited public interface. -
BUILDER_GETTER
Getter on the builder base class. Returns the declared type except for required options without a default, where it returnsOptionalof the declared type. -
BUILDER_SETTER
-
BUILDER_SETTER_CHAR_ARRAY
Setter specific to char array options. There will always be theBUILDER_SETTERwithStringparameter, and under this type a setter with char array parameter. -
BUILDER_SETTER_DECLARED
-
BUILDER_ADD_COLLECTION
Only created forSet,Listoptions. Uses the declared type, but instead of replacing the values asBUILDER_SETTERdoes, this method adds the values to the collection. -
BUILDER_CLEAR
-
BUILDER_SINGULAR_ADD
Singular add/put method forList,Set, orMap. Must be explicitly annotated on an option, otherwise singular methods are not generated.- See Also:
-
BUILDER_SINGULAR_ADD_CONSUMER
Singular add method for builder consumer.- See Also:
-
BUILDER_SINGULAR_ADD_TO_MAP_VALUE
Singular add method to add a value to a collection that is a value of aMap.- See Also:
-
BUILDER_SINGULAR_ADD_TO_MAP_VALUES
Singular add method to add values to a collection that is a value of aMap.- See Also:
-
BUILDER_SETTER_CONSUMER
Only created if the option type itself has a builder. This method uses aConsumerof the builder type.- See Also:
-
BUILDER_SETTER_RUNTIME_TYPE_PROTOTYPE
Only created if the option type is built by another prototype, or if there is a factory method to build the type from another prototype. -
BUILDER_SETTER_SUPPLIER
Only created if the option type itself has a builder. This method uses aSupplierof the type, as our builders are alsosupplier, so you can pass an instance of the builder.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-