Uses of Class
pro.johndunlap.getopt.exception.ParseException
-
Packages that use ParseException Package Description pro.johndunlap.getopt pro.johndunlap.getopt.exception -
-
Uses of ParseException in pro.johndunlap.getopt
Methods in pro.johndunlap.getopt that throw ParseException Modifier and Type Method Description protected abstract <T> ParserParser. execute(ParseContext<T> context)protected ObjectParseContext. parse(String value, Class<?> fieldType, TypeConverter<?> typeConverter)static <T> TReflectionUtil. parse(Class<T> fieldType, String value)Parses a string value into an object of the given type.StringDefaultValueParser. read(String value)<T> TGetOpt. read(Class<T> classType, String[] args)Binds the given arguments to the given class type.PTypeConverter. read(String value)<T> ParseContext<T>GetOpt. readContext(Class<T> classType, String[] args)Same asGetOpt.read(Class, String[])except that it returns aParseContextinstead of the instance.voidParseContext. setNamedValue(String value)Sets the value of the current named property in the parse context to the given value.voidParseContext. setOrderedValue(String stringValue)Sets the value of the current ordered property in the parse context to the given string value.StringDefaultValueParser. write(String value)StringTypeConverter. write(P value)Constructors in pro.johndunlap.getopt that throw ParseException Constructor Description ParseContext(Class<T> classType, String[] args, Map<Class<?>,TypeConverter<?>> typeConverters)Create a new ParseContext for the given class type and string arguments. -
Uses of ParseException in pro.johndunlap.getopt.exception
Subclasses of ParseException in pro.johndunlap.getopt.exception Modifier and Type Class Description classDuplicateOptionExceptionThrown when a duplicate option is found.classInaccessibleFieldExceptionThrown when a field cannot be accessed.classMissingNoArgConstructorExceptionThrown when a class does not have a default constructor.classRethrownExceptionUsed to rethrow other exceptions as parse exceptions.classUnsupportedTypeConversionExceptionThrown when binding to a type is not supported.
-