uk.ac.bbk.dcs.automed.qproc.translators.sql
Class SQL2IQL
java.lang.Object
uk.ac.bbk.dcs.automed.qproc.translators.sql.SQL2IQL
- All Implemented Interfaces:
- SQL2IQLConstants
public class SQL2IQL
- extends java.lang.Object
- implements SQL2IQLConstants
Fields inherited from interface uk.ac.bbk.dcs.automed.qproc.translators.sql.SQL2IQLConstants |
DEFAULT, DIGIT, EOF, FLOAT, INTEGER, K_ALL, K_AND, K_ANY, K_AS, K_ASC, K_AVG, K_BEGIN, K_BETWEEN, K_BINARY_INTEGER, K_BOOLEAN, K_BY, K_CHAR, K_CLOSE, K_COMMENT, K_COMMIT, K_CONNECT, K_CONSTANT, K_COUNT, K_CURRENT, K_CURSOR, K_DATE, K_DECIMAL, K_DECLARE, K_DEFAULT, K_DELETE, K_DESC, K_DISTINCT, K_DO, K_ELSE, K_ELSIF, K_END, K_EXCEPTION, K_EXCEPTION_INIT, K_EXCLUSIVE, K_EXISTS, K_EXIT, K_FETCH, K_FLOAT, K_FOR, K_FROM, K_FUNCTION, K_GOTO, K_GROUP, K_HAVING, K_IF, K_IN, K_INDEX, K_INSERT, K_INTEGER, K_INTERSECT, K_INTO, K_IS, K_JOIN, K_LEVEL, K_LIKE, K_LOCK, K_LOOP, K_MAX, K_MIN, K_MINUS, K_MODE, K_NATURAL, K_NOT, K_NOWAIT, K_NULL, K_NUMBER, K_OF, K_ON, K_ONLY, K_OPEN, K_OR, K_ORDER, K_OTHERS, K_OUT, K_PACKAGE, K_POSITIVE, K_PRAGMA, K_PRIOR, K_PROCEDURE, K_RAISE, K_READ, K_REAL, K_RECORD, K_REF, K_RETURN, K_REVERSE, K_ROLLBACK, K_ROW, K_SAVEPOINT, K_SEGMENT, K_SELECT, K_SET, K_SHARE, K_SMALLINT, K_SQL, K_START, K_SUM, K_TABLE, K_THEN, K_TO, K_TRANSACTION, K_UNION, K_UPDATE, K_USE, K_VALUES, K_VARCHAR, K_VARCHAR2, K_WHEN, K_WHERE, K_WHILE, K_WITH, K_WORK, K_WRITE, LETTER, LINE_COMMENT, MULTI_LINE_COMMENT, S_BIND, S_IDENTIFIER, S_NUMBER, S_QUOTED_IDENTIFIER, SPECIAL_CHARS, tokenImage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Comp
static java.util.HashMap Comp
setMap
static java.util.HashMap setMap
jj_initialized_once
private static boolean jj_initialized_once
token_source
public static SQL2IQLTokenManager token_source
jj_input_stream
static SimpleCharStream jj_input_stream
token
public static Token token
jj_nt
public static Token jj_nt
jj_ntk
private static int jj_ntk
jj_scanpos
private static Token jj_scanpos
jj_lastpos
private static Token jj_lastpos
jj_la
private static int jj_la
lookingAhead
public static boolean lookingAhead
jj_semLA
private static boolean jj_semLA
jj_gen
private static int jj_gen
jj_la1
private static final int[] jj_la1
jj_la1_0
private static int[] jj_la1_0
jj_la1_1
private static int[] jj_la1_1
jj_la1_2
private static int[] jj_la1_2
jj_la1_3
private static int[] jj_la1_3
jj_la1_4
private static int[] jj_la1_4
jj_2_rtns
private static final SQL2IQL.JJCalls[] jj_2_rtns
jj_rescan
private static boolean jj_rescan
jj_gc
private static int jj_gc
jj_ls
private static final SQL2IQL.LookaheadSuccess jj_ls
jj_expentries
private static java.util.Vector jj_expentries
jj_expentry
private static int[] jj_expentry
jj_kind
private static int jj_kind
jj_lasttokens
private static int[] jj_lasttokens
jj_endpos
private static int jj_endpos
SQL2IQL
public SQL2IQL(java.io.InputStream stream)
SQL2IQL
public SQL2IQL(java.io.Reader stream)
SQL2IQL
public SQL2IQL(SQL2IQLTokenManager tm)
populate
public static void populate()
createHead
public static java.util.HashMap createHead(java.util.LinkedList selectList)
createBody
public static java.lang.String createBody(java.util.LinkedList bodyList,
java.util.HashMap nestedList)
createFilter
public static java.lang.String createFilter(java.lang.String whereFilter)
createGroup
public static java.util.HashMap createGroup(java.util.LinkedList selectList,
java.util.LinkedList groupList)
one_line
public static final int one_line()
throws ParseException
- Throws:
ParseException
NullStatement
public static final java.lang.String NullStatement()
throws ParseException
- Throws:
ParseException
getIQL
public static final java.lang.String getIQL()
throws ParseException
- Throws:
ParseException
QueryStatement
public static final java.lang.String QueryStatement()
throws ParseException
- Throws:
ParseException
IsNullClause
public static final java.lang.String IsNullClause()
throws ParseException
- Throws:
ParseException
TableColumn
public static final java.lang.String TableColumn()
throws ParseException
- Throws:
ParseException
RelObjectName
public static final java.lang.String RelObjectName()
throws ParseException
- Throws:
ParseException
DotObjectName
public static final java.lang.String DotObjectName()
throws ParseException
- Throws:
ParseException
numericComparisonOperator
public static final java.lang.String numericComparisonOperator()
throws ParseException
- Throws:
ParseException
operator
public static final java.lang.String operator()
throws ParseException
- Throws:
ParseException
TableReference
public static final java.lang.String TableReference()
throws ParseException
- Throws:
ParseException
SelectStatement
public static final java.util.LinkedList SelectStatement()
throws ParseException
- Throws:
ParseException
SelectWithoutOrder
public static final java.util.LinkedList SelectWithoutOrder()
throws ParseException
- Throws:
ParseException
SelectList
public static final java.util.HashMap SelectList()
throws ParseException
- Throws:
ParseException
SelectItem
public static final java.util.LinkedList SelectItem()
throws ParseException
- Throws:
ParseException
arithmeticOp
public static final java.lang.String arithmeticOp()
throws ParseException
- Throws:
ParseException
FromClause
public static final java.lang.String FromClause(java.util.LinkedList fromList)
throws ParseException
- Throws:
ParseException
FromItem
public static final java.util.HashMap FromItem()
throws ParseException
- Throws:
ParseException
nestedFrom
public static final void nestedFrom()
throws ParseException
- Throws:
ParseException
WhereClause
public static final java.lang.String WhereClause()
throws ParseException
- Throws:
ParseException
standardWhere
public static final java.lang.String standardWhere()
throws ParseException
- Throws:
ParseException
stringComparisonOperator
public static final java.lang.String stringComparisonOperator()
throws ParseException
- Throws:
ParseException
NullWhere
public static final java.lang.String NullWhere()
throws ParseException
- Throws:
ParseException
WhereItem
public static final java.lang.String WhereItem()
throws ParseException
- Throws:
ParseException
SetClause
public static final java.util.LinkedList SetClause()
throws ParseException
- Throws:
ParseException
GroupBy
public static final java.util.LinkedList GroupBy()
throws ParseException
- Throws:
ParseException
jj_2_1
private static final boolean jj_2_1(int xla)
jj_2_2
private static final boolean jj_2_2(int xla)
jj_3_2
private static final boolean jj_3_2()
jj_3R_6
private static final boolean jj_3R_6()
jj_3_1
private static final boolean jj_3_1()
jj_3R_7
private static final boolean jj_3R_7()
jj_la1_0
private static void jj_la1_0()
jj_la1_1
private static void jj_la1_1()
jj_la1_2
private static void jj_la1_2()
jj_la1_3
private static void jj_la1_3()
jj_la1_4
private static void jj_la1_4()
ReInit
public static void ReInit(java.io.InputStream stream)
ReInit
public static void ReInit(java.io.Reader stream)
ReInit
public void ReInit(SQL2IQLTokenManager tm)
jj_consume_token
private static final Token jj_consume_token(int kind)
throws ParseException
- Throws:
ParseException
jj_scan_token
private static final boolean jj_scan_token(int kind)
getNextToken
public static final Token getNextToken()
getToken
public static final Token getToken(int index)
jj_ntk
private static final int jj_ntk()
jj_add_error_token
private static void jj_add_error_token(int kind,
int pos)
generateParseException
public static ParseException generateParseException()
enable_tracing
public static final void enable_tracing()
disable_tracing
public static final void disable_tracing()
jj_rescan_token
private static final void jj_rescan_token()
jj_save
private static final void jj_save(int index,
int xla)