class SamplerMacro extends AnnotationToolkit with BlackboxToolbelt
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SamplerMacro
- BlackboxToolbelt
- AnnotationToolkit
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new SamplerMacro(c: Context)
Type Members
-
case class
Accessor extends Product with Serializable
- Definition Classes
- AnnotationToolkit
- case class CollectionType (sources: List[scala.reflect.macros.Universe.Type], applier: (List[scala.reflect.macros.Universe.Type]) ⇒ scala.reflect.macros.Universe.TypeName, generator: (List[scala.reflect.macros.Universe.Type]) ⇒ scala.reflect.macros.Universe.Tree) extends TypeExtractor with Product with Serializable
-
case class
MapType
(sources: List[scala.reflect.macros.Universe.Type], applier: (List[scala.reflect.macros.Universe.Type]) ⇒ scala.reflect.macros.Universe.TypeName, generator: (List[scala.reflect.macros.Universe.Type]) ⇒ scala.reflect.macros.Universe.Tree) extends TypeExtractor with Product with Serializable
Describes a complex collection type.
Describes a complex collection type. The source types are the type arguments that will be needed to produce the collection. We have more than one because in the case of a Map for instance we could have multiple ones.
The applier function is a way to produce a new type of the same collection type given an input type. It's useful because we often want to derive the types of the generators based on the name of the field, to offer the auto-replacement funtionality for collections.
- sources
The source types that are needed to produce the collection type.
- applier
The applier function that allows producing a collection type from a list of type arguments.
- case class OptionType (sources: List[scala.reflect.macros.Universe.Type], applier: (List[scala.reflect.macros.Universe.Type]) ⇒ scala.reflect.macros.Universe.TypeName, generator: (List[scala.reflect.macros.Universe.Type]) ⇒ scala.reflect.macros.Universe.Tree) extends TypeExtractor with Product with Serializable
- trait TypeExtractor extends AnyRef
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
-
def
abort(msg: String): Nothing
- Definition Classes
- BlackboxToolbelt
-
def
accessors(params: Seq[scala.reflect.macros.Universe.ValDef]): Iterable[Accessor]
- Definition Classes
- AnnotationToolkit
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
c: Context
- Definition Classes
- SamplerMacro → BlackboxToolbelt → AnnotationToolkit
- def caseClassSample(tpe: scala.reflect.macros.Universe.Type): scala.reflect.macros.Universe.Tree
-
def
caseFields(tpe: scala.reflect.macros.Universe.Type): Iterable[Accessor]
- Definition Classes
- AnnotationToolkit
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
val
collectionPkg: scala.reflect.macros.Universe.Select
- Definition Classes
- AnnotationToolkit
- val definitions: String
- val domainPkg: scala.reflect.macros.Universe.Select
-
def
echo(msg: String): Unit
- Definition Classes
- BlackboxToolbelt
- def enumSample(tpe: scala.reflect.macros.Universe.Type): scala.reflect.macros.Universe.Tree
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
error(msg: String): Unit
- Definition Classes
- BlackboxToolbelt
- def extract(exp: scala.reflect.macros.Universe.Tree): Option[scala.reflect.macros.Universe.Type]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
info(msg: String, force: Boolean): Unit
- Definition Classes
- BlackboxToolbelt
-
def
isCaseClass(sym: scala.reflect.macros.Universe.Symbol): Boolean
- Definition Classes
- AnnotationToolkit
-
def
isCaseClass(tpe: scala.reflect.macros.Universe.Type): Boolean
- Definition Classes
- AnnotationToolkit
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isTuple(sym: scala.reflect.macros.Universe.Symbol): Boolean
- Definition Classes
- AnnotationToolkit
-
def
isTuple(tpe: scala.reflect.macros.Universe.Type): Boolean
- Definition Classes
- AnnotationToolkit
- def macroImpl(tpe: scala.reflect.macros.Universe.Type): scala.reflect.macros.Universe.Tree
- def mapSample(tpe: scala.reflect.macros.Universe.Type): scala.reflect.macros.Universe.Tree
- def materialize[T](implicit arg0: scala.reflect.macros.Universe.WeakTypeTag[T]): scala.reflect.macros.Universe.Tree
-
def
memoize[A, B](cache: Cache)(a: A, f: (A) ⇒ B): B
- Definition Classes
- BlackboxToolbelt
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val prefix: scala.reflect.macros.Universe.Select
-
def
printType(tpe: scala.reflect.macros.Universe.Type): String
- Definition Classes
- AnnotationToolkit
- def sampler(nm: String): scala.reflect.macros.Universe.Tree
-
lazy val
showAborts: Boolean
- Definition Classes
- BlackboxToolbelt
-
lazy val
showCache: Boolean
- Definition Classes
- BlackboxToolbelt
-
lazy val
showLogs: Boolean
- Definition Classes
- BlackboxToolbelt
-
lazy val
showTrees: Boolean
- Definition Classes
- BlackboxToolbelt
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def traversableSample(tpe: scala.reflect.macros.Universe.Type): scala.reflect.macros.Universe.Tree
- def tupleSample(tpe: scala.reflect.macros.Universe.Type): scala.reflect.macros.Universe.Tree
-
def
tupleTerm(i: Int): scala.reflect.macros.Universe.TermName
- Definition Classes
- AnnotationToolkit
-
def
typed[A](implicit arg0: scala.reflect.macros.blackbox.Context.WeakTypeTag[A]): scala.reflect.macros.Universe.Symbol
- Definition Classes
- AnnotationToolkit
-
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
- @throws( ... )
-
def
warning(msg: String): Unit
- Definition Classes
- BlackboxToolbelt
- object CollectionType extends Serializable
- object KnownField
- object MapType extends Serializable
- object OptionType extends Serializable
- object SamplersSymbols