public class IlrIntermediateForm extends IlrStatement implements java.io.Serializable
The root of the intermediate form model is the class IlrRuleStatement.
| Modifier and Type | Class and Description |
|---|---|
static interface |
IlrIntermediateForm.Visitor
The intermediate form visitor interface.
|
| Constructor and Description |
|---|
IlrIntermediateForm(IlrSyntaxTree.Node node,
IlrVocabulary vocabulary)
Builds a new IlrIntermediateForm from the specified
vocabulary. |
IlrIntermediateForm(IlrVocabulary vocabulary)
Deprecated.
use the constructor taking a syntax tree node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(IlrIntermediateForm.Visitor visitor)
Accepts a visitor.
|
void |
addRuleStatement(IlrRuleStatement rule)
Add a rule statement to this intermediate form
|
IlrRuleStatement |
getRuleStatement()
Deprecated.
use getRuleStatements()
|
java.util.List |
getRuleStatements()
Get the list of rule statements associated to this intermediate form.
|
IlrVocabulary |
getVocabulary()
Gets the vocabulary of this intermediate form.
|
boolean |
isInErrorRecovery()
Returns
true if this intermediate form is in error. |
void |
setRuleStatement(IlrRuleStatement rule)
Deprecated.
|
getNode, hasTagpublic IlrIntermediateForm(IlrSyntaxTree.Node node, IlrVocabulary vocabulary)
vocabulary.node - the syntax tree rootvocabulary - The vocabulary.public IlrIntermediateForm(IlrVocabulary vocabulary)
vocabulary - the vocabularypublic IlrRuleStatement getRuleStatement()
public void setRuleStatement(IlrRuleStatement rule)
rule - The rule statement.public void addRuleStatement(IlrRuleStatement rule)
rule - public java.util.List getRuleStatements()
public IlrVocabulary getVocabulary()
public boolean isInErrorRecovery()
true if this intermediate form is in error.true if this intermediate form is in error.public void accept(IlrIntermediateForm.Visitor visitor)
IlrStatementaccept in class IlrStatement© Copyright IBM Corp. 1987, 2017