Object

io.github.dreamylost.macros

jsonMacro

Related Doc: package macros

Permalink

object jsonMacro extends MacroCommon

Version

1.0

Since

2021/7/7

Linear Supertypes
MacroCommon, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. jsonMacro
  2. MacroCommon
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def checkAndGetClassDef(c: Context)(annottees: scala.reflect.macros.whitebox.Context.Expr[Any]*): scala.reflect.macros.Universe.ClassDef

    Permalink

    Check the class and its companion object, and return the class definition.

    Check the class and its companion object, and return the class definition.

    returns

    Return ClassDef

    Definition Classes
    MacroCommon
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def evalTree[T](c: Context)(tree: scala.reflect.macros.whitebox.Context.Tree)(implicit arg0: scala.reflect.macros.whitebox.Context.WeakTypeTag[T]): T

    Permalink

    Eval tree.

    Eval tree.

    Definition Classes
    MacroCommon
  10. def extractArgumentsTuple1[T](c: Context)(partialFunction: PartialFunction[scala.reflect.macros.whitebox.Context.Tree, (T)])(implicit arg0: scala.reflect.macros.whitebox.Context.WeakTypeTag[T]): (T)

    Permalink
    Definition Classes
    MacroCommon
  11. def extractArgumentsTuple2[T1, T2](c: Context)(partialFunction: PartialFunction[scala.reflect.macros.whitebox.Context.Tree, (T1, T2)])(implicit arg0: scala.reflect.macros.whitebox.Context.WeakTypeTag[T1], arg1: scala.reflect.macros.whitebox.Context.WeakTypeTag[T2]): (T1, T2)

    Permalink
    Definition Classes
    MacroCommon
  12. def extractArgumentsTuple3[T1, T2, T3](c: Context)(partialFunction: PartialFunction[scala.reflect.macros.whitebox.Context.Tree, (T1, T2, T3)])(implicit arg0: scala.reflect.macros.whitebox.Context.WeakTypeTag[T1], arg1: scala.reflect.macros.whitebox.Context.WeakTypeTag[T2], arg2: scala.reflect.macros.whitebox.Context.WeakTypeTag[T3]): (T1, T2, T3)

    Permalink
    Definition Classes
    MacroCommon
  13. def extractArgumentsTuple4[T1, T2, T3, T4](c: Context)(partialFunction: PartialFunction[scala.reflect.macros.whitebox.Context.Tree, (T1, T2, T3, T4)])(implicit arg0: scala.reflect.macros.whitebox.Context.WeakTypeTag[T1], arg1: scala.reflect.macros.whitebox.Context.WeakTypeTag[T2], arg2: scala.reflect.macros.whitebox.Context.WeakTypeTag[T3], arg3: scala.reflect.macros.whitebox.Context.WeakTypeTag[T4]): (T1, T2, T3, T4)

    Permalink
    Definition Classes
    MacroCommon
  14. def fieldAssignExpr(c: Context)(annotteeClassParams: Seq[scala.reflect.macros.whitebox.Context.Tree]): Seq[scala.reflect.macros.whitebox.Context.Tree]

    Permalink

    Expand the constructor and get the field with assign.

    Expand the constructor and get the field with assign.

    Definition Classes
    MacroCommon
  15. def fieldTermName(c: Context)(field: scala.reflect.macros.Universe.Tree): scala.reflect.macros.Universe.TermName

    Permalink

    Expand the constructor and get the field TermName.

    Expand the constructor and get the field TermName.

    Definition Classes
    MacroCommon
  16. def getApplyMethodWithCurrying(c: Context)(typeName: scala.reflect.macros.whitebox.Context.TypeName, fieldss: List[List[scala.reflect.macros.whitebox.Context.Tree]]): scala.reflect.macros.whitebox.Context.Tree

    Permalink

    We generate apply method with currying, and we have to deal with the first layer of currying alone.

    We generate apply method with currying, and we have to deal with the first layer of currying alone.

    returns

    A apply method with currying.

    Definition Classes
    MacroCommon
    Example:
    1. apply(int: Int)(j: Int)(k: Option[String])(t: Option[Long]): B3 = new B3(int)(j)(k)(t)

  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  18. def getClassMemberValDef(c: Context)(annotteeClassDefinitions: Seq[scala.reflect.macros.whitebox.Context.Tree]): Seq[scala.reflect.macros.whitebox.Context.Tree]

    Permalink

    Extract the internal fields of members belonging to the class, but not in primary constructor.

    Extract the internal fields of members belonging to the class, but not in primary constructor.

    Definition Classes
    MacroCommon
  19. def getConstructorWithCurrying(c: Context)(typeName: scala.reflect.macros.whitebox.Context.TypeName, fieldss: List[List[scala.reflect.macros.whitebox.Context.Tree]], isCase: Boolean): scala.reflect.macros.whitebox.Context.Tree

    Permalink

    We generate constructor with currying, and we have to deal with the first layer of currying alone.

    We generate constructor with currying, and we have to deal with the first layer of currying alone.

    returns

    A constructor with currying, it not contains tpt, provide for calling method.

    Definition Classes
    MacroCommon
    Example:
    1. TestClass12(i)(j)(k)(t)

  20. def handleWithImplType(c: Context)(annottees: scala.reflect.macros.whitebox.Context.Expr[Any]*)(modifyAction: (scala.reflect.macros.Universe.ClassDef, Option[scala.reflect.macros.Universe.ModuleDef]) ⇒ Any): scala.reflect.macros.whitebox.Context.Expr[Nothing]

    Permalink

    Modify the associated object itself according to whether there is an associated object.

    Modify the associated object itself according to whether there is an associated object.

    modifyAction

    The actual processing function

    returns

    Return the result of modifyAction

    Definition Classes
    MacroCommon
  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  22. def impl(c: Context)(annottees: scala.reflect.macros.whitebox.Context.Expr[Any]*): scala.reflect.macros.whitebox.Context.Expr[Any]

    Permalink
  23. def isCaseClass(c: Context)(annotateeClass: scala.reflect.macros.Universe.ClassDef): Boolean

    Permalink

    Expand the class and check whether the class is a case class.

    Expand the class and check whether the class is a case class.

    annotateeClass

    classDef

    returns

    Return true if it is a case class

    Definition Classes
    MacroCommon
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. def modifiedCompanion(c: Context)(compDeclOpt: Option[scala.reflect.macros.Universe.ModuleDef], codeBlock: scala.reflect.macros.whitebox.Context.Tree, className: scala.reflect.macros.whitebox.Context.TypeName): scala.reflect.macros.Universe.Tree

    Permalink

    Modify companion objects.

    Modify companion objects.

    Definition Classes
    MacroCommon
  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  29. def printTree(c: Context)(force: Boolean, resTree: scala.reflect.macros.whitebox.Context.Tree): Unit

    Permalink

    Output ast result.

    Output ast result.

    Definition Classes
    MacroCommon
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. def treeResultWithCompanionObject(c: Context)(resTree: scala.reflect.macros.whitebox.Context.Tree, annottees: scala.reflect.macros.whitebox.Context.Expr[Any]*): scala.reflect.macros.Universe.Tree

    Permalink

    Wrap tree result with companion object.

    Wrap tree result with companion object.

    resTree

    class

    Definition Classes
    MacroCommon
  33. def tryGetClassDef(c: Context)(annottees: scala.reflect.macros.whitebox.Context.Expr[Any]*): Option[scala.reflect.macros.Universe.ClassDef]

    Permalink

    Get class if it exists.

    Get class if it exists.

    returns

    Return ClassDef without verify.

    Definition Classes
    MacroCommon
  34. def tryGetCompanionObject(c: Context)(annottees: scala.reflect.macros.whitebox.Context.Expr[Any]*): Option[scala.reflect.macros.Universe.ModuleDef]

    Permalink

    Get companion object if it exists.

    Get companion object if it exists.

    Definition Classes
    MacroCommon
  35. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from MacroCommon

Inherited from AnyRef

Inherited from Any

Ungrouped