object control
Provides macro implementations of the stock
control structures attempt
, and repeat
for use
in contexts where maximum performance
is required. The inlining of the stock
methods is nearly always good enough.
*
- Since
1.1R4
- Alphabetic
- By Inheritance
- control
- 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
-
macro
def
ATTEMPT[T](body: T)(alt: T): T
Evaluate
body
and return its value unless an exception ex is thrown.Evaluate
body
and return its value unless an exception ex is thrown. If ex is aStopped
then evaluate and return the value ofalt
, otherwise re-throw ex. - def ATTEMPTMACRO(c: Context)(body: scala.reflect.macros.blackbox.Context.Tree)(alt: scala.reflect.macros.blackbox.Context.Tree): scala.reflect.macros.blackbox.Context.Tree
-
macro
def
REPEAT(body: Unit): Unit
Iterate
body
.Iterate
body
. If an exception ex is thrown, then stop the iteration, and unless ex is aStopped
re-throw ex. -
macro
def
REPEAT(guard: Boolean)(body: Unit): Unit
Iterate
body
while the evaluation ofguard
yieldstrue
.Iterate
body
while the evaluation ofguard
yieldstrue
. If an exception ex is thrown, then stop the iteration, then unless ex is aStopped
re-throw ex. - def REPEATMACRO(c: Context)(guard: scala.reflect.macros.blackbox.Context.Tree)(body: scala.reflect.macros.blackbox.Context.Tree): scala.reflect.macros.Universe.Tree
- def UNGUARDEDREPEATMACRO(c: Context)(body: scala.reflect.macros.blackbox.Context.Tree): scala.reflect.macros.Universe.Tree
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )