Transfer version 1.1

transfer.com.tql
Class TQLParser

WEB-INF.cftags.component
        extended by transfer.com.tql.TQLParser

public class TQLParser
extends WEB-INF.cftags.component

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

init

public init(JavaLoader javaLoader)
Constructor

Parameters:
javaLoader - The Java loader for loading Java classes
Method Detail

dumpTree

public string dumpTree(any tree)
walks the tree, and makes a string

Parameters:
tree - The tree node to walk

getJavaLoader

private any getJavaLoader()


getNodeType

public numeric getNodeType(string nodeName)
Gets a node type value

Parameters:
nodeName - The name of the node type

getTQLParser

private any getTQLParser()


handleTQLSyntaxError

private void handleTQLSyntaxError(any recognitionException, string errorMessage, string tql)
handles the TQL syntax error

Parameters:
recognitionException - antlr.runtime.RecognitionException
errorMessage - The error message
tql - The errronous tql

htmlDisplayTree

package string htmlDisplayTree(any tree, [numeric level='0'])
walks the tree, and makes a string

Parameters:
tree - The tree node to walk
level -

resolveErrorNear

private string resolveErrorNear(string tql, numeric line, string charPosition)
returns the word the error is near

Parameters:
tql - the errornous tql
line - the line number
charPosition - the character position

selectStatement

public any selectStatement(string tql)
Returns the AST based on the Select statement TQL

Parameters:
tql - The TQL that is being passed in from they query

setJavaLoader

private void setJavaLoader(any JavaLoader)

Parameters:
JavaLoader

setTQLParser

private void setTQLParser(any TQLParser)

Parameters:
TQLParser

throw

private any throw(string type, string message, [string detail=''])
Throws an Exception

Parameters:
type - The type of exception
message - The message to accompany the exception
detail - The detail message for the exception

Transfer version 1.1