@Deprecated public class SqlLexer extends AbstractLexer implements SqlKeywords
Modifier and Type | Class and Description |
---|---|
protected static class |
BaseSqlLexer.Context |
AbstractLexer.DefaultLexerToken
Modifier and Type | Field and Description |
---|---|
protected static int |
CONTEXT_SIZE
The number of elements in the int[] context.
|
protected int |
endOffset
The ending offset of the last token found.
|
protected int |
hash
If lastToken is TK_IDENTIFIER or is in the keywordTable, then
this will be the token's hash value.
|
protected int |
lastToken
The last token found from
lex() operation. |
protected int |
startOffset
The starting offset of the last token found.
|
protected static int |
TK_NOT_FOUND
To resolve compiler ambiguity.
|
currentPos, textBuffer
DW_values, DW_words, KW_A, KW_ABORT, KW_ACCESS, KW_ACCESSED, KW_ACCOUNT, KW_ACTIVATE, KW_ADD, KW_ADMIN, KW_ADMINISTER, KW_ADMINISTRATOR, KW_ADVISE, KW_ADVISOR, KW_AFTER, KW_ALGORITHM, KW_ALIAS, KW_ALL, KW_ALL_ROWS, KW_ALLOCATE, KW_ALLOW, KW_ALTER, KW_ALWAYS, KW_ANALYZE, KW_ANCILLARY, KW_AND, KW_AND_EQUAL, KW_ANTIJOIN, KW_ANY, KW_APPEND, KW_APPLY, KW_ARCHIVE, KW_ARCHIVELOG, KW_ARRAY, KW_AS, KW_ASC, KW_ASSOCIATE, KW_AT, KW_ATTRIBUTE, KW_ATTRIBUTES, KW_AUDIT, KW_AUTHENTICATED, KW_AUTHENTICATION, KW_AUTHID, KW_AUTHORIZATION, KW_AUTO, KW_AUTOALLOCATE, KW_AUTOEXTEND, KW_AUTOMATIC, KW_AVAILABILITY, KW_BACKUP, KW_base, KW_BECOME, KW_BEFORE, KW_BEGIN, KW_BEHALF, KW_BETWEEN, KW_BFILE, KW_BIGFILE, KW_BINARY_DOUBLE, KW_BINARY_DOUBLE_INFINITY, KW_BINARY_DOUBLE_NAN, KW_BINARY_FLOAT, KW_BINARY_FLOAT_INFINITY, KW_BINARY_FLOAT_NAN, KW_BINDING, KW_BITMAP, KW_BITS, KW_BLOB, KW_BLOCK, KW_BLOCKS, KW_BLOCKSIZE, KW_BLOCKW_RANGE, KW_BODY, KW_BOTH, KW_BOUND, KW_BROADCAST, KW_BUFFER, KW_BUFFER_CACHE, KW_BUFFER_POOL, KW_BUILD, KW_BULK, KW_BY, KW_BYPASS_RECURSIVE_CHECK, KW_BYPASS_UJVC, KW_BYTE, KW_CACHE, KW_CACHE_CB, KW_CACHE_INSTANCES, KW_CACHE_TEMP_TABLE, KW_CALL, KW_CANCEL, KW_CARDINALITY, KW_CASCADE, KW_CASE, KW_CAST, KW_CATEGORY, KW_CERTIFICATE, KW_CFILE, KW_CHAINED, KW_CHANGE, KW_CHAR, KW_CHAR_CS, KW_CHECK, KW_CHECKPOINT, KW_CHILD, KW_CHOOSE, KW_CHUNK, KW_CIV_GB, KW_CLASS, KW_CLEAR, KW_CLOB, KW_CLONE, KW_CLOSE, KW_CLOSE_CACHED_OPEN_CURSORS, KW_CLUSTER, KW_CLUSTERING_FACTOR, KW_COALESCE, KW_COARSE, KW_COLLECT, KW_COLLECTIONS_GET_REFS, KW_COLUMN, KW_COLUMN_STATS, KW_COLUMN_VALUE, KW_COLUMNS, KW_COMMENT, KW_COMMIT, KW_COMMITTED, KW_COMPACT, KW_COMPATIBILITY, KW_COMPILE, KW_COMPLETE, KW_COMPOSITE_LIMIT, KW_COMPRESS, KW_COMPUTE, KW_CONFORMING, KW_CONNECT, KW_CONNECT_BY_ISCYCLE, KW_CONNECT_BY_ISLEAF, KW_CONNECT_BY_ROOT, KW_CONNECT_TIME, KW_CONSIDER, KW_CONSISTENT, KW_CONSTRAINT, KW_CONTAINER, KW_CONTENT, KW_CONTENTS, KW_CONTEXT, KW_CONTINUE, KW_CONTROLFILE, KW_CONVERT, KW_CORRUPTION, KW_COST, KW_CPU_COSTING, KW_CPU_PER_CALL, KW_CPU_PER_SESSION, KW_CREATE, KW_CREATE_STORED_OUTLINES, KW_CROSS, KW_CUBE, KW_CUBE_GB, KW_CURRENT, KW_CURRENT_DATE, KW_CURRENT_SCHEMA, KW_CURRENT_TIME, KW_CURRENT_TIMESTAMP, KW_CURRENT_USER, KW_CURSOR, KW_CURSOR_SHARING_EXACT, KW_CURSOR_SPECIFIC_SEGMENT, KW_CYCLE, KW_DANGLING, KW_DATA, KW_DATABASE, KW_DATAFILE, KW_DATAFILES, KW_DATAOBJNO, KW_DATE, KW_DATE_MODE, KW_DAY, KW_DBA, KW_DBA_RECYCLEBIN, KW_DBTIMEZONE, KW_DDL, KW_DEALLOCATE, KW_DEBUG, KW_DEC, KW_DECLARE, KW_DECREMENT, KW_DEFAULT, KW_DEFERRABLE, KW_DEFERRED, KW_DEFINED, KW_DEFINER, KW_DEGREE, KW_DELAY, KW_DELETE, KW_DEMAND, KW_DENSE_RANK, KW_DEREF, KW_DEREF_NO_REWRITE, KW_DESC, KW_DETACHED, KW_DETERMINES, KW_DICTIONARY, KW_DIMENSION, KW_DIRECTORY, KW_DISABLE, KW_DISASSOCIATE, KW_DISCONNECT, KW_DISK, KW_DISKGROUP, KW_DISKS, KW_DISMOUNT, KW_DISTINCT, KW_DISTINGUISHED, KW_DISTRIBUTED, KW_DML, KW_DML_UPDATE, KW_DOCUMENT, KW_DOMAIN_INDEX_NO_SORT, KW_DOMAIN_INDEX_SORT, KW_DOUBLE, KW_DOWNGRADE, KW_DRIVING_SITE, KW_DROP, KW_DUMP, KW_DYNAMIC, KW_DYNAMIC_SAMPLING, KW_DYNAMIC_SAMPLING_EST_CDN, KW_EACH, KW_ELEMENT, KW_ELSE, KW_EMPTY, KW_ENABLE, KW_ENCRYPTED, KW_ENCRYPTION, KW_END, KW_ENFORCE, KW_ENFORCED, KW_ENTRY, KW_ERROR, KW_ERROR_ON_OVERLAP_TIME, KW_ESCAPE, KW_ESTIMATE, KW_EVENTS, KW_EXCEPT, KW_EXCEPTIONS, KW_EXCHANGE, KW_EXCLUDING, KW_EXCLUSIVE, KW_EXECUTE, KW_EXEMPT, KW_EXISTS, KW_EXPAND_GSET_TO_UNION, KW_EXPIRE, KW_EXPLAIN, KW_EXPLOSION, KW_EXPORT, KW_EXPR_CORR_CHECK, KW_EXTEND, KW_EXTENDS, KW_EXTENT, KW_EXTENTS, KW_EXTERNAL, KW_EXTERNALLY, KW_EXTRACT, KW_FACT, KW_FAILED, KW_FAILED_LOGIN_ATTEMPTS, KW_FAILGROUP, KW_FALSE, KW_FAST, KW_FBTSCAN, KW_FIC_CIV, KW_FIC_PIV, KW_FILE, KW_FILTER, KW_FINAL, KW_FINE, KW_FINISH, KW_first, KW_FIRST, KW_FIRST_ROWS, KW_FLAGGER, KW_FLASHBACK, KW_FLOAT, KW_FLOB, KW_FLUSH, KW_FOLLOWING, KW_FOR, KW_FORCE, KW_FORCE_XML_QRY_REW, KW_FOREIGN, KW_FREELIST, KW_FREELISTS, KW_FREEPOOLS, KW_FRESH, KW_FROM, KW_FULL, KW_FUNCTION, KW_FUNCTIONS, KW_GATHER_PLAN_STATISTICS, KW_GBY_CONC_ROLLUP, KW_GENERATED, KW_GLOBAL, KW_GLOBAL_NAME, KW_GLOBAL_TOPIC_ENABLED, KW_GLOBALLY, KW_GRANT, KW_GROUP, KW_GROUP_BY, KW_GROUPING, KW_GROUPS, KW_GUARANTEE, KW_GUARANTEED, KW_GUARD, KW_HASH, KW_HASH_AJ, KW_HASH_SJ, KW_HASHKEYS, KW_HAVING, KW_HEADER, KW_HEAP, KW_HIERARCHY, KW_HIGH, KW_HINTSET_BEGIN, KW_HINTSET_END, KW_HOUR, KW_HWM_BROKERED, KW_ID, KW_IDENTIFIED, KW_IDENTIFIER, KW_IDENTITY, KW_IDGENERATORS, KW_IDLE_TIME, KW_IF, KW_IGNORE, KW_IGNORE_ON_CLAUSE, KW_IGNORE_OPTIM_EMBEDDED_HINTS, KW_IGNORE_WHERE_CLAUSE, KW_IMMEDIATE, KW_IMPORT, KW_IN, KW_IN_MEMORY_METADATA, KW_INCLUDING, KW_INCREMENT, KW_INCREMENTAL, KW_INDEX, KW_INDEX_ASC, KW_INDEX_COMBINE, KW_INDEX_DESC, KW_INDEX_FFS, KW_INDEX_FILTER, KW_INDEX_JOIN, KW_INDEX_RRS, KW_INDEX_SCAN, KW_INDEX_SKIP_SCAN, KW_INDEX_SS, KW_INDEX_SS_ASC, KW_INDEX_SS_DESC, KW_INDEX_STATS, KW_INDEXED, KW_INDEXES, KW_INDEXTYPE, KW_INDEXTYPES, KW_INDICATOR, KW_INFINITE, KW_INFORMATIONAL, KW_INITIAL, KW_INITIALIZED, KW_INITIALLY, KW_INITRANS, KW_INLINE, KW_INNER, KW_INSERT, KW_INSTANCE, KW_INSTANCES, KW_INSTANTIABLE, KW_INSTANTLY, KW_INSTEAD, KW_INT, KW_INTEGRITY, KW_INTERMEDIATE, KW_INTERNAL_CONVERT, KW_INTERNAL_USE, KW_INTERPRETED, KW_INTERSECT, KW_INTERVAL, KW_INTO, KW_INVALIDATE, KW_IS, KW_ISOLATION, KW_ISOLATION_LEVEL, KW_ITERATE, KW_ITERATION_NUMBER, KW_JAVA, KW_JOB, KW_JOIN, KW_KEEP, KW_KERBEROS, KW_KEY, KW_KEY_LENGTH, KW_KEYFILE, KW_KEYS, KW_KEYSIZE, KW_KILL, KW_last, KW_LAST, KW_LATERAL, KW_LAYER, KW_LDAP_REG_SYNC_INTERVAL, KW_LDAP_REGISTRATION, KW_LDAP_REGISTRATION_ENABLED, KW_LEADING, KW_LEFT, KW_LENGTH, KW_LESS, KW_LEVEL, KW_LEVELS, KW_LIBRARY, KW_LIKE, KW_LIKE_EXPAND, KW_LIKE2, KW_LIKE4, KW_LIKEC, KW_LIMIT, KW_LINK, KW_LIST, KW_LOB, KW_LOCAL, KW_LOCAL_INDEXES, KW_LOCALTIME, KW_LOCALTIMESTAMP, KW_LOCATION, KW_LOCATOR, KW_LOCK, KW_LOCKED, KW_LOG, KW_LOGFILE, KW_LOGGING, KW_LOGICAL, KW_LOGICAL_READS_PER_CALL, KW_LOGICAL_READS_PER_SESSION, KW_LOGOFF, KW_LOGON, KW_LONG, KW_MAIN, KW_MANAGE, KW_MANAGED, KW_MANAGEMENT, KW_MANUAL, KW_MAPPING, KW_MASTER, KW_MATCHED, KW_MATERIALIZE, KW_MATERIALIZED, KW_max, KW_MAX, KW_MAXDATAFILES, KW_MAXEXTENTS, KW_MAXIMIZE, KW_MAXINSTANCES, KW_MAXLOGFILES, KW_MAXLOGHISTORY, KW_MAXLOGMEMBERS, KW_MAXSIZE, KW_MAXTRANS, KW_MAXVALUE, KW_MEASURES, KW_MEMBER, KW_MEMORY, KW_MERGE, KW_MERGE_AJ, KW_MERGE_CONST_ON, KW_MERGE_SJ, KW_METHOD, KW_MIGRATE, KW_MIN, KW_MINEXTENTS, KW_MINIMIZE, KW_MINIMUM, KW_MINUS, KW_MINUTE, KW_MINVALUE, KW_MIRROR, KW_MLSLABEL, KW_MODE, KW_MODEL, KW_MODIFY, KW_MONITORING, KW_MONTH, KW_MOUNT, KW_MOVE, KW_MOVEMENT, KW_MULTISET, KW_MV_MERGE, KW_NAME, KW_NAMED, KW_NAN, KW_NATIONAL, KW_NATIVE, KW_NATURAL, KW_NAV, KW_NCHAR, KW_NCHAR_CS, KW_NCLOB, KW_NEEDED, KW_NESTED, KW_NESTED_TABLE_FAST_INSERT, KW_NESTED_TABLE_GET_REFS, KW_NESTED_TABLE_ID, KW_NESTED_TABLE_SET_SETID, KW_NETWORK, KW_NEVER, KW_NEW, KW_NEXT, KW_NL_AJ, KW_NL_SJ, KW_NLS_CALENDAR, KW_NLS_CHARACTERSET, KW_NLS_COMP, KW_NLS_CURRENCY, KW_NLS_DATE_FORMAT, KW_NLS_DATE_LANGUAGE, KW_NLS_ISO_CURRENCY, KW_NLS_LANG, KW_NLS_LANGUAGE, KW_NLS_LENGTH_SEMANTICS, KW_NLS_NCHAR_CONV_EXCP, KW_NLS_NUMERIC_CHARACTERS, KW_NLS_SORT, KW_NLS_SPECIAL_CHARS, KW_NLS_TERRITORY, KW_NO, KW_NO_ACCESS, KW_NO_BASETABLE_MULTIMV_REWRITE, KW_NO_BUFFER, KW_NO_CPU_COSTING, KW_NO_EXPAND, KW_NO_EXPAND_GSET_TO_UNION, KW_NO_FACT, KW_NO_FILTERING, KW_NO_INDEX, KW_NO_INDEX_FFS, KW_NO_INDEX_SS, KW_NO_MERGE, KW_NO_MONITORING, KW_NO_MULTIMV_REWRITE, KW_NO_ORDER_ROLLUPS, KW_NO_PARALLEL, KW_NO_PARALLEL_INDEX, KW_NO_PRUNE_GSETS, KW_NO_PUSH_PRED, KW_NO_PUSH_SUBQ, KW_NO_QKN_BUFF, KW_NO_QUERY_TRANSFORMATION, KW_NO_REF_CASCADE, KW_NO_REWRITE, KW_NO_SEMIJOIN, KW_NO_SET_TO_JOIN, KW_NO_SPREAD_PUSH_REFPRED, KW_NO_STAR_TRANSFORMATION, KW_NO_STATS_GSETS, KW_NO_SWAP_JOIN_INPUTS, KW_NO_TRIGGER, KW_NO_UNNEST, KW_NO_USE_HASH, KW_NO_USE_MERGE, KW_NO_USE_NL, KW_NO_XML_QRY_REW, KW_NOAPPEND, KW_NOARCHIVELOG, KW_NOAUDIT, KW_NOCACHE, KW_NOCOMPRESS, KW_NOCYCLE, KW_NODELAY, KW_NOFORCE, KW_NOGUARANTEE, KW_NOLOGGING, KW_NOMAPPING, KW_NOMAXVALUE, KW_NOMINIMIZE, KW_NOMINVALUE, KW_NOMONITORING, KW_NONE, KW_NOORDER, KW_NOOVERRIDE, KW_NOPARALLEL, KW_NORELY, KW_NOREPAIR, KW_NORESETLOGS, KW_NOREVERSE, KW_NORMAL, KW_NOROWDEPENDENCIES, KW_NOSEGMENT, KW_NOSORT, KW_NOSTRICT, KW_NOSWITCH, KW_NOT, KW_NOTHING, KW_NOVALIDATE, KW_NOWAIT, KW_NULL, KW_NULLS, KW_NUMBER, KW_NUMERIC, KW_NVARCHAR2, KW_OBJECT, KW_OBJNO, KW_OBJNO_REUSE, KW_OF, KW_OFF, KW_OFFLINE, KW_OID, KW_OIDINDEX, KW_OLD, KW_ON, KW_ONLINE, KW_ONLY, KW_OPAQUE, KW_OPAQUE_TRANSFORM, KW_OPAQUE_XCANONICAL, KW_OPCODE, KW_OPEN, KW_OPERATOR, KW_OPT_ESTIMATE, KW_OPTIMAL, KW_OPTIMIZER_FEATURES_ENABLE, KW_OPTIMIZER_GOAL, KW_OPTION, KW_OR, KW_OR_EXPAND, KW_ORA_ROWSCN, KW_ORDER, KW_ORDERED, KW_ORDERED_PREDICATES, KW_ORGANIZATION, KW_OUT_OF_LINE, KW_OUTER, KW_OUTLINE, KW_OVER, KW_OVERFLOW, KW_OVERFLOW_NOMOVE, KW_OVERLAPS, KW_OWN, KW_PACKAGE, KW_PACKAGES, KW_PARALLEL_INDEX, KW_PARAMETERS, KW_PARENT, KW_PARITY, KW_PARTIALLY, KW_PARTITION, KW_PARTITION_HASH, KW_PARTITION_LIST, KW_PARTITION_RANGE, KW_PARTITIONS, KW_PASSWORD, KW_PASSWORD_GRACE_TIME, KW_PASSWORD_LIFE_TIME, KW_PASSWORD_LOCKW_TIME, KW_PASSWORD_REUSE_MAX, KW_PASSWORD_REUSE_TIME, KW_PASSWORD_VERIFY_FUNCTION, KW_PCTFREE, KW_PCTINCREASE, KW_PCTTHRESHOLD, KW_PCTUSED, KW_PCTVERSION, KW_PERCENT, KW_PERFORMANCE, KW_PERMANENT, KW_PFILE, KW_PHYSICAL, KW_PIV_GB, KW_PIV_SSF, KW_PLAN, KW_PLSQL_CODE_TYPE, KW_PLSQL_DEBUG, KW_PLSQL_OPTIMIZE_LEVEL, KW_PLSQL_WARNINGS, KW_POLICY, KW_POST_TRANSACTION, KW_POWER, KW_PQ_DISTRIBUTE, KW_PQ_MAP, KW_PQ_NOMAP, KW_PREBUILT, KW_PRECEDING, KW_PRECISION, KW_PREPARE, KW_PRESENT, KW_PRESERVE, KW_PRIMARY, KW_PRIOR, KW_PRIVATE, KW_PRIVATE_SGA, KW_PRIVILEGES, KW_PROCEDURE, KW_PROFILE, KW_PROGRAM, KW_PROJECT, KW_PROTECTED, KW_PROTECTION, KW_PUBLIC, KW_PURGE, KW_PUSH_PRED, KW_PUSH_SUBQ, KW_PX_GRANULE, KW_QB_NAME, KW_QUERY, KW_QUERY_BLOCK, KW_QUEUE, KW_QUEUE_CURR, KW_QUEUE_ROWP, KW_QUIESCE, KW_QUOTA, KW_RANDOM, KW_RANGE, KW_RAPIDLY, KW_RAW, KW_RBA, KW_READ, KW_READS, KW_REAL, KW_REBALANCE, KW_REBUILD, KW_RECORDS_PER_BLOCK, KW_RECOVER, KW_RECOVERABLE, KW_RECOVERY, KW_RECYCLE, KW_RECYCLEBIN, KW_REDUCED, KW_REDUNDANCY, KW_REF, KW_REF_CASCADE_CURSOR, KW_REFERENCE, KW_REFERENCED, KW_REFERENCES, KW_REFRESH, KW_REGEXP_LIKE, KW_REGISTER, KW_REJECT, KW_REKEY, KW_RELATIONAL, KW_RELY, KW_REMOTE_MAPPED, KW_RENAME, KW_REPAIR, KW_REPLACE, KW_REQUIRED, KW_RESET, KW_RESETLOGS, KW_RESIZE, KW_RESOLVE, KW_RESOLVER, KW_RESOURCE, KW_RESTORE_AS_INTERVALS, KW_RESTRICT, KW_RESTRICT_ALL_REF_CONS, KW_RESTRICTED, KW_RESUMABLE, KW_RESUME, KW_RETENTION, KW_RETURN, KW_RETURNING, KW_REUSE, KW_REVERSE, KW_REVOKE, KW_REWRITE, KW_REWRITE_OR_ERROR, KW_RIGHT, KW_ROLE, KW_ROLLBACK, KW_ROLLUP, KW_ROW, KW_ROW_LENGTH, KW_ROWDEPENDENCIES, KW_ROWID, KW_ROWNUM, KW_ROWS, KW_RULE, KW_RULES, KW_SAMPLE, KW_SAVE_AS_INTERVALS, KW_SAVEPOINT, KW_SCALE, KW_SCALE_ROWS, KW_SCAN, KW_SCAN_INSTANCES, KW_SCHEDULER, KW_SCHEMA, KW_SCN, KW_SCN_ASCENDING, KW_SCOPE, KW_SD_ALL, KW_SD_INHIBIT, KW_SD_SHOW, KW_SECOND, KW_SECURITY, KW_SEED, KW_SEG_BLOCK, KW_SEG_FILE, KW_SEGMENT, KW_SELECT, KW_SELECTIVITY, KW_SEMIJOIN, KW_SEMIJOIN_DRIVER, KW_SEQUENCE, KW_SEQUENCED, KW_SEQUENTIAL, KW_SERIALIZABLE, KW_SERVERERROR, KW_SESSION, KW_SESSION_CACHED_CURSORS, KW_SESSIONS_PER_USER, KW_SESSIONTIMEZONE, KW_SESSIONTZNAME, KW_SET, KW_SET_TO_JOIN, KW_SETS, KW_SETTINGS, KW_SEVERE, KW_SHARE, KW_SHARED, KW_SHARED_POOL, KW_SHRINK, KW_SHUTDOWN, KW_SIBLINGS, KW_SID, KW_SIMPLE, KW_SINGLE, KW_SINGLETASK, KW_SIZE, KW_SKIP, KW_SKIP_EXT_OPTIMIZER, KW_SKIP_UNQ_UNUSABLE_IDX, KW_SKIP_UNUSABLE_INDEXES, KW_SMALLFILE, KW_SNAPSHOT, KW_SOME, KW_SORT, KW_SOURCE, KW_SPACE, KW_SPECIFICATION, KW_SPFILE, KW_SPLIT, KW_SPREAD_DONTVERIFY_UNIQUENESS, KW_SPREAD_MIN_ANALYSIS, KW_SPREAD_NO_ANALYSIS, KW_SPREAD_PUSH_REFPRED, KW_SPREADSHEET, KW_SPREADSHEET_PBY, KW_SQL, KW_SQL_TRACE, KW_SQLLDR, KW_STANDBY, KW_STAR_HINT, KW_STAR_TRANSFORMATION, KW_START, KW_STARTUP, KW_STATEMENT_ID, KW_STATIC, KW_STATISTICS, KW_STOP, KW_STORAGE, KW_STORE, KW_STREAMS, KW_STRICT, KW_STRIP, KW_STRUCTURE, KW_SUBMULTISET, KW_SUBPARTITION, KW_SUBPARTITION_REL, KW_SUBPARTITIONS, KW_SUBSTITUTABLE, KW_SUCCESSFUL, KW_SUMMARY, KW_SUPPLEMENTAL, KW_SUSPEND, KW_SWAP_JOIN_INPUTS, KW_SWITCH, KW_SWITCHOVER, KW_SYNONYM, KW_SYS_DL_CURSOR, KW_SYS_FBT_INSDEL, KW_SYS_OP_BITVEC, KW_SYS_OP_CAST, KW_SYS_OP_COL_PRESENT, KW_SYS_OP_ENFORCE_NOT_NULL, KW_SYS_OP_MINE_VALUE, KW_SYS_OP_NOEXPAND, KW_SYS_OP_NTCIMG, KW_SYS_PARALLEL_TXN, KW_SYS_RID_ORDER, KW_SYSAUX, KW_SYSDATE, KW_SYSDBA, KW_SYSOPER, KW_SYSTEM, KW_SYSTIMESTAMP, KW_TABLE, KW_TABLE_STATS, KW_TABLES, KW_TABLESPACE, KW_TABLESPACE_NUMBER, KW_TABNO, KW_TEMPFILE, KW_TEMPLATE, KW_TEMPORARY, KW_TEST, KW_THAN, KW_THE, KW_THEN, KW_THREAD, KW_THROUGH, KW_TIME, KW_TIME_ZONE, KW_TIMEOUT, KW_TIMESTAMP, KW_TIMEZONE_ABBR, KW_TIMEZONE_HOUR, KW_TIMEZONE_MINUTE, KW_TIMEZONE_REGION, KW_TIV_GB, KW_TIV_SSF, KW_TO, KW_TOPLEVEL, KW_TRACE, KW_TRACING, KW_TRACKING, KW_TRAILING, KW_TRANSACTION, KW_TRANSITIONAL, KW_TREAT, KW_TRIGGER, KW_TRIGGERS, KW_TRUE, KW_TRUNCATE, KW_TRUSTED, KW_TUNING, KW_TX, KW_TYPE, KW_TYPES, KW_TZ_OFFSET, KW_UBA, KW_UID, KW_UNARCHIVED, KW_UNBOUND, KW_UNBOUNDED, KW_UNDER, KW_UNDO, KW_UNDROP, KW_UNIFORM, KW_UNION, KW_UNIQUE, KW_UNLIMITED, KW_UNLOCK, KW_UNNEST, KW_UNPACKED, KW_UNPROTECTED, KW_UNQUIESCE, KW_UNRECOVERABLE, KW_UNTIL, KW_UNUSABLE, KW_UNUSED, KW_UPD_INDEXES, KW_UPD_JOININDEX, KW_UPDATABLE, KW_UPDATE, KW_UPDATED, KW_UPGRADE, KW_UPSERT, KW_UROWID, KW_USAGE, KW_USE, KW_USE_ANTI, KW_USE_CONCAT, KW_USE_HASH, KW_USE_MERGE, KW_USE_NL, KW_USE_NL_WITH_INDEX, KW_USE_PRIVATE_OUTLINES, KW_USE_SEMI, KW_USE_STORED_OUTLINES, KW_USE_TTT_FOR_GSETS, KW_USE_WEAKW_NAME_RESL, KW_USER, KW_USER_DEFINED, KW_USER_RECYCLEBIN, KW_USING, KW_VALIDATE, KW_VALIDATION, KW_VALUE, KW_VALUES, KW_VARCHAR, KW_VARCHAR2, KW_VARRAY, KW_VARYING, KW_VECTOR_READ, KW_VECTOR_READ_TRACE, KW_VERSION, KW_VERSIONS, KW_VIEW, KW_WAIT, KW_WELLFORMED, KW_WHEN, KW_WHENEVER, KW_WHERE, KW_WHITESPACE, KW_WITH, KW_WITHIN, KW_WITHOUT, KW_words, KW_WORK, KW_WRITE, KW_X_DYN_PRUNE, KW_XID, KW_XMLATTRIBUTES, KW_XMLCOLATTVAL, KW_XMLELEMENT, KW_XMLFOREST, KW_XMLPARSE, KW_XMLSCHEMA, KW_XMLTYPE, KW_YEAR, KW_ZONE, RW_ALL, RW_ALTER, RW_AND, RW_ANY, RW_AS, RW_ASC, RW_BETWEEN, RW_BY, RW_CHECK, RW_CLUSTER, RW_COMPRESS, RW_CONNECT, RW_CREATE, RW_DATE, RW_DEFAULT, RW_DELETE, RW_DESC, RW_DISTINCT, RW_DROP, RW_ELSE, RW_EXCLUSIVE, RW_EXISTS, RW_first, RW_FLOAT, RW_FOR, RW_FROM, RW_GRANT, RW_GROUP, RW_HAVING, RW_IDENTIFIED, RW_IN, RW_INDEX, RW_INSERT, RW_INTERSECT, RW_INTO, RW_IS, RW_last, RW_LIKE, RW_LOCK, RW_LONG, RW_MINUS, RW_MODE, RW_NOCOMPRESS, RW_NOT, RW_NOWAIT, RW_NULL, RW_NUMBER, RW_OF, RW_ON, RW_OPTION, RW_OR, RW_ORDER, RW_PCTFREE, RW_PRIOR, RW_PUBLIC, RW_RAW, RW_RENAME, RW_RESOURCE, RW_REVOKE, RW_SELECT, RW_SET, RW_SHARE, RW_SIZE, RW_START, RW_SYNONYM, RW_TABLE, RW_THEN, RW_TO, RW_TRIGGER, RW_UNION, RW_UNIQUE, RW_UPDATE, RW_VALUES, RW_VARCHAR, RW_VARCHAR2, RW_VIEW, RW_WHERE, RW_WITH, SW_ACCESS, SW_ADD, SW_AUDIT, SW_COLUMN, SW_COMMENT, SW_CURRENT, SW_FILE, SW_first, SW_IMMEDIATE, SW_INCREMENT, SW_INITIAL, SW_last, SW_LEVEL, SW_MAXEXTENTS, SW_MLSLABEL, SW_MODIFY, SW_NOAUDIT, SW_OFFLINE, SW_ONLINE, SW_PRIVILEGES, SW_ROW, SW_ROWID, SW_ROWNUM, SW_ROWS, SW_SESSION, SW_SUCCESSFUL, SW_SYSDATE, SW_UID, SW_USER, SW_VALIDATE, SW_WHENEVER
OP_AMPERSAND, OP_ARROW, OP_ASSIGN, OP_ATSIGN, OP_base, OP_CAT, OP_COLON, OP_COMMA, OP_DBLDOT, OP_DOT, OP_ELLIPSIS, OP_EQUAL, OP_EXP, OP_GREATER, OP_GTEQL, OP_L_LBL, OP_LBRKT, OP_LESS, OP_LPAREN, OP_LTEQ, OP_max, OP_MINUS, OP_NOTEQL1, OP_NOTEQL2, OP_NOTEQL3, OP_NOTEQL4, OP_OR, OP_OUTERJOIN, OP_PERCENT, OP_PLUS, OP_R_LBL, OP_RBRKT, OP_RPAREN, OP_SEMICLN, OP_SHRIEK, OP_SLASH, OP_STAR, OP_words, TK_BIND_VAR, TK_EOS, TK_IDENTIFIER, TK_invalid, TK_INVALID, TK_MULTI_COMMENT, TK_N, TK_QUOTED_IDENTIFIER, TK_SINGLE_COMMENT, TK_STRING
Constructor and Description |
---|
SqlLexer()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
backup()
Unlexes the last found token.
|
static boolean |
isDecimalDigit(char digit)
Utility routine to check whether the given digit is a decimal
digit.
|
int |
lex(LexerToken lexedToken)
Scans the text buffer at the current position and returns the
token that was found.
|
protected void |
restore_context(BaseSqlLexer.Context context) |
protected void |
save_context(BaseSqlLexer.Context context) |
void |
setSkipComments(boolean skipComments)
Sets whether the
PlsqlLexer should generate tokens
for Java comments. |
protected void |
skipQuotedStringLiteral()
Skip an alternatively quoted string literal, syntax introduced in
Database 10gR1.
|
protected void |
skipStringLiteral()
Utility routine which scans through the text buffer to find the
end of the string literal.
|
createLexerToken, getTextBuffer, setPosition, setTextBuffer
protected static final int CONTEXT_SIZE
protected static final int TK_NOT_FOUND
protected int lastToken
lex()
operation.protected int startOffset
protected int endOffset
protected int hash
public void setSkipComments(boolean skipComments)
PlsqlLexer
should generate tokens
for Java comments.skipComments
- true to ignore comments in token generationpublic int lex(LexerToken lexedToken)
lexedToken
instance passed in to the
call.lex
in interface Lexer
lex
in class AbstractLexer
lexedToken
- the instance passed in where token info is storedlexedToken.getToken()
(for convenience)public void backup()
lex()
will return the last token and offset information found.backup
in interface Lexer
backup
in class AbstractLexer
protected final void skipStringLiteral()
protected final void skipQuotedStringLiteral()
public static boolean isDecimalDigit(char digit)
digit
- the digit to checkprotected void save_context(BaseSqlLexer.Context context)
protected void restore_context(BaseSqlLexer.Context context)