BuildCodec

proto.BuildCodec
trait BuildCodec extends Common

Attributes

Graph
Supertypes
trait Common
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def classApply(t: qctx.reflect.TypeRepr, params: List[qctx.reflect.Term], constructor: Option[qctx.reflect.Term]): qctx.reflect.Term
def increment(x: qctx.reflect.Ref, y: Expr[Int])(using Quotes): qctx.reflect.Assign
def initValDef(field: FieldInfo): (qctx.reflect.ValDef, qctx.reflect.Ref)
def prepareImpl[A](a: Expr[A], params: List[FieldInfo])(using evidence$1: 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: qctx.reflect.Term, is: Expr[CodedInputStream])(using Quotes): Expr[Any]
def readImpl(t: qctx.reflect.TypeRepr, params: List[FieldInfo], is: Expr[CodedInputStream], isTrait: Boolean, constructor: Option[qctx.reflect.Term])(using Quotes): Expr[Any]
def resTerm(ref: qctx.reflect.Ref, field: FieldInfo): qctx.reflect.Term
def size[A](a: Expr[A], field: FieldInfo, sizeAcc: qctx.reflect.Ref)(using evidence$1: Type[A], Quotes): List[qctx.reflect.Statement]
def sizeCaseObject(field: FieldInfo, sizeAcc: qctx.reflect.Ref): List[qctx.reflect.Statement]
def sizeCollection[A](a: Expr[A], field: FieldInfo, sizeAcc: qctx.reflect.Ref)(using evidence$1: Type[A], Quotes): List[qctx.reflect.Statement]
def sizeCommon[A](a: Expr[A], field: FieldInfo, sizeAcc: qctx.reflect.Ref)(using evidence$1: Type[A], Quotes): List[qctx.reflect.Statement]
def sizeMessage[A](a: Expr[A], field: FieldInfo, sizeAcc: qctx.reflect.Ref)(using evidence$1: Type[A], Quotes): List[qctx.reflect.Statement]
def sizeOption[A](a: Expr[A], field: FieldInfo, sizeAcc: qctx.reflect.Ref)(using evidence$1: Type[A], Quotes): List[qctx.reflect.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$1: Type[A], Quotes): List[Expr[Unit]]
def writeCommon[A](a: Expr[A], os: Expr[CodedOutputStream], field: FieldInfo)(using evidence$1: Type[A], Quotes): List[Expr[Unit]]
def writeImpl[A](a: Expr[A], params: List[FieldInfo], os: Expr[CodedOutputStream])(using evidence$1: Type[A], Quotes): Expr[Unit]
def writeMessage[A](a: Expr[A], os: Expr[CodedOutputStream], field: FieldInfo)(using evidence$1: Type[A], Quotes): List[Expr[Unit]]
def writeOption[A](a: Expr[A], os: Expr[CodedOutputStream], field: FieldInfo)(using evidence$1: Type[A], Quotes): List[Expr[Unit]]

Inherited methods

def OptionType: this.qctx.reflect.TypeRepr

Attributes

Inherited from:
Common
def Some_Apply(tpe: qctx.reflect.TypeRepr, value: qctx.reflect.Term): this.qctx.reflect.Term

Attributes

Inherited from:
Common
def builderType: this.qctx.reflect.TypeRepr

Attributes

Inherited from:
Common
def defaultMethodName(i: Int): String

Attributes

Inherited from:
Common
def findCodec(t: qctx.reflect.TypeRepr): this.qctx.reflect.Term

Attributes

Inherited from:
Common
def findImplicit(tpe: qctx.reflect.TypeRepr): this.qctx.reflect.Term

Attributes

Inherited from:
Common
def mkIfStatement(branches: List[(qctx.reflect.Term, qctx.reflect.Term)], elseBranch: qctx.reflect.Term): this.qctx.reflect.Term

Attributes

Inherited from:
Common
def readFun(t: qctx.reflect.TypeRepr & Matchable, is: Expr[CodedInputStream])(using Quotes): this.qctx.reflect.Term

Attributes

Inherited from:
Common
def sizeFun(t: qctx.reflect.TypeRepr & Matchable, getterTerm: qctx.reflect.Term): Expr[Int]

Attributes

Inherited from:
Common
def unitExpr: Expr[Unit]

Attributes

Inherited from:
Common
def unitLiteral: this.qctx.reflect.Literal

Attributes

Inherited from:
Common
def wireType(t: qctx.reflect.TypeRepr & Matchable): Int

Attributes

Inherited from:
Common
def writeFun(os: Expr[CodedOutputStream], t: qctx.reflect.TypeRepr & Matchable, getterTerm: qctx.reflect.Term)(using Quotes): Expr[Unit]

Attributes

Inherited from:
Common

Inherited fields

val ArrayByteType: qctx.reflect.TypeRepr

Attributes

Inherited from:
Common
val ArraySeqByteType: qctx.reflect.TypeRepr

Attributes

Inherited from:
Common
val ArrayType: qctx.reflect.TypeRepr

Attributes

Inherited from:
Common
val CodedInputStreamType: qctx.reflect.TypeRepr

Attributes

Inherited from:
Common
val ItetableType: qctx.reflect.TypeRepr

Attributes

Inherited from:
Common
val NTpe: qctx.reflect.TypeRepr

Attributes

Inherited from:
Common
val PrepareType: qctx.reflect.TypeRepr

Attributes

Inherited from:
Common
val RestrictedNType: qctx.reflect.TypeRepr

Attributes

Inherited from:
Common
val commonTypes: List[qctx.reflect.TypeRepr]

Attributes

Inherited from:
Common
val packedTypes: List[qctx.reflect.TypeRepr]

Attributes

Inherited from:
Common

Extensions

Inherited extensions

extension (s: qctx.reflect.Symbol)
def constructorParams: List[this.qctx.reflect.Symbol]

Attributes

Inherited from:
Common
def tpe: this.qctx.reflect.TypeRepr

Attributes

Inherited from:
Common
extension (t: qctx.reflect.TypeRepr)
def arrayArgument: this.qctx.reflect.TypeRepr

Attributes

Inherited from:
Common
def isArray: Boolean

Attributes

Inherited from:
Common
def isArrayByte: Boolean

Attributes

Inherited from:
Common
def isArraySeqByte: Boolean

Attributes

Inherited from:
Common
def isBoolean: Boolean

Attributes

Inherited from:
Common
def isCaseClass: Boolean

Attributes

Inherited from:
Common
def isCaseObject: Boolean

Attributes

Inherited from:
Common
def isCaseType: Boolean

Attributes

Inherited from:
Common
def isCommonType: Boolean

Attributes

Inherited from:
Common
def isDouble: Boolean

Attributes

Inherited from:
Common
def isFloat: Boolean

Attributes

Inherited from:
Common
def isInt: Boolean

Attributes

Inherited from:
Common
def isIterable: Boolean

Attributes

Inherited from:
Common
def isLong: Boolean

Attributes

Inherited from:
Common
def isNType: Boolean

Attributes

Inherited from:
Common
def isOption: Boolean

Attributes

Inherited from:
Common
def isPackedType: Boolean

Attributes

Inherited from:
Common
def isRepeated: Boolean

Attributes

Inherited from:
Common
def isSealedTrait: Boolean

Attributes

Inherited from:
Common
def isString: Boolean

Attributes

Inherited from:
Common
def iterableArgument: this.qctx.reflect.TypeRepr

Attributes

Inherited from:
Common
def knownFinalSubclasses: List[this.qctx.reflect.Symbol]

Attributes

Inherited from:
Common
def optionArgument: this.qctx.reflect.TypeRepr

Attributes

Inherited from:
Common
def repeatedArgument: this.qctx.reflect.TypeRepr

Attributes

Inherited from:
Common
def repeatedBaseType: this.qctx.reflect.TypeRepr

Attributes

Inherited from:
Common
def replaceTypeArgs(map: Map[String, qctx.reflect.TypeRepr]): this.qctx.reflect.TypeRepr

Attributes

Inherited from:
Common
def restrictedNums: List[Int]

Attributes

Inherited from:
Common
def typeArgs: List[this.qctx.reflect.TypeRepr]

Attributes

Inherited from:
Common
def typeArgsToReplace: Map[String, this.qctx.reflect.TypeRepr]

Attributes

Inherited from:
Common

Implicits

Implicits

implicit val qctx: Quotes