public class IlrIRLNumberValueTranslator
extends java.lang.Object
implements ilog.rules.brl.translation.codegen.IlrValueTranslatorExtension2
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowValueWrapping()
Indicates if the text returned by
IlrValueTranslator.translateValue(String, IlrConcept, IlrVocabulary) can be wrapped by the CodeGenerator. |
java.lang.String |
translateValue(java.lang.String value,
IlrConcept concept,
IlrSyntaxTree.Node node,
IlrVocabulary vocabulary)
Generates IRL code from a value string.
|
java.lang.String |
translateValue(java.lang.String value,
IlrConcept concept,
IlrSyntaxTree.Node node,
java.lang.String expectedType,
IlrVocabulary vocabulary) |
java.lang.String |
translateValue(java.lang.String value,
IlrConcept concept,
IlrVocabulary vocabulary)
If the value contains a dot, then force it to be a double.
|
public java.lang.String translateValue(java.lang.String value,
IlrConcept concept,
IlrSyntaxTree.Node node,
IlrVocabulary vocabulary)
IlrValueTranslatorExtensionvalue - The string representing the value, as it is saved in the abstract syntax tree.concept - The concept.node - The node from the AST, corresponding to the value to translate (may be null when
called from legacy code).vocabulary - The vocabulary.public java.lang.String translateValue(java.lang.String value,
IlrConcept concept,
IlrSyntaxTree.Node node,
java.lang.String expectedType,
IlrVocabulary vocabulary)
public java.lang.String translateValue(java.lang.String value,
IlrConcept concept,
IlrVocabulary vocabulary)
value - The string representing the value, as it is saved in the abstract syntax tree.concept - The concept.vocabulary - The vocabulary.public boolean allowValueWrapping()
IlrValueTranslatorIlrValueTranslator.translateValue(String, IlrConcept, IlrVocabulary) can be wrapped by the CodeGenerator.© Copyright IBM Corp. 1987, 2017