scala.tools.reflect

Shield

trait Shield extends AnyRef

A support class for simplifying the otherwise disbelief-inspiring process of working with classes completely reflectively. This is the case with e.g. sun.misc.Signal* due to environments which are antagonistic to their use. See SignalManager for an example.

The name "Shield" is a reference to shielding the JVM from knowledge of what we're doing.

Source
Shield.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Shield
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringfmt
  2. by any2stringadd
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def classLoader: ScalaClassLoader

  2. abstract def className: String

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from Shield to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (Shield, B)

    Implicit information
    This member is added by an implicit conversion from Shield to ArrowAssoc[Shield] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. implicit def boxedUnit(x: Unit): AnyRef

    This is handy because all reflective calls want back an AnyRef but we will often be generating Units.

    This is handy because all reflective calls want back an AnyRef but we will often be generating Units.

    Attributes
    protected
  10. lazy val clazz: Class[_]

  11. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def constructor(paramTypes: Class[_]*): Constructor[AnyRef]

  13. def ensuring(cond: (Shield) ⇒ Boolean, msg: ⇒ Any): Shield

    Implicit information
    This member is added by an implicit conversion from Shield to Ensuring[Shield] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (Shield) ⇒ Boolean): Shield

    Implicit information
    This member is added by an implicit conversion from Shield to Ensuring[Shield] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): Shield

    Implicit information
    This member is added by an implicit conversion from Shield to Ensuring[Shield] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): Shield

    Implicit information
    This member is added by an implicit conversion from Shield to Ensuring[Shield] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  19. def field(name: String): Field

  20. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  21. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from Shield to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  22. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. def matchingMethods(name: String, arity: Int): List[Method]

  26. def method(name: String, arity: Int): Method

  27. lazy val methods: List[Method]

  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. def onError[T >: Null](msg: String): T

  32. val self: Any

    Implicit information
    This member is added by an implicit conversion from Shield to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
  33. val self: Any

    Implicit information
    This member is added by an implicit conversion from Shield to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  35. def toString(): String

    Definition Classes
    AnyRef → Any
  36. def uniqueMethod(name: String, arity: Int): Method

  37. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  38. final def wait(arg0: Long, arg1: Int): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  40. def [B](y: B): (Shield, B)

    Implicit information
    This member is added by an implicit conversion from Shield to ArrowAssoc[Shield] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def x: Shield

    Implicit information
    This member is added by an implicit conversion from Shield to ArrowAssoc[Shield] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: Shield

    Implicit information
    This member is added by an implicit conversion from Shield to Ensuring[Shield] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringfmt from Shield to StringFormat

Inherited by implicit conversion any2stringadd from Shield to StringAdd

Inherited by implicit conversion any2ArrowAssoc from Shield to ArrowAssoc[Shield]

Inherited by implicit conversion any2Ensuring from Shield to Ensuring[Shield]