|
Transfer version 1.1 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
transfer.com.tql.TQLParser
public class TQLParser
The parser that will return the AST
| Constructor Summary | |
|---|---|
init(JavaLoader javaLoader)
Constructor |
|
| Method Summary | |
|---|---|
string |
dumpTree(any tree)
walks the tree, and makes a string |
private any |
getJavaLoader()
|
numeric |
getNodeType(string nodeName)
Gets a node type value |
private any |
getTQLParser()
|
private void |
handleTQLSyntaxError(any recognitionException, string errorMessage, string tql)
handles the TQL syntax error |
package string |
htmlDisplayTree(any tree, [numeric level='0'])
walks the tree, and makes a string |
private string |
resolveErrorNear(string tql, numeric line, string charPosition)
returns the word the error is near |
any |
selectStatement(string tql)
Returns the AST based on the Select statement TQL |
private void |
setJavaLoader(any JavaLoader)
|
private void |
setTQLParser(any TQLParser)
|
private any |
throw(string type, string message, [string detail=''])
Throws an Exception |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(JavaLoader javaLoader)
javaLoader - The Java loader for loading Java classes| Method Detail |
|---|
public string dumpTree(any tree)
tree - The tree node to walkprivate any getJavaLoader()
public numeric getNodeType(string nodeName)
nodeName - The name of the node typeprivate any getTQLParser()
private void handleTQLSyntaxError(any recognitionException, string errorMessage, string tql)
recognitionException - antlr.runtime.RecognitionExceptionerrorMessage - The error messagetql - The errronous tqlpackage string htmlDisplayTree(any tree, [numeric level='0'])
tree - The tree node to walklevel - private string resolveErrorNear(string tql, numeric line, string charPosition)
tql - the errornous tqlline - the line numbercharPosition - the character positionpublic any selectStatement(string tql)
tql - The TQL that is being passed in from they queryprivate void setJavaLoader(any JavaLoader)
JavaLoaderprivate void setTQLParser(any TQLParser)
TQLParserprivate any throw(string type, string message, [string detail=''])
type - The type of exceptionmessage - The message to accompany the exceptiondetail - The detail message for the exception
|
Transfer version 1.1 | ||||
| FRAMES | |||||