ilog.rules.brl.translation

Class IlrIntermediateForm

  • All Implemented Interfaces:
    java.io.Serializable


    public class IlrIntermediateForm
    extends IlrStatement
    implements java.io.Serializable
    Represents the intermediate form for code generation.

    The root of the intermediate form model is the class IlrRuleStatement.

    See Also:
    Serialized Form
    • Constructor Detail

      • IlrIntermediateForm

        public IlrIntermediateForm(IlrSyntaxTree.Node node,
                           IlrVocabulary vocabulary)
        Builds a new IlrIntermediateForm from the specified vocabulary.
        Parameters:
        node - the syntax tree root
        vocabulary - The vocabulary.
      • IlrIntermediateForm

        public IlrIntermediateForm(IlrVocabulary vocabulary)
        Deprecated. use the constructor taking a syntax tree node.
        Builds a new IlrIntermediateForm from the specified vocabulary
        Parameters:
        vocabulary - the vocabulary
    • Method Detail

      • getRuleStatement

        public IlrRuleStatement getRuleStatement()
        Deprecated. use getRuleStatements()
        Gets the rule statement of this intermediate form.
        Returns:
        The rule statement of this intermediate form.
      • setRuleStatement

        public void setRuleStatement(IlrRuleStatement rule)
        Deprecated. 
        Sets the rule statement of this intermediate form.
        Parameters:
        rule - The rule statement.
      • addRuleStatement

        public void addRuleStatement(IlrRuleStatement rule)
        Add a rule statement to this intermediate form
        Parameters:
        rule -
      • getRuleStatements

        public java.util.List getRuleStatements()
        Get the list of rule statements associated to this intermediate form.
        Returns:
        a list of Rule Statement objects.
      • getVocabulary

        public IlrVocabulary getVocabulary()
        Gets the vocabulary of this intermediate form.
        Returns:
        The vocabulary of this intermediate form.
      • isInErrorRecovery

        public boolean isInErrorRecovery()
        Returns true if this intermediate form is in error.
        Returns:
        true if this intermediate form is in error.

© Copyright IBM Corp. 1987, 2017