final class ResetEverywhere extends Plugin
A Scala compiler plug-in to enable !-notation for every methods and functions.
Add the following setting in your build.sbt
to enable this plug-in.
// build.sbt
addCompilerPlugin("com.thoughtworks.dsl" %% "compilerplugins-reseteverywhere" % "latest.release")
Author:
杨博 (Yang Bo)
- Source
- ResetEverywhere.scala
- Note
Once this ResetEverywhere plug-in is enabled, the
@reset
annotations are added to class fields, every methods and every functions automatically. Some other macros or compiler plug-ins may conflict with those@reset
annotations.
- Alphabetic
- By Inheritance
- ResetEverywhere
- Plugin
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from ResetEverywhere toany2stringadd[ResetEverywhere] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (ResetEverywhere, B)
- Implicit
- This member is added by an implicit conversion from ResetEverywhere toArrowAssoc[ResetEverywhere] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws(classOf[java.lang.CloneNotSupportedException])
- val components: List[PluginComponent]
- Definition Classes
- ResetEverywhere → Plugin
- val description: String
- Definition Classes
- ResetEverywhere → Plugin
- def ensuring(cond: (ResetEverywhere) ⇒ Boolean, msg: ⇒ Any): ResetEverywhere
- Implicit
- This member is added by an implicit conversion from ResetEverywhere toEnsuring[ResetEverywhere] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (ResetEverywhere) ⇒ Boolean): ResetEverywhere
- Implicit
- This member is added by an implicit conversion from ResetEverywhere toEnsuring[ResetEverywhere] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: ⇒ Any): ResetEverywhere
- Implicit
- This member is added by an implicit conversion from ResetEverywhere toEnsuring[ResetEverywhere] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): ResetEverywhere
- Implicit
- This member is added by an implicit conversion from ResetEverywhere toEnsuring[ResetEverywhere] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ResetEverywhere toStringFormat[ResetEverywhere] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- final def getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val global: Global
- Definition Classes
- ResetEverywhere → Plugin
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def init(options: List[String], error: (String) ⇒ Unit): Boolean
- Definition Classes
- ResetEverywhere → Plugin
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val name: String
- Definition Classes
- ResetEverywhere → Plugin
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def options: List[String]
- Definition Classes
- Plugin
- val optionsHelp: Option[String]
- Definition Classes
- Plugin
- final def synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws(classOf[java.lang.InterruptedException])
- def →[B](y: B): (ResetEverywhere, B)
- Implicit
- This member is added by an implicit conversion from ResetEverywhere toArrowAssoc[ResetEverywhere] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc