Class

dagr.sopt.cmdline

ClpReflectiveBuilder

Related Doc: package cmdline

Permalink

class ClpReflectiveBuilder[T] extends ReflectiveBuilder[T]

Extends ReflectiveBuilder to add support for the arguments annotated with the arg annotation and to use more specific logic to find the appropriate constructor to use to instantiate command line programs.

T

the type for the class

Linear Supertypes
ReflectiveBuilder[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ClpReflectiveBuilder
  2. ReflectiveBuilder
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ClpReflectiveBuilder(clazz: Class[T])

    Permalink

    clazz

    the class we wish to reflect upon

Type Members

  1. type ArgumentDescription = ClpArgument

    Permalink

    Override to use ClpArgument which also optionally holds the @arg annotation.

    Override to use ClpArgument which also optionally holds the @arg annotation.

    Definition Classes
    ClpReflectiveBuilder → ReflectiveBuilder

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ClpReflectiveBuilder[T] to any2stringadd[ClpReflectiveBuilder[T]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ClpReflectiveBuilder[T], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ClpReflectiveBuilder[T] to ArrowAssoc[ClpReflectiveBuilder[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. lazy val argumentLookup: ClpArgumentLookup

    Permalink

    Override to use the ClpArgumentLookup.

    Override to use the ClpArgumentLookup. Must be lazy since it is used in add() which is called from super's constructor.

    Definition Classes
    ClpReflectiveBuilder → ReflectiveBuilder
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def build(params: Seq[_]): T

    Permalink
    Definition Classes
    ReflectiveBuilder
  9. def build(): T

    Permalink
    Definition Classes
    ReflectiveBuilder
  10. def buildArgument(param: scala.reflect.api.JavaUniverse.Symbol, declaringClass: Class[_], index: Int, name: String, defaultValue: Option[Any], argumentType: Class[_], unitType: Class[_], constructableType: Class[_], typeName: String): ArgumentDescription

    Permalink

    Builds an instance of ClpArgument with the provided values and the @Arg annotation.

    Builds an instance of ClpArgument with the provided values and the @Arg annotation.

    Attributes
    protected
    Definition Classes
    ClpReflectiveBuilder → ReflectiveBuilder
  11. def buildDefault(): T

    Permalink
    Definition Classes
    ReflectiveBuilder
  12. val clazz: Class[T]

    Permalink

    the class we wish to reflect upon

    the class we wish to reflect upon

    Definition Classes
    ReflectiveBuilder
  13. val clazzSymbol: scala.reflect.api.JavaUniverse.ClassSymbol

    Permalink
    Attributes
    protected
    Definition Classes
    ReflectiveBuilder
  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. val constructor: scala.reflect.api.JavaUniverse.MethodSymbol

    Permalink
    Attributes
    protected
    Definition Classes
    ReflectiveBuilder
  16. def ensuring(cond: (ClpReflectiveBuilder[T]) ⇒ Boolean, msg: ⇒ Any): ClpReflectiveBuilder[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ClpReflectiveBuilder[T] to Ensuring[ClpReflectiveBuilder[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: (ClpReflectiveBuilder[T]) ⇒ Boolean): ClpReflectiveBuilder[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ClpReflectiveBuilder[T] to Ensuring[ClpReflectiveBuilder[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean, msg: ⇒ Any): ClpReflectiveBuilder[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ClpReflectiveBuilder[T] to Ensuring[ClpReflectiveBuilder[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean): ClpReflectiveBuilder[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ClpReflectiveBuilder[T] to Ensuring[ClpReflectiveBuilder[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  22. def extractParameterInformation(constructor: scala.reflect.api.JavaUniverse.MethodSymbol): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ReflectiveBuilder
  23. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ClpReflectiveBuilder[T] to StringFormat[ClpReflectiveBuilder[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  25. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. val jConstructor: Constructor[_]

    Permalink
    Attributes
    protected
    Definition Classes
    ReflectiveBuilder
  29. val mirror: Mirror

    Permalink
    Attributes
    protected
    Definition Classes
    ReflectiveBuilder
  30. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. def pickConstructor(constructors: Seq[scala.reflect.api.JavaUniverse.MethodSymbol]): scala.reflect.api.JavaUniverse.MethodSymbol

    Permalink

    Implements the CLP constructor picking logic.

    Implements the CLP constructor picking logic. Firstly if there is a single public constructor, use that. Otherwise look for a constructor that has arguments with @Arg annotations on them. Otherwise look for a constructor annotated with @CLPConstructor.

    Attributes
    protected
    Definition Classes
    ClpReflectiveBuilder → ReflectiveBuilder
  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. val typeSignature: scala.reflect.api.JavaUniverse.Type

    Permalink
    Attributes
    protected
    Definition Classes
    ReflectiveBuilder
  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. def [B](y: B): (ClpReflectiveBuilder[T], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ClpReflectiveBuilder[T] to ArrowAssoc[ClpReflectiveBuilder[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from ReflectiveBuilder[T]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ClpReflectiveBuilder[T] to any2stringadd[ClpReflectiveBuilder[T]]

Inherited by implicit conversion StringFormat from ClpReflectiveBuilder[T] to StringFormat[ClpReflectiveBuilder[T]]

Inherited by implicit conversion Ensuring from ClpReflectiveBuilder[T] to Ensuring[ClpReflectiveBuilder[T]]

Inherited by implicit conversion ArrowAssoc from ClpReflectiveBuilder[T] to ArrowAssoc[ClpReflectiveBuilder[T]]

Ungrouped