|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.wpi.cs.dsrg.xmldb.xat.common.visitorpattern.InheritableVisitor | +--edu.wpi.cs.dsrg.xmldb.xat.component.sqlgeneration.OperatorEvaluator
Insert the type's description here.
Field Summary | |
protected int |
heuristicType
|
protected boolean |
sourceVisited
When evaluating an Operator, it is important to make sure that a Source has been visited. |
protected BindingTable |
variableTable
|
Constructor Summary | |
OperatorEvaluator(BindingTable varTable)
SQLOperatorEvaluator constructor comment. |
|
OperatorEvaluator(int heuristic,
BindingTable varTable)
SQLOperatorEvaluator constructor comment. |
Method Summary | |
protected NavigationStep[] |
combineSteps(NavigationStep[] entryPoint,
NavigationStep[] destination)
Put the entryPoint and destination step arrays of a Navigate Operator into 1 bigger array to make it easier to manipulate |
java.lang.String |
createString(NavigationStep[] step)
createString accepts an array of NavigationSteps and will convert these steps into one long string. |
java.lang.String |
createString(java.lang.String varName)
An alternate definition for createString This definition accepts a string, it then looks up the value in the varTable and returns the representation with "." instead of "/" between steps steps into one long string. |
java.lang.Object |
dispatch()
Insert the method's description here. |
java.lang.Object |
dispatch(java.lang.Object o1)
Do nothing |
QueryResult |
evaluateOperator(XATOperator nextOperator)
|
BindingTable |
getVariableTable()
Insert the method's description here. |
boolean |
isSourceVisited()
Insert the method's description here. |
void |
setHeuristicType(int newHeuristic)
|
void |
setSourceVisited(boolean newSourceVisited)
Insert the method's description here. |
void |
setVariableTable(BindingTable newVariableTable)
Insert the method's description here. |
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.visitorpattern.InheritableVisitor |
getAncestors,
getMethod,
visit,
visit |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected int heuristicType
protected BindingTable variableTable
protected boolean sourceVisited
Constructor Detail |
public OperatorEvaluator(int heuristic, BindingTable varTable)
public OperatorEvaluator(BindingTable varTable)
Method Detail |
protected NavigationStep[] combineSteps(NavigationStep[] entryPoint, NavigationStep[] destination)
entryPoint
- destination
- public java.lang.String createString(NavigationStep[] step)
step
- NavigationStep from which to create a stringpublic java.lang.String createString(java.lang.String varName)
varName
- String from which to create a stringpublic java.lang.Object dispatch()
o1
- java.lang.Objectpublic java.lang.Object dispatch(java.lang.Object o1)
o1
- java.lang.Objectpublic QueryResult evaluateOperator(XATOperator nextOperator)
public BindingTable getVariableTable()
- public boolean isSourceVisited()
public void setHeuristicType(int newHeuristic)
newVariableTable
- java.util.Hashtablepublic void setSourceVisited(boolean newSourceVisited)
newSourceVisited
- booleanpublic void setVariableTable(BindingTable newVariableTable)
newVariableTable
- BindingTable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |