Class

org.coursera.naptime.router2

MacroImpls

Related Doc: package router2

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MacroImpls(c: Context)

    Permalink

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])]

    Permalink

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

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val ACTION_ACTION: scala.reflect.macros.Universe.Type

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

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

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

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

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

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

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

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

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

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

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

    Permalink
  16. object Nested

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

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

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

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

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

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

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

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

    Permalink
  25. final def asInstanceOf[T0]: T0

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

    Permalink

    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

    Permalink
  28. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped