t

io.github.dreamylost

MacroCommon

trait MacroCommon extends AnyRef

Common methods

Version

1.0

Since

2021/6/28

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def checkAndReturnClass(c: Context)(annottees: scala.reflect.macros.whitebox.Context.Expr[Any]*): scala.reflect.macros.Universe.ClassDef

    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

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def fieldTermNameMethod(c: Context)(field: scala.reflect.macros.Universe.Tree): scala.reflect.macros.Universe.Tree

    Expand the constructor and get the field TermName

  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def getCompanionObject(c: Context)(annottees: scala.reflect.macros.whitebox.Context.Expr[Any]*): Option[scala.reflect.macros.Universe.ModuleDef]

    Get companion object if it exists.

  12. 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]

    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 dependent type need aux-pattern in scala2. Now let's get around this.

    returns

    Return the result of modifyAction

  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def isCaseClass(c: Context)(annotateeClass: scala.reflect.macros.Universe.ClassDef): Boolean

    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

  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def modifiedCompanion(c: Context)(compDeclOpt: Option[scala.reflect.macros.Universe.ModuleDef], apply: scala.reflect.macros.whitebox.Context.Tree, className: scala.reflect.macros.whitebox.Context.TypeName): scala.reflect.macros.Universe.Tree
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. def printTree(c: Context)(force: Boolean, resTree: scala.reflect.macros.whitebox.Context.Tree): Unit
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped