object CompileTimeAssertions extends CompileTimeAssertions
Companion object that facilitates the importing of CompileTimeAssertions members as
an alternative to mixing in the trait.
- Alphabetic
- By Inheritance
- CompileTimeAssertions
- CompileTimeAssertions
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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 clone(): AnyRef- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
 
-    def ensureValidCharLiteral(c: Context)(value: scala.reflect.macros.whitebox.Context.Expr[Char], notValidMsg: String, notLiteralMsg: String)(isValid: (Char) => Boolean): UnitEnsures a given expression of type Charis a literal with a valid value according to a given validation function.Ensures a given expression of type Charis a literal with a valid value according to a given validation function.If the given Charexpression is a literal whose value satisfies the given validation function, this method will return normally. Otherwise, if the givenCharexpression is not a literal, this method will complete abruptly with an exception whose detail message includes theStringpassed asnotLiteralMsg. Otherwise, the givenCharexpression is a literal that does not satisfy the given validation function, so this method will complete abruptly with an exception whose detail message includes theStringpassed asnotValidMsg.This method is intended to be invoked at compile time from macros. When called from a macro, exceptions thrown by this method will result in compiler errors. The detail message of the thrown exception will appear as the compiler error message. - c
- the compiler context for this assertion 
- value
- the - Charexpression to validate
- notValidMsg
- a - Stringmessage to include in the exception thrown if the expression is a literal, but not valid
- notLiteralMsg
- a - Stringmessage to include in the exception thrown if the expression is not a literal
- isValid
- a function used to validate a literal value parsed from the given expression 
 - Definition Classes
- CompileTimeAssertions
 
-    def ensureValidDoubleLiteral(c: Context)(value: scala.reflect.macros.whitebox.Context.Expr[Double], notValidMsg: String, notLiteralMsg: String)(isValid: (Double) => Boolean): UnitEnsures a given expression of type Doubleis a literal with a valid value according to a given validation function.Ensures a given expression of type Doubleis a literal with a valid value according to a given validation function.If the given Doubleexpression is a literal whose value satisfies the given validation function, this method will return normally. Otherwise, if the givenDoubleexpression is not a literal, this method will complete abruptly with an exception whose detail message includes theStringpassed asnotLiteralMsg. Otherwise, the givenDoubleexpression is a literal that does not satisfy the given validation function, so this method will complete abruptly with an exception whose detail message includes theStringpassed asnotValidMsg.This method is intended to be invoked at compile time from macros. When called from a macro, exceptions thrown by this method will result in compiler errors. The detail message of the thrown exception will appear as the compiler error message. - c
- the compiler context for this assertion 
- value
- the - Doubleexpression to validate
- notValidMsg
- a - Stringmessage to include in the exception thrown if the expression is a literal, but not valid
- notLiteralMsg
- a - Stringmessage to include in the exception thrown if the expression is not a literal
- isValid
- a function used to validate a literal value parsed from the given expression 
 - Definition Classes
- CompileTimeAssertions
 
-    def ensureValidFloatLiteral(c: Context)(value: scala.reflect.macros.whitebox.Context.Expr[Float], notValidMsg: String, notLiteralMsg: String)(isValid: (Float) => Boolean): UnitEnsures a given expression of type Floatis a literal with a valid value according to a given validation function.Ensures a given expression of type Floatis a literal with a valid value according to a given validation function.If the given Floatexpression is a literal whose value satisfies the given validation function, this method will return normally. Otherwise, if the givenFloatexpression is not a literal, this method will complete abruptly with an exception whose detail message includes theStringpassed asnotLiteralMsg. Otherwise, the givenFloatexpression is a literal that does not satisfy the given validation function, so this method will complete abruptly with an exception whose detail message includes theStringpassed asnotValidMsg.This method is intended to be invoked at compile time from macros. When called from a macro, exceptions thrown by this method will result in compiler errors. The detail message of the thrown exception will appear as the compiler error message. - c
- the compiler context for this assertion 
- value
- the - Floatexpression to validate
- notValidMsg
- a - Stringmessage to include in the exception thrown if the expression is a literal, but not valid
- notLiteralMsg
- a - Stringmessage to include in the exception thrown if the expression is not a literal
- isValid
- a function used to validate a literal value parsed from the given expression 
 - Definition Classes
- CompileTimeAssertions
 
-    def ensureValidIntLiteral(c: Context)(value: scala.reflect.macros.whitebox.Context.Expr[Int], notValidMsg: String, notLiteralMsg: String)(isValid: (Int) => Boolean): UnitEnsures a given expression of type Intis a literal with a valid value according to a given validation function.Ensures a given expression of type Intis a literal with a valid value according to a given validation function.If the given Intexpression is a literal whose value satisfies the given validation function, this method will return normally. Otherwise, if the givenIntexpression is not a literal, this method will complete abruptly with an exception whose detail message includes theStringpassed asnotLiteralMsg. Otherwise, the givenIntexpression is a literal that does not satisfy the given validation function, so this method will complete abruptly with an exception whose detail message includes theStringpassed asnotValidMsg.This method is intended to be invoked at compile time from macros. When called from a macro, exceptions thrown by this method will result in compiler errors. The detail message of the thrown exception will appear as the compiler error message. - c
- the compiler context for this assertion 
- value
- the - Intexpression to validate
- notValidMsg
- a - Stringmessage to include in the exception thrown if the expression is a literal, but not valid
- notLiteralMsg
- a - Stringmessage to include in the exception thrown if the expression is not a literal
- isValid
- a function used to validate a literal value parsed from the given expression 
 - Definition Classes
- CompileTimeAssertions
 
-    def ensureValidLongLiteral(c: Context)(value: scala.reflect.macros.whitebox.Context.Expr[Long], notValidMsg: String, notLiteralMsg: String)(isValid: (Long) => Boolean): UnitEnsures a given expression of type Longis a literal with a valid value according to a given validation function.Ensures a given expression of type Longis a literal with a valid value according to a given validation function.If the given Longexpression is a literal whose value satisfies the given validation function, this method will return normally. Otherwise, if the givenLongexpression is not a literal, this method will complete abruptly with an exception whose detail message includes theStringpassed asnotLiteralMsg. Otherwise, the givenLongexpression is a literal that does not satisfy the given validation function, so this method will complete abruptly with an exception whose detail message includes theStringpassed asnotValidMsg.This method is intended to be invoked at compile time from macros. When called from a macro, exceptions thrown by this method will result in compiler errors. The detail message of the thrown exception will appear as the compiler error message. - c
- the compiler context for this assertion 
- value
- the - Longexpression to validate
- notValidMsg
- a - Stringmessage to include in the exception thrown if the expression is a literal, but not valid
- notLiteralMsg
- a - Stringmessage to include in the exception thrown if the expression is not a literal
- isValid
- a function used to validate a literal value parsed from the given expression 
 - Definition Classes
- CompileTimeAssertions
 
-    def ensureValidStringLiteral(c: Context)(value: scala.reflect.macros.whitebox.Context.Expr[String], notValidMsg: String, notLiteralMsg: String)(isValid: (String) => Boolean): UnitEnsures a given expression of type Stringis a literal with a valid value according to a given validation function.Ensures a given expression of type Stringis a literal with a valid value according to a given validation function.If the given Stringexpression is a literal whose value satisfies the given validation function, this method will return normally. Otherwise, if the givenStringexpression is not a literal, this method will complete abruptly with an exception whose detail message includes theStringpassed asnotLiteralMsg. Otherwise, the givenStringexpression is a literal that does not satisfy the given validation function, so this method will complete abruptly with an exception whose detail message includes theStringpassed asnotValidMsg.This method is intended to be invoked at compile time from macros. When called from a macro, exceptions thrown by this method will result in compiler errors. The detail message of the thrown exception will appear as the compiler error message. - c
- the compiler context for this assertion 
- value
- the - Stringexpression to validate
- notValidMsg
- a - Stringmessage to include in the exception thrown if the expression is a literal, but not valid
- notLiteralMsg
- a - Stringmessage to include in the exception thrown if the expression is not a literal
- isValid
- a function used to validate a literal value parsed from the given expression 
 - Definition Classes
- CompileTimeAssertions
 
-   final  def eq(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-    def equals(arg0: AnyRef): Boolean- Definition Classes
- AnyRef → Any
 
-    def finalize(): Unit- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
 
-   final  def getClass(): Class[_ <: AnyRef]- Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
-    def hashCode(): Int- Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
-   final  def isInstanceOf[T0]: Boolean- Definition Classes
- Any
 
-   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()
 
-   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
- @throws(classOf[java.lang.InterruptedException]) @native()