Data
- stored datapublic abstract class ComplexRuleMap<Data>
extends java.lang.Object
TODO: improve the performance of constant substitution search
Modifier and Type | Class and Description |
---|---|
static interface |
ComplexRuleMap.ComplexRuleVisitor<Data,ResType> |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<Stmt,java.util.Map<ConstSubst,java.util.Map<PropertyTemplate,Data>>> |
map |
Constructor and Description |
---|
ComplexRuleMap() |
Modifier and Type | Method and Description |
---|---|
Data |
addData(Stmt stmt,
ConstSubst constSubst,
PropertyTemplate template,
Data data)
Adds new data and returns it or returns the old version
|
Data |
getData(Stmt stmt,
ConstSubst constSubst,
PropertyTemplate template) |
<ResType> ResType |
visitGenStmts(ParseNode node,
mmj.transforms.WorksheetInfo info,
ComplexRuleMap.ComplexRuleVisitor<Data,ResType> visitor)
Visits all appropriate constant substitutions for the node.
|
protected final java.util.Map<Stmt,java.util.Map<ConstSubst,java.util.Map<PropertyTemplate,Data>>> map
public Data getData(Stmt stmt, ConstSubst constSubst, PropertyTemplate template)
public Data addData(Stmt stmt, ConstSubst constSubst, PropertyTemplate template, Data data)
stmt
- the statementconstSubst
- the constant maptemplate
- the templatedata
- the datapublic final <ResType> ResType visitGenStmts(ParseNode node, mmj.transforms.WorksheetInfo info, ComplexRuleMap.ComplexRuleVisitor<Data,ResType> visitor)
ResType
- the type of visitor resultnode
- the input nodeinfo
- the work sheet infovisitor
- the callback for core work