public interface TypeRegistry
Modifier and Type | Method and Description |
---|---|
TypeValuePair |
convertTo(Type targetType,
TypeValuePair valuePair)
Checks whether the target type would accept the specified value object and value type.
|
ArrayCallback |
convertToArray(Type type,
java.lang.Object value) |
java.util.Date |
convertToDate(Type type1,
java.lang.Object value)
Converts the object of the given type into a date.
|
java.lang.Boolean |
convertToLogical(Type type1,
java.lang.Object value)
Converts the object of the given type into a boolean.
|
java.lang.Number |
convertToNumber(Type type1,
java.lang.Object value)
Converts the object of the given type into a number.
|
NumberSequence |
convertToNumberSequence(Type type,
java.lang.Object value,
boolean strictTypeChecks)
Converts the given (type,value) pair into a numeric sequence.
|
Sequence |
convertToSequence(Type type,
java.lang.Object value) |
java.lang.String |
convertToText(Type type1,
java.lang.Object value)
(This conversion is used by the operator implementations.)
|
ExtendedComparator |
getComparator(Type type1,
Type type2)
Returns an comparator for the given types.
|
Type |
guessTypeOfObject(java.lang.Object o) |
ExtendedComparator getComparator(Type type1, Type type2)
type1
- type2
- java.lang.Number convertToNumber(Type type1, java.lang.Object value) throws EvaluationException
type1
- value
- TypeConversionException
- if the type cannot be represented as number.EvaluationException
java.lang.String convertToText(Type type1, java.lang.Object value) throws EvaluationException
type1
- value
- TypeConversionException
EvaluationException
java.lang.Boolean convertToLogical(Type type1, java.lang.Object value) throws EvaluationException
type1
- value
- EvaluationException
java.util.Date convertToDate(Type type1, java.lang.Object value) throws EvaluationException
type1
- value
- EvaluationException
NumberSequence convertToNumberSequence(Type type, java.lang.Object value, boolean strictTypeChecks) throws EvaluationException
type
- value
- strictTypeChecks
- TypeConversionException
EvaluationException
Sequence convertToSequence(Type type, java.lang.Object value) throws EvaluationException
EvaluationException
ArrayCallback convertToArray(Type type, java.lang.Object value) throws EvaluationException
EvaluationException
TypeValuePair convertTo(Type targetType, TypeValuePair valuePair) throws EvaluationException
targetType
- valuePair
- EvaluationException
Type guessTypeOfObject(java.lang.Object o)