Package jminusminus

Class NarrowReference

java.lang.Object
jminusminus.NarrowReference
All Implemented Interfaces:
Converter

class NarrowReference extends Object implements Converter
A narrowing reference converter.
  • Constructor Details

    • NarrowReference

      public NarrowReference(Type target)
      Constructs a narrowing reference converter.
      Parameters:
      target - the target type.
  • Method Details

    • codegen

      public void codegen(CLEmitter output)
      Emits code necessary to convert (cast) a source type to a target type.
      Specified by:
      codegen in interface Converter
      Parameters:
      output - the code emitter.