public class DefaultRuleIrVariablesGenerator extends Object implements RuleIrVariablesGenerator
RuleIrVariablesGenerator| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_VARIABLE_PREFIX |
CONTAINER_PATH_SEPARATOR, DEFAULT_VARIABLES_CONTAINER_ID| Constructor and Description |
|---|
DefaultRuleIrVariablesGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeContainer()
Closes the current container.
|
RuleIrVariablesContainer |
createContainer(String id)
Creates a new container and uses the current one as parent.
|
RuleIrLocalVariablesContainer |
createLocalContainer()
Creates a new local container.
|
protected RuleIrVariablesContainer |
createNewContainer(String id,
RuleIrVariablesContainer parent) |
protected RuleIrVariable |
findVariable(RuleIrVariablesContainer container,
Class<?> type) |
String |
generateLocalVariable(RuleIrLocalVariablesContainer container,
Class<?> type)
Generates a new variable for the given local container and type.
|
String |
generateVariable(Class<?> type)
Generates a new variable for the given type.
|
protected String |
generateVariableName(Class<?> type) |
RuleIrVariablesContainer |
getCurrentContainer()
Returns the current container.
|
RuleIrVariablesContainer |
getRootContainer()
Returns the root container.
|
public static final String DEFAULT_VARIABLE_PREFIX
public RuleIrVariablesContainer getRootContainer()
RuleIrVariablesGeneratorgetRootContainer in interface RuleIrVariablesGeneratorpublic RuleIrVariablesContainer getCurrentContainer()
RuleIrVariablesGeneratorgetCurrentContainer in interface RuleIrVariablesGeneratorpublic RuleIrVariablesContainer createContainer(String id)
RuleIrVariablesGeneratorcreateContainer in interface RuleIrVariablesGeneratorid - - the id for the new containerpublic void closeContainer()
RuleIrVariablesGeneratorcloseContainer in interface RuleIrVariablesGeneratorprotected RuleIrVariablesContainer createNewContainer(String id, RuleIrVariablesContainer parent)
public String generateVariable(Class<?> type)
RuleIrVariablesGeneratorgenerateVariable in interface RuleIrVariablesGeneratortype - - the typeprotected RuleIrVariable findVariable(RuleIrVariablesContainer container, Class<?> type)
public RuleIrLocalVariablesContainer createLocalContainer()
RuleIrVariablesGeneratorcreateLocalContainer in interface RuleIrVariablesGeneratorpublic String generateLocalVariable(RuleIrLocalVariablesContainer container, Class<?> type)
RuleIrVariablesGeneratorgenerateLocalVariable in interface RuleIrVariablesGeneratortype - - the typeCopyright © 2017 SAP SE. All Rights Reserved.