object stringMacro extends MacroCommon
- Alphabetic
- By Inheritance
- stringMacro
- MacroCommon
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
checkAndGetClassDef(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
- Definition Classes
- MacroCommon
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
fieldAssignExpr(c: Context)(annotteeClassParams: Seq[scala.reflect.macros.whitebox.Context.Tree]): Seq[scala.reflect.macros.whitebox.Context.Tree]
Expand the constructor and get the field with assign.
Expand the constructor and get the field with assign.
- Definition Classes
- MacroCommon
-
def
fieldTermName(c: Context)(field: scala.reflect.macros.Universe.Tree): scala.reflect.macros.Universe.TermName
Expand the constructor and get the field TermName.
Expand the constructor and get the field TermName.
- Definition Classes
- MacroCommon
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getClassMemberValDef(c: Context)(annotteeClassDefinitions: Seq[scala.reflect.macros.whitebox.Context.Tree]): Seq[scala.reflect.macros.whitebox.Context.Tree]
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
-
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
- Definition Classes
- MacroCommon
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def impl(c: Context)(annottees: scala.reflect.macros.whitebox.Context.Expr[Any]*): scala.reflect.macros.whitebox.Context.Expr[Any]
-
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
- Definition Classes
- MacroCommon
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
Modify companion objects.
Modify companion objects.
- Definition Classes
- MacroCommon
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def printField(c: Context)(argument: Argument, lastParam: Option[String], field: scala.reflect.macros.Universe.Tree): scala.reflect.macros.Universe.Tree
-
def
printTree(c: Context)(force: Boolean, resTree: scala.reflect.macros.whitebox.Context.Tree): Unit
- Definition Classes
- MacroCommon
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
treeResultWithCompanionObject(c: Context)(resTree: scala.reflect.macros.whitebox.Context.Tree, annottees: scala.reflect.macros.whitebox.Context.Expr[Any]*): scala.reflect.macros.Universe.Tree
Wrap tree result with companion object.
-
def
tryGetClassDef(c: Context)(annottees: scala.reflect.macros.whitebox.Context.Expr[Any]*): Option[scala.reflect.macros.Universe.ClassDef]
Get class if it exists.
-
def
tryGetCompanionObject(c: Context)(annottees: scala.reflect.macros.whitebox.Context.Expr[Any]*): Option[scala.reflect.macros.Universe.ModuleDef]
Get companion object if it exists.
Get companion object if it exists.
- Definition Classes
- MacroCommon
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated