Packages

final class MappedParser[T, D0, U] extends Parser[U] with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MappedParser
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Parser
  7. ParserMethods
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MappedParser(underlying: Aux[T, D0], f: (T) ⇒ U)

Type Members

  1. type D = D0

    Intermediate result type.

    Intermediate result type.

    Used during parsing, while checking the arguments one after the other.

    If parsing succeeds, a T can be built from the D at the end of parsing.

    Definition Classes
    MappedParserParser

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def args: Seq[Arg]

    Arguments this parser accepts.

    Arguments this parser accepts.

    Used to generate help / usage messages.

    Definition Classes
    MappedParserParserMethods
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def canEqual(obj: Any): Boolean
    Definition Classes
    MappedParser → Equals
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. def complete(args: Seq[String], index: Int, completer: Completer[U], stopAtFirstUnrecognized: Boolean, ignoreUnrecognized: Boolean): List[CompletionItem]
    Definition Classes
    ParserMethods
  9. def defaultIgnoreUnrecognized: Boolean
    Definition Classes
    MappedParserParserMethods
  10. def defaultNameFormatter: Formatter[Name]
    Definition Classes
    MappedParserParserMethods
  11. def defaultStopAtFirstUnrecognized: Boolean
    Definition Classes
    MappedParserParserMethods
  12. final def detailedParse(args: Seq[String], stopAtFirstUnrecognized: Boolean, ignoreUnrecognized: Boolean): Either[Error, (U, RemainingArgs)]
    Definition Classes
    ParserMethods
  13. final def detailedParse(args: Seq[String], stopAtFirstUnrecognized: Boolean): Either[Error, (U, RemainingArgs)]
    Definition Classes
    ParserMethods
  14. final def detailedParse(args: Seq[String]): Either[Error, (U, RemainingArgs)]

    Keeps the remaining args before and after a possible -- separated

    Keeps the remaining args before and after a possible -- separated

    Definition Classes
    ParserMethods
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(obj: Any): Boolean
    Definition Classes
    MappedParser → Equals → AnyRef → Any
  17. val f: (T) ⇒ U
  18. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def get(d: D, nameFormatter: Formatter[Name]): Either[Error, U]

    Get the final result from the final intermediate value.

    Get the final result from the final intermediate value.

    Typically fails if some mandatory arguments were not specified, so are missing in d, preventing building a T out of it.

    returns

    in case of success, a T wrapped in scala.Right; else, an error message, wrapped in caseapp.core.Error and scala.Left

    Definition Classes
    MappedParserParserMethods
  20. final def get(d: D): Either[Error, U]

    Get the final result from the final intermediate value.

    Get the final result from the final intermediate value.

    Typically fails if some mandatory arguments were not specified, so are missing in d, preventing building a T out of it.

    returns

    in case of success, a T wrapped in scala.Right; else, an error message, wrapped in caseapp.core.Error and scala.Left

    Definition Classes
    ParserMethods
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    MappedParser → AnyRef → Any
  23. def ignoreUnrecognized: Aux[U, D]
    Definition Classes
    Parser
  24. def init: D

    Initial value used to accumulate parsed arguments.

    Initial value used to accumulate parsed arguments.

    Definition Classes
    MappedParserParserMethods
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. final def map[U](f: (U) ⇒ U): Aux[U, D]
    Definition Classes
    Parser
  27. def nameFormatter(f: Formatter[Name]): Aux[U, D]
    Definition Classes
    Parser
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def parse(args: Seq[String]): Either[Error, (U, Seq[String])]
    Definition Classes
    ParserMethods
  32. def productArity: Int
    Definition Classes
    MappedParser → Product
  33. def productElement(n: Int): Any
    Definition Classes
    MappedParser → Product
  34. def productIterator: Iterator[Any]
    Definition Classes
    Product
  35. def productPrefix: String
    Definition Classes
    MappedParser → Product
  36. final def scan(args: Seq[String], stopAtFirstUnrecognized: Boolean, ignoreUnrecognized: Boolean): (Either[(Error, Either[D, U]), (U, RemainingArgs)], List[Parser.Step])
    Definition Classes
    ParserMethods
  37. def step(args: List[String], index: Int, d: D, nameFormatter: Formatter[Name]): Either[(Error, Arg, List[String]), Option[(D, Arg, List[String])]]

    Process the next argument.

    Process the next argument.

    If some arguments were successfully processed (third case in return below), the returned remaining argument sequence must be shorter than the passed args.

    This method doesn't fully process args. It tries just to parse *one* argument (typically one option --foo and its value bar, so two elements from args - it can also be only one element in case of a flag), if possible. If you want to fully process a sequence of arguments, see parse or detailedParse.

    returns

    if no argument were parsed, Right(None); if an error occurred, an error message wrapped in caseapp.core.Error and scala.Left; else the next intermediate value and the remaining arguments wrapped in scala.Some and scala.Right.

    Definition Classes
    MappedParserParserMethods
  38. def step(args: List[String], index: Int, d: D): Either[(Error, Arg, List[String]), Option[(D, Arg, List[String])]]
    Definition Classes
    ParserMethods
  39. def stopAtFirstUnrecognized: Aux[U, D]
    Definition Classes
    Parser
  40. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  41. def toString(): String
    Definition Classes
    MappedParser → AnyRef → Any
  42. val underlying: Aux[T, D0]
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  46. def withDefaultOrigin(origin: String): Aux[U, D]
    Definition Classes
    MappedParserParser
  47. def withF(f: (T) ⇒ U): MappedParser[T, D0, U]
  48. final def withFullHelp: Parser[WithFullHelp[U]]
    Definition Classes
    Parser
  49. final def withHelp: Parser[WithHelp[U]]

    Creates a Parser accepting help / usage arguments, out of this one.

    Creates a Parser accepting help / usage arguments, out of this one.

    Definition Classes
    Parser
  50. def withUnderlying(underlying: Aux[T, D0]): MappedParser[T, D0, U]

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Parser[U]

Inherited from ParserMethods[U]

Inherited from AnyRef

Inherited from Any

Ungrouped