org.coursera.naptime.router2

MacroImpls

Related Doc: package router2

class MacroImpls extends AnyRef

A macro bundle that builds ResourceRouterBuilders specialized to particular types.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MacroImpls
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MacroImpls(c: Context)

Type Members

  1. type OptionalTree = Either[(scala.reflect.macros.blackbox.Context.Position, String), (scala.reflect.macros.blackbox.Context.Tree, Iterable[scala.reflect.macros.blackbox.Context.Tree])]

    A type that indicates a function either generates a Right(tree, schemaTrees) or a Left(error).

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. val ACTION_ACTION: scala.reflect.macros.Universe.Type

  5. val ACTION_CREATE: scala.reflect.macros.Universe.Type

  6. val ACTION_DELETE: scala.reflect.macros.Universe.Type

  7. val ACTION_FINDER: scala.reflect.macros.Universe.Type

  8. val ACTION_GET: scala.reflect.macros.Universe.Type

  9. val ACTION_GET_ALL: scala.reflect.macros.Universe.Type

  10. val ACTION_GET_MULTI: scala.reflect.macros.Universe.Type

  11. val ACTION_PATCH: scala.reflect.macros.Universe.Type

  12. val ACTION_UPDATE: scala.reflect.macros.Universe.Type

  13. val ANY_VAL: scala.reflect.macros.Universe.Type

  14. val COLLECTION_RESOURCE_TYPE: scala.reflect.macros.Universe.Type

  15. val DATA_TEMPLATE: scala.reflect.macros.Universe.Type

  16. object Nested

  17. val REQUEST_HEADER: scala.reflect.macros.Universe.Type

  18. val REST_ACTION: scala.reflect.macros.Universe.Type

  19. val ROUTE_ACTION: scala.reflect.macros.Universe.Type

  20. val SCALA_RECORD_TEMPLATE: scala.reflect.macros.Universe.Type

  21. val STRING: scala.reflect.macros.Universe.Type

  22. val STRING_KEY: scala.reflect.macros.Universe.Type

  23. val STRING_KEY_FORMAT_TYPE_CONSTRUCTOR: scala.reflect.macros.Universe.Type

  24. val TOP_LEVEL_COLLECTION: scala.reflect.macros.Universe.Type

  25. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  26. def build[Resource <: CollectionResource[_, _, _]](implicit wtt: scala.reflect.macros.Universe.WeakTypeTag[Resource]): scala.reflect.macros.blackbox.Context.Tree

    Code-generates a subclass of ResourceRouterBuilder specialized for the Resource type.

    Code-generates a subclass of ResourceRouterBuilder specialized for the Resource type.

    Be sure to look over CollectionResourceRouter first, as that is crucial to understanding the implementation of this macro. The bulk of the router is actually implemented in normal code within the CollectionResourceRouter class. This macro simply generates a subclass specialized to provide the glue code to bind to an instance of Resource.

    Resource

    The resource type that we are specializing.

    wtt

    The weak type tag for the resource we are specializing.

    returns

    A c.Tree corresponding to a ResourceRouterBuilder.

  27. val c: Context

  28. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  31. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  32. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  35. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  36. final def notify(): Unit

    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  39. def toString(): String

    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped