Package gw.lang.parser.coercers
Class BigIntegerCoercer
java.lang.Object
gw.lang.parser.coercers.BaseCoercer
gw.lang.parser.coercers.StandardCoercer
gw.lang.parser.coercers.BigIntegerCoercer
- All Implemented Interfaces:
ICoercer
-
Field Summary
FieldsFields inherited from interface gw.lang.parser.ICoercer
MAX_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncoerceValue
(IType typeToCoerceTo, Object value) int
getPriority
(IType to, IType from) static BigIntegerCoercer
instance()
Methods inherited from class gw.lang.parser.coercers.StandardCoercer
handlesNull, isCoercingDimensionWithSameType, isExplicitCoercion
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
BigIntegerCoercer
public BigIntegerCoercer()
-
-
Method Details
-
coerceValue
-
instance
-
getPriority
- Specified by:
getPriority
in interfaceICoercer
- Overrides:
getPriority
in classStandardCoercer
- Returns:
- a value between 0 and MAX_PRIORITY, inclusive that indicates the priority of this coercer when resolving overloaded methods. Typically a coercer should return 0, but coercers that have a high affinity between the target and coerced type, such as primitives, can have higher priorities.
-