Package jminusminus

Interface Converter

All Known Implementing Classes:
Boxing, I2C, Identity, NarrowReference, UnBoxing

interface Converter
A Converter encapsulates any (possibly none) code necessary to perform a cast operation.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Converter
    For identity conversion (no run-time code needed).
    static final Converter
    For widening conversion (no run-time code needed).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Emits code necessary to convert (cast) a source type to a target type.
  • Field Details

    • Identity

      static final Converter Identity
      For identity conversion (no run-time code needed).
    • WidenReference

      static final Converter WidenReference
      For widening conversion (no run-time code needed).
  • Method Details

    • codegen

      void codegen(CLEmitter output)
      Emits code necessary to convert (cast) a source type to a target type.
      Parameters:
      output - the code emitter.