ilog.rules.brl.translation.codegen

Class IlrIRLCastValueTranslator

  • All Implemented Interfaces:
    IlrValueTranslator, IlrValueTranslatorExtension
    Direct Known Subclasses:
    IlrIRLCastStringValueTranslator


    public class IlrIRLCastValueTranslator
    extends IlrValueTranslatorAdapter
    Prints a cast of the value using a provided concept. This Value Translator is useful when creating new basic concepts that needs to be translated as a basic type in a compilation chain. For instance, if you define a Currency concept whose literal values are Numbers, you need to cast those literal values when generating the IRL representation. To generate this task, you need to define the following property or your concept:

    property valueTranslator.irl "ilog.rules.brl.translation.codegen.IlrIRLCastValueTranslator#Adapted(ilog.rules.brl.translation.codegen.IlrIRLNumberValueTranslator)"

    This property "adapt" with a cast the translation of numerical literal values of this concept.

© Copyright IBM Corp. 1987, 2017