class MacroImpls extends AnyRef
A macro bundle that builds ResourceRouterBuilders specialized to particular types.
- Alphabetic
- By Inheritance
- MacroImpls
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new MacroImpls(c: Context)
Type Members
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val ACTION_ACTION: scala.reflect.macros.Universe.Type
- val ACTION_CREATE: scala.reflect.macros.Universe.Type
- val ACTION_DELETE: scala.reflect.macros.Universe.Type
- val ACTION_FINDER: scala.reflect.macros.Universe.Type
- val ACTION_GET: scala.reflect.macros.Universe.Type
- val ACTION_GET_ALL: scala.reflect.macros.Universe.Type
- val ACTION_GET_MULTI: scala.reflect.macros.Universe.Type
- val ACTION_PATCH: scala.reflect.macros.Universe.Type
- val ACTION_UPDATE: scala.reflect.macros.Universe.Type
- val ANY_VAL: scala.reflect.macros.Universe.Type
- val COLLECTION_RESOURCE_TYPE: scala.reflect.macros.Universe.Type
- val DATA_TEMPLATE: scala.reflect.macros.Universe.Type
- val REQUEST_HEADER: scala.reflect.macros.Universe.Type
- val REST_ACTION: scala.reflect.macros.Universe.Type
- val ROUTE_ACTION: scala.reflect.macros.Universe.Type
- val SCALA_RECORD_TEMPLATE: scala.reflect.macros.Universe.Type
- val STRING: scala.reflect.macros.Universe.Type
- val STRING_KEY: scala.reflect.macros.Universe.Type
- val STRING_KEY_FORMAT_TYPE_CONSTRUCTOR: scala.reflect.macros.Universe.Type
- val TOP_LEVEL_COLLECTION: scala.reflect.macros.Universe.Type
- val TOP_LEVEL_COURIER_COLLECTION: scala.reflect.macros.Universe.Type
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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.
- val c: Context
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- object Nested