public class IlrRulesetPrinter
extends java.lang.Object
IlrRuleWriter class, but further configure it
in order to provide more specific methods. An object of this class
works implicitly on an instance of IlrRulesetFactory.| Constructor and Description |
|---|
IlrRulesetPrinter(java.io.Writer writer)
Constructs an object which writes rules to the passed writer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
begin(IlrRulesetFactory factory)
Sets the passed ruleset factory object as working object.
|
void |
end()
Resets this object to its initial state.
|
java.lang.String[] |
getImportPackages()
Gets the import packages of this ruleset.
|
IlrRuleWriter |
getRuleWriter()
Gets the underline rule writer.
|
void |
printFunction(IlrFunctionFactory function,
boolean indent)
Prints a function with or without the first level indent.
|
void |
printInitialActions(boolean indent)
Prints the initial actions with or without the first level indent.
|
void |
printProperties()
Prints the properties of this ruleset.
|
void |
printRule(IlrRuleFactory rule,
boolean indent)
Prints a rule with or without the first level indent.
|
public IlrRulesetPrinter(java.io.Writer writer)
public void begin(IlrRulesetFactory factory)
public void end()
public final IlrRuleWriter getRuleWriter()
public java.lang.String[] getImportPackages()
public void printProperties()
public void printInitialActions(boolean indent)
public void printFunction(IlrFunctionFactory function, boolean indent)
public void printRule(IlrRuleFactory rule, boolean indent)
© Copyright IBM Corp. 1987, 2017