Index
All Classes and Interfaces|All Packages|Serialized Form
A
- args() - Method in exception class dev.nipafx.args.ArgsParseException
- Args - Class in dev.nipafx.args
-
Parses command-line arguments to args records - call
parseor one of its overloads (depending on how many args types are involved). - Args() - Constructor for class dev.nipafx.args.Args
- ArgsDefinitionErrorCode - Enum Class in dev.nipafx.args
-
Encodes various definition errors.
- ArgsDefinitionException - Exception Class in dev.nipafx.args
-
Thrown when the types provided to
Args::parseare ill-defined. - ArgsMessage - Record Class in dev.nipafx.args
-
A warning or error that occurred while parsing command line arguments.
- ArgsMessage(ArgsParseErrorCode, String, Optional<Throwable>) - Constructor for record class dev.nipafx.args.ArgsMessage
-
Creates an instance of a
ArgsMessagerecord class. - ArgsParseErrorCode - Enum Class in dev.nipafx.args
-
Encodes various parsing errors.
- ArgsParseException - Exception Class in dev.nipafx.args
-
Thrown when parsing command line arguments fails.
C
- cause() - Method in record class dev.nipafx.args.ArgsMessage
-
Returns the value of the
causerecord component. - code() - Method in record class dev.nipafx.args.ArgsMessage
-
Returns the value of the
coderecord component. - CONSTRUCTOR_EXCEPTION - Enum constant in enum class dev.nipafx.args.ArgsParseErrorCode
D
- dev.nipafx.args - module dev.nipafx.args
-
A simple command-line argument parser for Java applications that relies on records and sealed interfaces.
- dev.nipafx.args - package dev.nipafx.args
-
Main package of Record Args - see module declaration and
Argsfor documentation. - DUPLICATE_ARGUMENT_DEFINITION - Enum constant in enum class dev.nipafx.args.ArgsDefinitionErrorCode
E
- equals(Object) - Method in record class dev.nipafx.args.ArgsMessage
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.nipafx.args.Parsed2
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.nipafx.args.Parsed3
-
Indicates whether some other object is "equal to" this one.
- errorCode() - Method in exception class dev.nipafx.args.ArgsDefinitionException
- errors() - Method in exception class dev.nipafx.args.ArgsParseException
F
- FAULTY_ACTION - Enum constant in enum class dev.nipafx.args.ArgsParseErrorCode
- FAULTY_INITIALIZER - Enum constant in enum class dev.nipafx.args.ArgsDefinitionErrorCode
- first() - Method in record class dev.nipafx.args.Parsed2
-
Returns the value of the
firstrecord component. - first() - Method in record class dev.nipafx.args.Parsed3
-
Returns the value of the
firstrecord component.
H
- hashCode() - Method in record class dev.nipafx.args.ArgsMessage
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.nipafx.args.Parsed2
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.nipafx.args.Parsed3
-
Returns a hash code value for this object.
I
- ILL_DEFINED_ARGS_TYPE - Enum constant in enum class dev.nipafx.args.ArgsDefinitionErrorCode
- ILLEGAL_ACCESS - Enum constant in enum class dev.nipafx.args.ArgsDefinitionErrorCode
M
- message() - Method in record class dev.nipafx.args.ArgsMessage
-
Returns the value of the
messagerecord component. - MISSING_ARGUMENT - Enum constant in enum class dev.nipafx.args.ArgsParseErrorCode
- MISSING_VALUE - Enum constant in enum class dev.nipafx.args.ArgsParseErrorCode
- MULTIPLE_ACTIONS - Enum constant in enum class dev.nipafx.args.ArgsDefinitionErrorCode
P
- parse(String[], Class<ARGS_TYPE_1>, Class<ARGS_TYPE_2>) - Static method in class dev.nipafx.args.Args
-
Parses the specified string array to create instances of the specified types.
- parse(String[], Class<ARGS_TYPE_1>, Class<ARGS_TYPE_2>, Class<ARGS_TYPE_3>) - Static method in class dev.nipafx.args.Args
-
Parses the specified string array to create instances of the specified types.
- parse(String[], Class<ARGS_TYPE>) - Static method in class dev.nipafx.args.Args
-
Parses the specified string array to create an instance of the specified type.
- Parsed2<ARGS_TYPE_1,
ARGS_TYPE_2> - Record Class in dev.nipafx.args -
Result of parsing arguments to two args records with
Args.parse(String[], Class, Class). - Parsed2(ARGS_TYPE_1, ARGS_TYPE_2) - Constructor for record class dev.nipafx.args.Parsed2
-
Creates an instance of a
Parsed2record class. - Parsed3<ARGS_TYPE_1,
ARGS_TYPE_2, - Record Class in dev.nipafx.argsARGS_TYPE_3> -
Result of parsing arguments to three args records with
Args.parse(String[], Class, Class, Class). - Parsed3(ARGS_TYPE_1, ARGS_TYPE_2, ARGS_TYPE_3) - Constructor for record class dev.nipafx.args.Parsed3
-
Creates an instance of a
Parsed3record class.
S
- second() - Method in record class dev.nipafx.args.Parsed2
-
Returns the value of the
secondrecord component. - second() - Method in record class dev.nipafx.args.Parsed3
-
Returns the value of the
secondrecord component.
T
- third() - Method in record class dev.nipafx.args.Parsed3
-
Returns the value of the
thirdrecord component. - toString() - Method in record class dev.nipafx.args.ArgsMessage
-
Returns a string representation of this record class.
- toString() - Method in record class dev.nipafx.args.Parsed2
-
Returns a string representation of this record class.
- toString() - Method in record class dev.nipafx.args.Parsed3
-
Returns a string representation of this record class.
- types() - Method in exception class dev.nipafx.args.ArgsParseException
U
- UNEXPECTED_VALUE - Enum constant in enum class dev.nipafx.args.ArgsParseErrorCode
- UNKNOWN_ARGUMENT - Enum constant in enum class dev.nipafx.args.ArgsParseErrorCode
- UNPARSEABLE_VALUE - Enum constant in enum class dev.nipafx.args.ArgsParseErrorCode
- UNSUPPORTED_ARGUMENT_TYPE - Enum constant in enum class dev.nipafx.args.ArgsDefinitionErrorCode
V
- valueOf(String) - Static method in enum class dev.nipafx.args.ArgsDefinitionErrorCode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.nipafx.args.ArgsParseErrorCode
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class dev.nipafx.args.ArgsDefinitionErrorCode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dev.nipafx.args.ArgsParseErrorCode
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Serialized Form