Package gw.lang.parser.coercers
Class BaseBoxedCoercer
- java.lang.Object
-
- gw.lang.parser.coercers.BaseCoercer
-
- gw.lang.parser.coercers.StandardCoercer
-
- gw.lang.parser.coercers.BaseBoxedCoercer
-
- All Implemented Interfaces:
ICoercer
- Direct Known Subclasses:
BooleanCoercer
,ByteCoercer
,CharCoercer
,DoubleCoercer
,FloatCoercer
,IntCoercer
,LongCoercer
,ShortCoercer
public abstract class BaseBoxedCoercer extends StandardCoercer
-
-
Field Summary
-
Fields inherited from interface gw.lang.parser.ICoercer
MAX_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description BaseBoxedCoercer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPriority(IType to, IType from)
-
Methods inherited from class gw.lang.parser.coercers.StandardCoercer
handlesNull, isCoercingDimensionWithSameType, isExplicitCoercion
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gw.lang.parser.ICoercer
coerceValue
-
-
-
-
Method Detail
-
getPriority
public int getPriority(IType to, IType from)
- 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.
-
-