Example: Extension of intermediate form statements
As an example of an extension of intermediate form statements, you can generate a switch expression for a print method.
Deprecated feature:
Support for custom business rule
languages is deprecated in V8.8.1. This feature will be removed in
a future release of the product. See Deprecated features for migration
details.
For the other print methods, use the kind of the statement passed as argument as switch expression:
public void printSimpleAction(IlrSimpleActionStatement stmt,
IlrAbstractCodeGenerator codeGenerator) {
switch (stmt.getKind()) {
case MY_ACTION1:
…
case MY_ACTION2:
…
}
}