public class MetaTypeToClassCoercer extends BaseCoercer implements IResolvingCoercer
MAX_PRIORITY| Constructor and Description |
|---|
MetaTypeToClassCoercer() |
| Modifier and Type | Method and Description |
|---|---|
Object |
coerceValue(IType typeToCoerceTo,
Object value) |
int |
getPriority(IType to,
IType from) |
boolean |
handlesNull() |
static MetaTypeToClassCoercer |
instance() |
boolean |
isExplicitCoercion() |
IType |
resolveType(IType target,
IType source)
This method should produce a more appropriately parameterized type for the given target type for this
coercion.
|
public Object coerceValue(IType typeToCoerceTo, Object value)
coerceValue in interface ICoercerpublic boolean isExplicitCoercion()
isExplicitCoercion in interface ICoercerpublic boolean handlesNull()
handlesNull in interface ICoercerpublic IType resolveType(IType target, IType source)
IResolvingCoercerThis method should produce a more appropriately parameterized type for the given target type for this
coercion. This allows a coercion to communicate type information through the coercion process. An example
is the MetaType-to-Class coercion. MetaType
If no more appropriate inference type exists, this method should return the source type.
resolveType in interface IResolvingCoercertarget - typepublic int getPriority(IType to, IType from)
getPriority in interface ICoercerpublic static MetaTypeToClassCoercer instance()
Copyright © 2018. All rights reserved.