ILOG JRules

ilog.rules.brl.translation.codegen
Class IlrAbstractValueTranslator

java.lang.Object
  extended by ilog.rules.brl.translation.codegen.IlrAbstractValueTranslator
All Implemented Interfaces:
IlrValueTranslator, IlrValueTranslatorExtension
Direct Known Subclasses:
IlrValueTranslatorAdapter

public abstract class IlrAbstractValueTranslator
extends Object
implements IlrValueTranslatorExtension

Abstract implementation of IlrValueTranslatorExtension. By default, its method translateValue(String, IlrConcept, IlrVocabulary) (from IlrValueTranslator) will call the method IlrValueTranslatorExtension.translateValue(String, IlrConcept, ilog.rules.brl.syntaxtree.IlrSyntaxTree.Node, IlrVocabulary) with null as AST node.

Note: Implementors of value translators should derive this abstract class, instead of implementing IlrValueTranslator or IlrValueTranslatorExtension directly.

Since:
JRules 6.1.3

Constructor Summary
IlrAbstractValueTranslator()
           
 
Method Summary
 String translateValue(String value, IlrConcept concept, IlrVocabulary vocabulary)
          By default, this method calls the inherited method IlrValueTranslatorExtension.translateValue(String, IlrConcept, ilog.rules.brl.syntaxtree.IlrSyntaxTree.Node, IlrVocabulary) using null as AST node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.rules.brl.translation.codegen.IlrValueTranslatorExtension
translateValue
 
Methods inherited from interface ilog.rules.brl.translation.codegen.IlrValueTranslator
allowValueWrapping
 

Constructor Detail

IlrAbstractValueTranslator

public IlrAbstractValueTranslator()
Method Detail

translateValue

public String translateValue(String value,
                             IlrConcept concept,
                             IlrVocabulary vocabulary)
By default, this method calls the inherited method IlrValueTranslatorExtension.translateValue(String, IlrConcept, ilog.rules.brl.syntaxtree.IlrSyntaxTree.Node, IlrVocabulary) using null as AST node.

Specified by:
translateValue in interface IlrValueTranslator
Parameters:
value - The string representing the value, as it is saved in the abstract syntax tree.
concept - The concept.
vocabulary - The vocabulary.
Returns:
The IRL code generated for that value.

ILOG JRules