object MacroInstances
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- MacroInstances
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
final
class
materializeWith extends Annotation with StaticAnnotation
Annotation which may be applied on methods of
Implicits
trait in MacroInstances to instruct MacroInstances.materialize macro how to implement these methods.
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[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
-
implicit macro
def
materialize[Implicits, Instances]: MacroInstances[Implicits, Instances]
Materializes an instance of
MacroInstances[Implicits, Instances]
.Materializes an instance of
MacroInstances[Implicits, Instances]
. This macro should not be invoked directly, it should only be used to materialize implicit parameters of RPC companion base classes, e.g.com.avsystem.commons.rest.DefaultRestApiCompanion
.trait SomeRawRpc { ... } class SomeMetadata[Real](...) trait SomeInstances[Real} { def asReal: AsReal[SomeRawRpc, Real] def metadata: SomeMetadata[Real] } trait SomeImplicits { ... } object SomeImplicits extends SomeImplicits trait SomeRealRpc { ... }
MacroInstances.materialize[SomeImplicits, SomeInstances[SomeRealRpc]]
would generate:new MacroInstances[SomeImplicits, SomeInstances[SomeRealRpc]] { def apply(implicits: SomeImplicits): SomeInstances[SomeRealRpc] = { import implicits._ new SomeInstances[SomeRealRpc] { def asReal: AsReal[SomeRawRpc, SomeRealRpc] = AsReal.materialize def metadata: SomeMetadata[Real] = RpcMetadata.materialize } } }
Example: -
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( ... )