object Extractor extends VersionSpecificExtractorModule
- Grouped
- Alphabetic
- By Inheritance
- Extractor
- VersionSpecificExtractorModule
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait Extractors[Expr[+_], Type[_]] extends AnyRef
A trait that provides Extractor factory methods that conform to a particular input Expr type parameter.
A trait that provides Extractor factory methods that conform to a particular input Expr type parameter.
In scala 3, the Extractor companion object contains methods similar to these for quoted.Expr, and as such this would generally by calling methods directly on Extractor. However, since in scala 2 the Expr depends on a particular instance of
blackbox.Context
, instead an Extractors must be constructed from the Extractor companion object'smacroExtractors
method that takes a Context.
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def contextExtractors(c: Context): Extractors[scala.reflect.macros.blackbox.Context.Expr, scala.reflect.macros.blackbox.Context.TypeTag]
Create a Extractors that can parse Exprs belonging to the specified Context
Create a Extractors that can parse Exprs belonging to the specified Context
- Definition Classes
- VersionSpecificExtractorModule
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- val idExtractors: Extractors[Id, ClassTag]
Returns an Extractors that can parse raw values
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lazy[Expr[_], Type[_], A](fn: () => Extractor[Expr, Type, A]): Extractor[Expr, Type, A]
Indirectly refers to a parser, to allow for mutual-recursion
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
A library for writing custom string interpolation implementations via parser combinators
## Entry Points
If the string context should create an object: Create leaf parsers using the methods in the Interpolator companion object, combine and manipulate them with the methods in Interpolator, then interpolate using the final
Interpolator
'sinterpolate
method.If the string context should create an extractor: Create leaf parsers using the methods in the Extractor companion object, combine and manipulate them with the methods in Extractor, then interpolate using the final
Extractor
'sextractor
method.If the string context should do both: Create leaf parsers using the methods in the Parser companion object, combine and manipulate them with the methods in Parser, then interpolate using the final
Parser
'sinterpolate
andextractor
methods.