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