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 to any2stringadd[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 to ArrowAssoc[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
augmentManifest(file: AbstractFile, manifest: Manifest): Unit
- Definition Classes
- Plugin
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
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 to Ensuring[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 to Ensuring[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 to Ensuring[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 to Ensuring[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
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ResetEverywhere to StringFormat[ResetEverywhere] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
val
global: Global
- Definition Classes
- ResetEverywhere → Plugin
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
init(options: List[String], error: (String) ⇒ Unit): Boolean
- Definition Classes
- 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() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
options: List[String]
- Definition Classes
- Plugin
-
val
optionsHelp: Option[String]
- Definition Classes
- Plugin
-
def
processOptions(options: List[String], error: (String) ⇒ Unit): Unit
- Definition Classes
- Plugin
- Annotations
- @deprecatedOverriding( "use Plugin#init instead" , "2.11.0" )
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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( ... )
-
def
writeAdditionalOutputs(writer: OutputFileWriter): Unit
- Definition Classes
- Plugin
-
def
→[B](y: B): (ResetEverywhere, B)
- Implicit
- This member is added by an implicit conversion from ResetEverywhere to ArrowAssoc[ResetEverywhere] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc