Package

wvlet

obj

Permalink

package obj

Visibility
  1. Public
  2. All

Type Members

  1. case class AliasedObjectType(name: String, fullName: String, base: ObjectType) extends ObjectType with Product with Serializable

    Permalink
  2. case class ArrayType[A](cl: Class[A], elementType: ObjectType) extends GenericType with Product with Serializable

    Permalink
  3. class CName extends Comparable[CName]

    Permalink

    Cannonical name.

    Cannonical name. This name is used as a common name of wording variants (e.g., difference of capital letter usage, hyphenation, etc.)

  4. case class CompanionMethod(owner: Class[_], jMethod: Method, name: String, params: Array[MethodParameter], returnType: ObjectType) extends ObjectMethod with LogSupport with Product with Serializable

    Permalink
  5. case class Constructor(cl: Class[_], params: Array[ConstructorParameter]) extends Type with Product with Serializable

    Permalink

    Constructor of the class

  6. case class ConstructorParameter(owner: Class[_], fieldOwner: Option[Class[_]], index: Int, name: String, valueType: ObjectType) extends Parameter with LogSupport with Product with Serializable

    Permalink

    Represents a constructor parameter

  7. case class EitherType[A](cl: Class[A], leftType: ObjectType, rightType: ObjectType) extends GenericType with Product with Serializable

    Permalink
  8. case class FieldParameter(owner: Class[_], ref: Class[_], name: String, valueType: ObjectType) extends Parameter with LogSupport with Product with Serializable

    Permalink

    Field defined in a class

  9. trait GenericBuilder extends AnyRef

    Permalink
  10. class GenericType extends ObjectType

    Permalink
  11. case class MapType[A](cl: Class[A], keyType: ObjectType, valueType: ObjectType) extends GenericType with Product with Serializable

    Permalink
  12. class MethodCallBuilder extends StandardBuilder[MethodParameter] with LogSupport

    Permalink

    Builds method call arguments

  13. case class MethodParameter(owner: Method, index: Int, name: String, valueType: ObjectType) extends Parameter with Product with Serializable

    Permalink

    A method argument

  14. trait ObjectBuilder[A] extends GenericBuilder

    Permalink

    Generic object builder

  15. trait ObjectMethod extends ObjectParameter with Type

    Permalink
  16. trait ObjectParameter extends AnyRef

    Permalink
  17. case class ObjectSchema(cl: Class[_], parameters: Seq[Parameter]) extends LogSupport with Product with Serializable

    Permalink

    Contains information of methods, constructor and parameters defined in a class

  18. abstract class ObjectType extends Type

    Permalink

  19. case class OptionType[A](cl: Class[A], elementType: ObjectType) extends GenericType with Product with Serializable

    Permalink
  20. case class ParSeqType[A](cl: Class[A], elementType: ObjectType) extends GenericType with Product with Serializable

    Permalink
  21. sealed abstract class Parameter extends ObjectParameter with Serializable

    Permalink

    A base class of field parameters and method parameters

  22. trait Path extends Iterable[String]

    Permalink

    Representing paths separated by slashes

  23. sealed abstract class Primitive extends ObjectType with ValueObject

    Permalink
  24. case class ScMethod(owner: Class[_], jMethod: Method, name: String, params: Array[MethodParameter], returnType: ObjectType) extends ObjectMethod with Product with Serializable

    Permalink

    A method defined in a scala class

  25. case class SeqType[A](cl: Class[A], elementType: ObjectType) extends GenericType with Product with Serializable

    Permalink
  26. case class SetType[A](cl: Class[A], elementType: ObjectType) extends GenericType with Product with Serializable

    Permalink
  27. class SimpleObjectBuilder[A] extends ObjectBuilder[A] with StandardBuilder[Parameter] with LogSupport

    Permalink
  28. trait StandardBuilder[ParamType <: Parameter] extends GenericBuilder with LogSupport

    Permalink
  29. case class StandardType[A](rawType: Class[A]) extends ObjectType with LogSupport with Product with Serializable

    Permalink
  30. case class TaggedObjectType(base: ObjectType, tagType: ObjectType) extends ObjectType with Product with Serializable

    Permalink
  31. sealed abstract class TextType extends ObjectType with ValueObject

    Permalink

    Types that can be constructed from String

  32. case class TupleType[A](cl: Class[A], elementType: Seq[ObjectType]) extends GenericType with Product with Serializable

    Permalink
  33. trait Type extends Serializable

    Permalink
  34. trait ValueHolder[+A] extends AnyRef

    Permalink

    Holder of structured data consisting of named values.

    Holder of structured data consisting of named values. ValueHolder is immutable, so the set operations in this class return another ValueHolder and never modify the original ValueHolder.

    A(a, B(b, c))
    
    { a: apple, B:{b:book, c:car} }
    
    val n1 = Empty.set("a", apple)  =>  Node(a -> Leaf(apple))
    val n2 = n1.set("B.b", "book")
          => Node(a -> Leaf(apple), B -> Empty.set("b", "book"))
          => Node(a -> apple, B->Node(b -> Leaf(book)))
    val n3 = n2.set("B.c", "car") => Node(a ->apple, B->Node(b -> Leaf(book), c->Leaf(car)))
    
    

  35. trait ValueObject extends ObjectType

    Permalink

Value Members

  1. object AnyRefType extends ObjectType with Product with Serializable

    Permalink
  2. object CName

    Permalink

    Utility for managing names written in different spellings.

    Utility for managing names written in different spellings. For example, variable name localAddress can be written as "local address", "local_address", etc.

    CanonicalName is the representative name of these variants.

    CName("localAddress") == CName("local address") == CName("local_address")
    

  3. object GenericType extends Serializable

    Permalink
  4. object ObjectBuilder extends LogSupport

    Permalink

  5. object ObjectSchema extends LogSupport

    Permalink

    Object information extractor

    Object information extractor

    Since

    2012/01/17 10:05

  6. object ObjectType extends LogSupport

    Permalink
  7. object Path extends LogSupport

    Permalink
  8. object Primitive extends Serializable

    Permalink

    Scala's primitive types.

    Scala's primitive types. The classes in this category can create primitive type arrays.

  9. object Reflect

    Permalink

    Reflection utility functions

  10. object TextType extends Serializable

    Permalink
  11. object TypeConverter extends LogSupport

    Permalink

  12. object TypeUtil extends LogSupport

    Permalink

    Since

    2012/07/17

  13. object ValueHolder extends LogSupport

    Permalink
  14. package tag

    Permalink

    Copied from com.softwaremill.tagging

    Copied from com.softwaremill.tagging

    Tag instances with arbitrary types. The tags are usually empty traits. Tags have no runtime overhead and are only used at compile-time for additional type safety.

    For example:

    class Berry()
    
    trait Black
    trait Blue
    
    val berry = new Berry()
    val blackBerry: Berry @@ Black = berry.taggedWith[Black]
    val blueBerry: Berry @@ Blue = berry.taggedWith[Blue]
    
    // compile error: val anotherBlackBerry: Berry @@ Black = blueBerry

    Original idea by Miles Sabin, see: https://gist.github.com/milessabin/89c9b47a91017973a35f

Ungrouped