com.opendatagroup.hadrian.jvmcompiler

W

object W

Collection of utility functions to make Java code or be called by Java for routine tasks.

Don't ask why it's called W.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. W
  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: AnyRef): Boolean

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

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

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

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

    Definition Classes
    Any
  6. def asBool(x: AnyRef): Boolean

    Convert any boolean x as a raw primitive boolean.

  7. def asBool(x: Boolean): Boolean

    Convert any boolean x as a raw primitive boolean.

  8. def asBool(x: Boolean): Boolean

    Convert any boolean x as a raw primitive boolean.

  9. def asDouble(x: AnyRef): Double

    Convert any number x as a raw primitive double.

  10. def asDouble(x: Double): Double

    Convert any number x as a raw primitive double.

  11. def asDouble(x: Float): Double

    Convert any number x as a raw primitive double.

  12. def asDouble(x: Long): Double

    Convert any number x as a raw primitive double.

  13. def asDouble(x: Integer): Double

    Convert any number x as a raw primitive double.

  14. def asDouble(x: Double): Double

    Convert any number x as a raw primitive double.

  15. def asDouble(x: Float): Double

    Convert any number x as a raw primitive double.

  16. def asDouble(x: Long): Double

    Convert any number x as a raw primitive double.

  17. def asDouble(x: Int): Double

    Convert any number x as a raw primitive double.

  18. def asFloat(x: AnyRef): Float

    Convert any number x as a raw primitive float.

  19. def asFloat(x: Float): Float

    Convert any number x as a raw primitive float.

  20. def asFloat(x: Long): Float

    Convert any number x as a raw primitive float.

  21. def asFloat(x: Integer): Float

    Convert any number x as a raw primitive float.

  22. def asFloat(x: Float): Float

    Convert any number x as a raw primitive float.

  23. def asFloat(x: Long): Float

    Convert any number x as a raw primitive float.

  24. def asFloat(x: Int): Float

    Convert any number x as a raw primitive float.

  25. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  26. def asInt(x: AnyRef): Int

    Convert any integer x as a raw primitive int.

  27. def asInt(x: Long): Int

    Convert any integer x as a raw primitive int.

  28. def asInt(x: Integer): Int

    Convert any integer x as a raw primitive int.

  29. def asInt(x: Long): Int

    Convert any integer x as a raw primitive int.

  30. def asInt(x: Int): Int

    Convert any integer x as a raw primitive int.

  31. def asJBool(x: AnyRef): Boolean

    Convert any boolean x as a boxed primitive boolean.

  32. def asJBool(x: Boolean): Boolean

    Convert any boolean x as a boxed primitive boolean.

  33. def asJBool(x: Boolean): Boolean

    Convert any boolean x as a boxed primitive boolean.

  34. def asJDouble(x: AnyRef): Double

    Convert any number x as a boxed primtive double.

  35. def asJDouble(x: Double): Double

    Convert any number x as a boxed primtive double.

  36. def asJDouble(x: Float): Double

    Convert any number x as a boxed primtive double.

  37. def asJDouble(x: Long): Double

    Convert any number x as a boxed primtive double.

  38. def asJDouble(x: Integer): Double

    Convert any number x as a boxed primtive double.

  39. def asJDouble(x: Double): Double

    Convert any number x as a boxed primtive double.

  40. def asJDouble(x: Float): Double

    Convert any number x as a boxed primtive double.

  41. def asJDouble(x: Long): Double

    Convert any number x as a boxed primtive double.

  42. def asJDouble(x: Int): Double

    Convert any number x as a boxed primtive double.

  43. def asJFloat(x: AnyRef): Float

    Convert any number x as a boxed primitive float.

  44. def asJFloat(x: Float): Float

    Convert any number x as a boxed primitive float.

  45. def asJFloat(x: Long): Float

    Convert any number x as a boxed primitive float.

  46. def asJFloat(x: Integer): Float

    Convert any number x as a boxed primitive float.

  47. def asJFloat(x: Float): Float

    Convert any number x as a boxed primitive float.

  48. def asJFloat(x: Long): Float

    Convert any number x as a boxed primitive float.

  49. def asJFloat(x: Int): Float

    Convert any number x as a boxed primitive float.

  50. def asJInt(x: AnyRef): Integer

    Convert any integer x as a boxed primitive int.

  51. def asJInt(x: Long): Integer

    Convert any integer x as a boxed primitive int.

  52. def asJInt(x: Integer): Integer

    Convert any integer x as a boxed primitive int.

  53. def asJInt(x: Long): Integer

    Convert any integer x as a boxed primitive int.

  54. def asJInt(x: Int): Integer

    Convert any integer x as a boxed primitive int.

  55. def asJLong(x: AnyRef): Long

    Convert any integer x as a boxed primitive long.

  56. def asJLong(x: Long): Long

    Convert any integer x as a boxed primitive long.

  57. def asJLong(x: Integer): Long

    Convert any integer x as a boxed primitive long.

  58. def asJLong(x: Long): Long

    Convert any integer x as a boxed primitive long.

  59. def asJLong(x: Int): Long

    Convert any integer x as a boxed primitive long.

  60. def asLong(x: AnyRef): Long

    Convert any integer x as a raw primitive long.

  61. def asLong(x: Long): Long

    Convert any integer x as a raw primitive long.

  62. def asLong(x: Integer): Long

    Convert any integer x as a raw primitive long.

  63. def asLong(x: Long): Long

    Convert any integer x as a raw primitive long.

  64. def asLong(x: Int): Long

    Convert any integer x as a raw primitive long.

  65. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  66. def containsException(err: PFAUserException, filters: Array[String]): Boolean

    Determine if user-defined exception err is included in a list of filters.

    Determine if user-defined exception err is included in a list of filters.

    User-defined exceptions do not necessarily have code numbers; in which case, only text strings are checked.

    err

    the user-defined exception to check

    filters

    exception texts or code numbers (as strings)

    returns

    true if err is included in the filters; false otherwise

  67. def containsException(err: PFARuntimeException, filters: Array[String]): Boolean

    Determine if runtime exception err is included in a list of filters.

    Determine if runtime exception err is included in a list of filters.

    err

    the runtime exception to check

    filters

    exception texts or code numbers (as strings)

    returns

    true if err is included in the filters; false otherwise

  68. def do2[X, Y](x: X, y: Y): Y

    Take two expressions and return the value of the second one.

  69. def either[X](value: Either[Exception, X], arrayErrStr: String, arrayErrCode: Int, mapErrStr: String, mapErrCode: Int, fcnName: String, pos: Option[String]): X

    Take a Scala Either[Exception, X] and throw the exception, if it contains an exception, or return the value if it contains a value.

    Take a Scala Either[Exception, X] and throw the exception, if it contains an exception, or return the value if it contains a value.

    If the exception is java.lang.IndexOutOfBoundsException or java.util.NoSuchElementException, use the given error strings and error codes to make an informative PFARuntimeException.

    value

    the tagged union of an exception or value

    arrayErrStr

    string to use in the case of a java.lang.IndexOutOfBoundsException

    arrayErrCode

    code to use in the case of a java.lang.IndexOutOfBoundsException

    mapErrStr

    string to use in the case of a java.util.NoSuchElementException

    mapErrCode

    code to use in the case of a java.util.NoSuchElementException

    fcnName

    function name to report in the PFARuntimeException

    pos

    source file location from the locator mark

  70. def either[X](value: Either[Exception, X]): X

    Take a Scala Either[Exception, X] and throw the exception, if it contains an exception, or return the value if it contains a value.

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

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

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

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

    Definition Classes
    AnyRef → Any
  75. def getOrElse(map: Map[String, AnyRef], get: String, orElse: AnyRef): AnyRef

    Attempt to extract a value by key from a map, returning orElse if it's not there.

    Attempt to extract a value by key from a map, returning orElse if it's not there.

    map

    the map to extract from

    get

    the key to extract

    orElse

    the alternate value

  76. def getOrFailPool(map: Map[String, AnyRef], get: String, name: String, poolErrStr: String, poolErrCode: Int, fcnName: String, pos: Option[String]): AnyRef

    Attempt to extract a value by key from a map (assuming it's a pool), raising a PFARuntimeException (with appropriate error string and code) if it's not there.

    Attempt to extract a value by key from a map (assuming it's a pool), raising a PFARuntimeException (with appropriate error string and code) if it's not there.

    map

    the map to extract from

    get

    the key to extract

    name

    the name of the pool (not used)

    poolErrStr

    string to use for the PFARuntimeException

    poolErrCode

    code to use for the PFARuntimeException

    fcnName

    function name to use for the PFARuntimeException

    pos

    source file location from the locator mark

  77. def hashCode(): Int

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

    Definition Classes
    Any
  79. def maybeJDouble(x: AnyRef): AnyRef

    Convert object x into a boxed primtive double if it is a boxed number.

  80. def maybeJFloat(x: AnyRef): AnyRef

    Convert object x into a boxed primtive float if it is a boxed number.

  81. def maybeJInt(x: AnyRef): AnyRef

    Convert an object x into a boxed primitive int if it is a boxed number.

  82. def maybeJLong(x: AnyRef): AnyRef

    Convert object x into a boxed primitive long if it is a boxed number.

  83. def n[X](x: X): Void

    Take an expression and return null.

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

    Definition Classes
    AnyRef
  85. def nn[X, Y](x: X, y: Y): Void

    Take two expressions and return null.

  86. final def notify(): Unit

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

    Definition Classes
    AnyRef
  88. def s[X](x: X): Unit

    Take an expression and return nothing (Unit, like a Java void function).

  89. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  90. def toString(): String

    Definition Classes
    AnyRef → Any
  91. def trycatch[X <: AnyRef](f: () ⇒ X, hasFilter: Boolean, filters: Array[String]): X

    Try to evaluate function f and catch any PFA exceptions.

    Try to evaluate function f and catch any PFA exceptions.

    f

    the function to evaluate (code wrapped in a Scala function object)

    hasFilter

    if true, only catch exceptions referred to in filters; if false, catch any PFARuntimeException or PFAUserException

    filters

    array of exceptions to catch, referred to by exception text or code number, represented as a string

  92. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  95. def wrapExpr(x: String, avroType: AvroType, boxed: Boolean): String

    Create Java code that casts Strings or converts numbers to a given type.

    Create Java code that casts Strings or converts numbers to a given type.

    x

    Java code for an expression that needs to be cast or converted

    avroType

    type to cast or convert it into

    boxed

    if true, produce boxed primitives; if false, produce raw primitives

    returns

    Java code as a String

Inherited from AnyRef

Inherited from Any

Ungrouped