- All Implemented Interfaces:
Converter
A narrowing reference converter.
-
-
Constructor Summary
Constructors
Constructs a narrowing reference converter.
-
Method Summary
void
Emits code necessary to convert (cast) a source type to a target type.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
NarrowReference
public NarrowReference(Type target)
Constructs a narrowing reference converter.
- Parameters:
target
- the target type.
-
Method Details
-
codegen
Emits code necessary to convert (cast) a source type to a target type.
- Specified by:
codegen
in interface Converter
- Parameters:
output
- the code emitter.