com.github.johnreedlol

Macro

object Macro

Scala specific debug methods.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Macro
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. object assertCode

    Same as Debug.assert, but prints the code instead of an error message.

    Same as Debug.assert, but prints the code instead of an error message.

    returns

    the string containing what was printed or what would have been printed if printing was enabled. You can pass this string into a logger.

    Examples:
    1. val one = 1; Debug.assertCode({one + 1 == 2}, 0) // 0 lines of stack trace

    2. ,
    3. val one = 1; Debug.assertCode{one + 1 == 2}

  6. object checkCode

    Same as Debug.check, but prints the code instead of an error message.

    Same as Debug.check, but prints the code instead of an error message.

    returns

    the string containing what was printed or what would have been printed if printing was enabled. You can pass this string into a logger.

    Examples:
    1. val one = 1; Debug.checkCode({one + 1 == 2}, 0) // 0 lines of stack trace

    2. ,
    3. val one = 1; Debug.checkCode{one + 1 == 2}

  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. object codeErr

    Same as Debug.err, but prints the code in the block, not just the result

    Same as Debug.err, but prints the code in the block, not just the result

    returns

    the string containing what was printed or what would have been printed if printing was enabled. You can pass this string into a logger.

    Examples:
    1. myVal = 3; Debug.codeErr(1 + 2 + myVal}, 3) // 3 lines of stack trace

    2. ,
    3. myVal = 3; Debug.codeErr{1 + 2 + myVal}

  9. object codeOut

    Same as Debug.out, but prints the code in the block, not just the result

    Same as Debug.out, but prints the code in the block, not just the result

    returns

    the string containing what was printed or what would have been printed if printing was enabled. You can pass this string into a logger.

    Examples:
    1. myVal = 3; Debug.codeOut(1 + 2 + myVal}, 3) // 3 lines of stack trace

    2. ,
    3. myVal = 3; Debug.codeOut{1 + 2 + myVal}

  10. def contentsErr[ContainedT](coll: GenTraversableOnce[ContainedT], start: Int = 0, numElements: Int = Int.MaxValue, numLines: Int = 1)(implicit tag: scala.reflect.api.JavaUniverse.WeakTypeTag[ContainedT]): String

    Traces the contents of a Scala container to standard error.

    Traces the contents of a Scala container to standard error. To convert a Java container into a Scala container, import collection.JavaConversions._ Note: The maximum number of elements it can print is 2 to the 32 elements.

    coll

    the Scala collection. TraversableLike is a base trait of all kinds of Scala collections.

    start

    the index of the first element to print. To work on all containers, index is counted using an iterator.

    numElements

    the number of elements you want to trace. Defaults to all elements in the collection (or 2 to the 32 elements)

    numLines

    the number of lines of stack trace.

    returns

    the string containing what was printed or what would have been printed if printing was enabled.

  11. def contentsOut[ContainedT](coll: GenTraversableOnce[ContainedT], start: Int = 0, numElements: Int = Int.MaxValue, numLines: Int = 1)(implicit tag: scala.reflect.api.JavaUniverse.WeakTypeTag[ContainedT]): String

    Traces the contents of a Scala container to standard out.

    Traces the contents of a Scala container to standard out. To convert a Java container into a Scala container, import collection.JavaConversions._ Note: The maximum number of elements it can print is 2 to the 32 elements.

    coll

    the Scala collection. TraversableLike is a base trait of all kinds of Scala collections.

    start

    the index of the first element to print. To work on all containers, index is counted using an iterator.

    numElements

    the number of elements you want to trace. Defaults to all elements in the collection (or 2 to the 32 elements)

    numLines

    the number of lines of stack trace.

    returns

    the string containing what was printed or what would have been printed if printing was enabled.

  12. object desugarErr

    Same as Debug.err, but prints the entire expression, not just the result

    Same as Debug.err, but prints the entire expression, not just the result

    returns

    the string containing what was printed or what would have been printed if printing was enabled. You can pass this string into a logger.

    Examples:
    1. Debug.desugarErr({val myVal = 3; 1 + 2 + myVal}, 3) // 3 lines of stack trace

    2. ,
    3. Debug.desugarErr{val myVal = 3; 1 + 2 + myVal}

  13. object desugarOut

    Same as Debug.out, but prints the whole expression not just its result

    Same as Debug.out, but prints the whole expression not just its result

    returns

    the string containing what was printed or what would have been printed if printing was enabled. You can pass this string into a logger.

    Examples:
    1. Debug.desugarOut({val myVal = 3; 1 + 2 + myVal}, 3) // 3 lines of stack trace

    2. ,
    3. Debug.desugarOut{val myVal = 3; 1 + 2 + myVal}

  14. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def getCollectionAsString(coll: GenTraversableOnce[_], start: Int = 0, numElements: Int = Int.MaxValue): String

    Gets the collection as a string of n elements from start to start + numElements

    Gets the collection as a string of n elements from start to start + numElements

    Attributes
    protected[com.github.johnreedlol]
  19. def hashCode(): Int

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

    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped