Convert any boolean x
as a raw primitive boolean.
Convert any boolean x
as a raw primitive boolean.
Convert any boolean x
as a raw primitive boolean.
Convert any number x
as a raw primitive double.
Convert any number x
as a raw primitive double.
Convert any number x
as a raw primitive double.
Convert any number x
as a raw primitive double.
Convert any number x
as a raw primitive double.
Convert any number x
as a raw primitive double.
Convert any number x
as a raw primitive double.
Convert any number x
as a raw primitive double.
Convert any number x
as a raw primitive double.
Convert any number x
as a raw primitive float.
Convert any number x
as a raw primitive float.
Convert any number x
as a raw primitive float.
Convert any number x
as a raw primitive float.
Convert any number x
as a raw primitive float.
Convert any number x
as a raw primitive float.
Convert any number x
as a raw primitive float.
Convert any integer x
as a raw primitive int.
Convert any integer x
as a raw primitive int.
Convert any integer x
as a raw primitive int.
Convert any integer x
as a raw primitive int.
Convert any integer x
as a raw primitive int.
Convert any boolean x
as a boxed primitive boolean.
Convert any boolean x
as a boxed primitive boolean.
Convert any boolean x
as a boxed primitive boolean.
Convert any number x
as a boxed primtive double.
Convert any number x
as a boxed primtive double.
Convert any number x
as a boxed primtive double.
Convert any number x
as a boxed primtive double.
Convert any number x
as a boxed primtive double.
Convert any number x
as a boxed primtive double.
Convert any number x
as a boxed primtive double.
Convert any number x
as a boxed primtive double.
Convert any number x
as a boxed primtive double.
Convert any number x
as a boxed primitive float.
Convert any number x
as a boxed primitive float.
Convert any number x
as a boxed primitive float.
Convert any number x
as a boxed primitive float.
Convert any number x
as a boxed primitive float.
Convert any number x
as a boxed primitive float.
Convert any number x
as a boxed primitive float.
Convert any integer x
as a boxed primitive int.
Convert any integer x
as a boxed primitive int.
Convert any integer x
as a boxed primitive int.
Convert any integer x
as a boxed primitive int.
Convert any integer x
as a boxed primitive int.
Convert any integer x
as a boxed primitive long.
Convert any integer x
as a boxed primitive long.
Convert any integer x
as a boxed primitive long.
Convert any integer x
as a boxed primitive long.
Convert any integer x
as a boxed primitive long.
Convert any integer x
as a raw primitive long.
Convert any integer x
as a raw primitive long.
Convert any integer x
as a raw primitive long.
Convert any integer x
as a raw primitive long.
Convert any integer x
as a raw primitive long.
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.
the user-defined exception to check
exception texts or code numbers (as strings)
true
if err
is included in the filters
; false
otherwise
Determine if runtime exception err
is included in a list of filters
.
Determine if runtime exception err
is included in a list of filters
.
the runtime exception to check
exception texts or code numbers (as strings)
true
if err
is included in the filters
; false
otherwise
Take two expressions and return the value of the second one.
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.
the tagged union of an exception or value
string to use in the case of a java.lang.IndexOutOfBoundsException
code to use in the case of a java.lang.IndexOutOfBoundsException
string to use in the case of a java.util.NoSuchElementException
code to use in the case of a java.util.NoSuchElementException
function name to report in the PFARuntimeException
source file location from the locator mark
Take a Scala Either[Exception, X]
and throw the exception, if it contains an exception, or return the value if it contains a value.
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.
the map to extract from
the key to extract
the alternate value
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.
the map to extract from
the key to extract
the name of the pool (not used)
string to use for the PFARuntimeException
code to use for the PFARuntimeException
function name to use for the PFARuntimeException
source file location from the locator mark
Convert object x
into a boxed primtive double if it is a boxed number.
Convert object x
into a boxed primtive float if it is a boxed number.
Convert an object x
into a boxed primitive int if it is a boxed number.
Convert object x
into a boxed primitive long if it is a boxed number.
Take an expression and return null
.
Take two expressions and return null
.
Take an expression and return nothing (Unit
, like a Java void function).
Try to evaluate function f
and catch any PFA exceptions.
Try to evaluate function f
and catch any PFA exceptions.
the function to evaluate (code wrapped in a Scala function object)
if true
, only catch exceptions referred to in filters
; if false
, catch any PFARuntimeException or PFAUserException
array of exceptions to catch, referred to by exception text or code number, represented as a 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.
Java code for an expression that needs to be cast or converted
type to cast or convert it into
if true
, produce boxed primitives; if false
, produce raw primitives
Java code as a String
Collection of utility functions to make Java code or be called by Java for routine tasks.
Don't ask why it's called
W
.