BuildCodec

trait BuildCodec extends Common
trait Common
class Object
trait Matchable
class Any

Value members

Concrete methods

def classApply(t: TypeRepr, params: List[Term], constructor: Option[Term]): Term
def increment(x: Ref, y: Expr[Int])(using Quotes): Assign
def initValDef(field: FieldInfo): (ValDef, Ref)
def prepareImpl[A](a: Expr[A], params: List[FieldInfo])(using evidence$2: Type[A], Quotes): Expr[Prepare]
def prepareTrait[A](a: Expr[A], params: List[FieldInfo])(using evidence$1: Type[A], Quotes): Expr[Prepare]
def putLimit(is: Expr[CodedInputStream], read: Expr[Any])(using Quotes): Expr[Unit]
def readContentImpl(p: FieldInfo, readRef: Term, is: Expr[CodedInputStream])(using Quotes): Expr[Any]
def readImpl(t: TypeRepr, params: List[FieldInfo], is: Expr[CodedInputStream], isTrait: Boolean, constructor: Option[Term])(using Quotes): Expr[Any]
def resTerm(ref: Ref, field: FieldInfo): Term
def size[A](a: Expr[A], field: FieldInfo, sizeAcc: Ref)(using evidence$8: Type[A], Quotes): List[Statement]
def sizeCaseObject(field: FieldInfo, sizeAcc: Ref): List[Statement]
def sizeCollection[A](a: Expr[A], field: FieldInfo, sizeAcc: Ref)(using evidence$11: Type[A], Quotes): List[Statement]
def sizeCommon[A](a: Expr[A], field: FieldInfo, sizeAcc: Ref)(using evidence$9: Type[A], Quotes): List[Statement]
def sizeMessage[A](a: Expr[A], field: FieldInfo, sizeAcc: Ref)(using evidence$12: Type[A], Quotes): List[Statement]
def sizeOption[A](a: Expr[A], field: FieldInfo, sizeAcc: Ref)(using evidence$10: Type[A], Quotes): List[Statement]
def writeCaseObject(os: Expr[CodedOutputStream], field: FieldInfo)(using Quotes): List[Expr[Unit]]
def writeCollection[A](a: Expr[A], os: Expr[CodedOutputStream], field: FieldInfo)(using evidence$6: Type[A], Quotes): List[Expr[Unit]]
def writeCommon[A](a: Expr[A], os: Expr[CodedOutputStream], field: FieldInfo)(using evidence$4: Type[A], Quotes): List[Expr[Unit]]
def writeImpl[A](a: Expr[A], params: List[FieldInfo], os: Expr[CodedOutputStream])(using evidence$3: Type[A], Quotes): Expr[Unit]
def writeMessage[A](a: Expr[A], os: Expr[CodedOutputStream], field: FieldInfo)(using evidence$7: Type[A], Quotes): List[Expr[Unit]]
def writeOption[A](a: Expr[A], os: Expr[CodedOutputStream], field: FieldInfo)(using evidence$5: Type[A], Quotes): List[Expr[Unit]]

Inherited methods

def OptionType: TypeRepr
Inherited from:
Common
def Some_Apply(tpe: TypeRepr, value: Term): Term
Inherited from:
Common
def builderType: TypeRepr
Inherited from:
Common
def defaultMethodName(i: Int): String
Inherited from:
Common
def findCodec(t: TypeRepr): Term
Inherited from:
Common
def findImplicit(tpe: TypeRepr): Term
Inherited from:
Common
def mkIfStatement(branches: List[(Term, Term)], elseBranch: Term): Term
Inherited from:
Common
def readFun(t: TypeRepr & Matchable, is: Expr[CodedInputStream])(using Quotes): Term
Inherited from:
Common
def sizeFun(t: TypeRepr & Matchable, getterTerm: Term): Expr[Int]
Inherited from:
Common
def unitExpr: Expr[Unit]
Inherited from:
Common
def unitLiteral: Literal
Inherited from:
Common
def wireType(t: TypeRepr & Matchable): Int
Inherited from:
Common
def writeFun(os: Expr[CodedOutputStream], t: TypeRepr & Matchable, getterTerm: Term)(using Quotes): Expr[Unit]
Inherited from:
Common

Inherited fields

val ArrayByteType: TypeRepr
Inherited from:
Common
val ArraySeqByteType: TypeRepr
Inherited from:
Common
val ArrayType: TypeRepr
Inherited from:
Common
val CodedInputStreamType: TypeRepr
Inherited from:
Common
val ItetableType: TypeRepr
Inherited from:
Common
val NTpe: TypeRepr
Inherited from:
Common
val PrepareType: TypeRepr
Inherited from:
Common
val RestrictedNType: TypeRepr
Inherited from:
Common
val commonTypes: List[TypeRepr]
Inherited from:
Common

Extensions

Inherited extensions

extension (s: Symbol)
def constructorParams: List[Symbol]
Inherited from:
Common
def tpe: TypeRepr
Inherited from:
Common
extension (t: TypeRepr)
def arrayArgument: TypeRepr
Inherited from:
Common
def isArray: Boolean
Inherited from:
Common
def isArrayByte: Boolean
Inherited from:
Common
def isArraySeqByte: Boolean
Inherited from:
Common
def isBoolean: Boolean
Inherited from:
Common
def isCaseClass: Boolean
Inherited from:
Common
def isCaseObject: Boolean
Inherited from:
Common
def isCaseType: Boolean
Inherited from:
Common
def isCommonType: Boolean
Inherited from:
Common
def isDouble: Boolean
Inherited from:
Common
def isFloat: Boolean
Inherited from:
Common
def isInt: Boolean
Inherited from:
Common
def isIterable: Boolean
Inherited from:
Common
def isLong: Boolean
Inherited from:
Common
def isNType: Boolean
Inherited from:
Common
def isOption: Boolean
Inherited from:
Common
def isRepeated: Boolean
Inherited from:
Common
def isSealedTrait: Boolean
Inherited from:
Common
def isString: Boolean
Inherited from:
Common
def iterableArgument: TypeRepr
Inherited from:
Common
def knownFinalSubclasses: List[Symbol]
Inherited from:
Common
def optionArgument: TypeRepr
Inherited from:
Common
def repeatedArgument: TypeRepr
Inherited from:
Common
def repeatedBaseType: TypeRepr
Inherited from:
Common
def replaceTypeArgs(map: Map[String, TypeRepr]): TypeRepr
Inherited from:
Common
def restrictedNums: List[Int]
Inherited from:
Common
def typeArgs: List[TypeRepr]
Inherited from:
Common
def typeArgsToReplace: Map[String, TypeRepr]
Inherited from:
Common

Implicits

Implicits

implicit val qctx: Quotes