p

mainargs

package mainargs

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. sealed trait ArgReader[T] extends AnyRef
  2. sealed trait ArgSig[T, B] extends AnyRef
  3. case class ClassMains[T](main: MainData[T, Any], companion: () => Any) extends Product with Serializable
  4. case class Flag(value: Boolean = false) extends Product with Serializable
  5. case class Leftover[T](value: T*) extends Product with Serializable
  6. class Macros extends AnyRef

    More or less a minimal version of Autowire's Server that lets you generate a set of "routes" from the methods defined in an object, and call them using passing in name/args/kwargs via Java reflection, without having to generate/compile code or use Scala reflection.

    More or less a minimal version of Autowire's Server that lets you generate a set of "routes" from the methods defined in an object, and call them using passing in name/args/kwargs via Java reflection, without having to generate/compile code or use Scala reflection. This saves us spinning up the Scala compiler and greatly reduces the startup time of cached scripts.

  7. case class MainData[T, B](name: String, argSigs0: Seq[ArgSig[_, B]], doc: Option[String], invokeRaw: (B, Seq[Any]) => T) extends Product with Serializable

    What is known about a single endpoint for our routes.

    What is known about a single endpoint for our routes. It has a name, argSigs for each argument, and a macro-generated invoke0 that performs all the necessary argument parsing and de-serialization.

    Realistically, you will probably spend most of your time calling Invoker.invoke instead, which provides a nicer API to call it that mimmicks the API of calling a Scala method.

  8. case class MethodMains[B](value: Seq[MainData[Any, B]], base: () => B) extends Product with Serializable
  9. sealed trait ParamResult[+T] extends AnyRef
  10. class ParserForClass[T] extends SubParser[T]
  11. class ParserForMethods[B] extends AnyRef
  12. sealed trait Result[+T] extends AnyRef

    Represents what comes out of an attempt to invoke an Main.

    Represents what comes out of an attempt to invoke an Main. Could succeed with a value, but could fail in many different ways.

  13. trait SubParser[T] extends AnyRef
  14. case class TokenGrouping[B](remaining: List[String], grouped: Map[Named[_, B], Seq[String]]) extends Product with Serializable
  15. class TokensReader[T] extends AnyRef
  16. class arg extends Annotation with ClassfileAnnotation
  17. class main extends Annotation with ClassfileAnnotation

Value Members

  1. object ArgReader
  2. object ArgSig
  3. object Invoker
  4. object MainData extends Serializable
  5. object ParamResult
  6. object ParserForClass
  7. object ParserForMethods
  8. object Renderer
  9. object Result
  10. object TokenGrouping extends Serializable
  11. object TokensReader
  12. object Util

Ungrouped