public class ASTQualTreeWalker extends ARASTTreeWalker
Constructor and Description |
---|
ASTQualTreeWalker(ARParseFormatInfo in)
Construtor with field list which are in the form.
|
ASTQualTreeWalker(org.antlr.runtime.tree.CommonTree root,
ARParseFormatInfo in) |
Modifier and Type | Method and Description |
---|---|
ArithmeticOperationInfo |
createArithmeticOperationInfo(org.antlr.runtime.tree.CommonTree tree)
Creates
ArithmeticOperationInfo from the current CommonTree node. |
ArithmeticOrRelationalOperand |
createArithmeticOrRelationalOperand(org.antlr.runtime.tree.CommonTree tree)
Creates
ArithmeticOrRelationalOperand from the current CommonTree node. |
QualifierInfo |
createQualifierInfo()
Starts walking from the root node of the tree and creates
QualifierInfo as a result. |
QualifierInfo |
createQualifierInfo(org.antlr.runtime.tree.CommonTree tree)
Starts walking from the root node of the tree and creates
QualifierInfo as a result. |
RelationalOperationInfo |
createRelationalOperationInfo(org.antlr.runtime.tree.CommonTree tree)
Creates a
RelationalOperationInfo from the current node using 'operation' as the
'operation'. |
void |
loadCharWithValue(ArithmeticOrRelationalOperand leftOperand,
ArithmeticOrRelationalOperand rightOperand,
int operation,
boolean isTopNode)
Process a term and convert any char values it contains into appropriate
enum, time or currency values since the term is referencing a enum or
time field respectively.
|
public ASTQualTreeWalker(ARParseFormatInfo in)
root
- fieldList
- public ASTQualTreeWalker(org.antlr.runtime.tree.CommonTree root, ARParseFormatInfo in)
public QualifierInfo createQualifierInfo() throws ARException
QualifierInfo
as a result.ARException
public QualifierInfo createQualifierInfo(org.antlr.runtime.tree.CommonTree tree) throws ARException
QualifierInfo
as a result.tree
- ARException
public RelationalOperationInfo createRelationalOperationInfo(org.antlr.runtime.tree.CommonTree tree) throws ARException
RelationalOperationInfo
from the current node using 'operation' as the
'operation'.operation
- tree
- ARException
public ArithmeticOperationInfo createArithmeticOperationInfo(org.antlr.runtime.tree.CommonTree tree) throws ARException
ArithmeticOperationInfo
from the current CommonTree
node.tree
- ARException
public ArithmeticOrRelationalOperand createArithmeticOrRelationalOperand(org.antlr.runtime.tree.CommonTree tree) throws ARException
ArithmeticOrRelationalOperand
from the current CommonTree
node.tree
- ARException
public void loadCharWithValue(ArithmeticOrRelationalOperand leftOperand, ArithmeticOrRelationalOperand rightOperand, int operation, boolean isTopNode) throws ARException
leftOperand
- rightOperand
- ARException
? Copyright 2013 BMC Software, Inc.