Class ArrayCaster
java.lang.Object
ortus.boxlang.runtime.dynamic.casters.ArrayCaster
- All Implemented Interfaces:
IBoxCaster
I handle casting anything to a Array
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CastAttempt
<Array> Tests to see if the value can be cast to an Array.static Array
Used to cast anything to an Array, throwing exception if we failstatic Array
Used to cast anything to an Array
-
Constructor Details
-
ArrayCaster
public ArrayCaster()
-
-
Method Details
-
attempt
Tests to see if the value can be cast to an Array. Returns aCastAttempt<T>
which will contain the result if casting was successfull , or can be interrogated to proceed otherwise.- Parameters:
object
- The value to cast to an Array- Returns:
- The Array value
-
cast
Used to cast anything to an Array, throwing exception if we fail- Parameters:
object
- The value to cast to an Array- Returns:
- The Array value
-
cast
Used to cast anything to an Array- Parameters:
object
- The value to cast to an Arrayfail
- True to throw exception when failing.- Returns:
- The Array value
-