com.judoscript.parser
Class JudoParser

java.lang.Object
  extended by com.judoscript.JudoUtil
      extended by com.judoscript.parser.helper.ParserHelper
          extended by com.judoscript.parser.JudoParser
All Implemented Interfaces:
Consts, JudoParserConstants

public final class JudoParser
extends ParserHelper
implements JudoParserConstants


Nested Class Summary
 
Nested classes/interfaces inherited from class com.judoscript.parser.helper.ParserHelper
ParserHelper.SgmlEvent
 
Field Summary
 Token jj_nt
           
 boolean lookingAhead
           
 Token token
           
 JudoParserTokenManager token_source
           
 
Fields inherited from class com.judoscript.parser.helper.ParserHelper
curFileIndex, currentNS, definedClasses, emptyExprs, encoding, eol, first, inClassDef, inFxnThrd, inJavaCtor, inJavax, javaxCalls, labels, mixtureParser, ops, pc, rest, script, SGML_AFTER, SGML_BEFORE, SGML_DEFAULT_TAG, SGML_SPECIAL, SGML_TAG, SGML_TEXT, stack, stmts, superCalls
 
Fields inherited from class com.judoscript.JudoUtil
searchCP
 
Fields inherited from interface com.judoscript.parser.JudoParserConstants
__EOF, _COPY, _DEFAULT, _EOF, _SKIP, _USAGE, ADDBATCH, AFTER, ANDANDASSIGN, ANDASSIGN, ANTTASK__, ARROW, AS, ASSIGN, ATASSIGN, ATSIGN, ATTACH, ATTRIBUTESOF, BANG, BBANG, BCC, BIT_AND, BIT_OR, BODY, BOOLEAN, BREAK, BY, BYTE, CASE, CATCH, CC, CHAR, CLASS, COLON, COLONCOLON, COLUMN, COM__, COMMA, CONNECT, CONST, CONST_NAME, CONSTRUCTOR, CONTINUE, COPY, CTOR, DATE, DATE_, DB__ADDBATCH, DB__ANY, DB__BATCH, DB__CALL, DB__CONNECT, DB__DISCONNECT, DB__DUMPTABLE, DB__PREPARE, DB__PREPARECALL, DB__QUERY, DB__QUERYCALL, DB__SQL, DB__UPDATE, DB__UPDATECALL, DECIMAL_LITERAL, DECR, DEFAULT, DEFINED, DEFINEJAVAPACKAGES, DELETE, DIGIT, DO, DOLLAR, DOLLARLBRACE, DOM, DOT, DOTDOT, DOUBLE, DOWNTO, EJBQL, ELIF, ELSE, ENDSCRIPT, EOF, EQ, EQ_, ESCAPED, EXCEPT, EXEC, EXEC_RESULT_LITERAL, EXEC_RESULTLINES_LITERAL, EXECUTEANY, EXECUTEBATCH, EXECUTEQUERY, EXECUTEQUERYCALL, EXECUTESQL, EXECUTEUPDATE, EXECUTEUPDATECALL, EXPONENT, EXTENDS, EXTENDSJAVA, FALSE, FINALLY, FLOAT, FLOATING_POINT_LITERAL, FLUSH, FOR, FORMAL_COMMENT, FROM, FUNCTION, GE, GT, GUI__EVENTS, GUIEVENTS, HEREDOC, HEREDOC_BEGIN, HEREDOC_BEGIN_, HEREDOC_END, HEREDOC_PART, HEX_DIGIT, HEX_LITERAL, HIB__ADDCLASS, HIB__ADDRESOURCE, HIB__CLOSE, HIB__DELETE, HIB__GET, HIB__ITERATE, HIB__LOCK, HIB__QUERY, HIB__SAVE, HIB__SAVEORUPDATECOPY, HIB__SETUP, HIB__TXABORT, HIB__TXBEGIN, HIB__TXEND, HIB__UNLOCK, HIB__UPDATE, HOOK, HTML, HTMLBODY, IDENTIFIER, IF, IFDEF, IFEXISTS, IFNDEF, IMPORT, IN, INCLUDE, INCR, INEXPR_END, INEXPR_START, INFINITY, INPUT, INT, INTEGER_LITERAL, INTO, JAVA__, JAVABASECLASS, JAVACLASS, JAVACORBACLASS, JAVAENTERPRISECLASS, JAVAGUICLASS, JAVANEW, JAVAPACKAGES, JCOMCLASS, JSP, LAMBDA, LBRACE, LBRACKET, LE, LETTER, LIMIT, LINKEDLIST, LINKEDLIST_, LIST, LLBRACE, LOCAL, LONG, LPAREN, LS, LSHIFT, LSHIFTASSIGN, LT, LTBAN, LTPERC, LTPERCAMP, LTPERCBAN, LTPERCDASHDASH, LTPERCEQ, LTPERCPLUS, LTQUES, LTSLASH, MAIL__CONNECT, MAIL__DISCONNECT, MAIL__EMBED, MAIL__SEND, MANIFEST, MAX_NUMBER, MIN_NUMBER, MINUS, MINUSASSIGN, MIXTURE, MIXTURE_PART, MULTI_LINE_COMMENT, MULTI_LINE_COMMENT1, NAMESPACE, NE, NE_, NEEDSYSTEMIN, NEW, NL, NULL, NUMBER, NUMBER_, OCTAL_LITERAL, ON, ONSUCCESS, ORASSIGN, ORDERED, ORORASSIGN, OUTPUT, OUTPUTPROPERTIES, PARAMETERS, PLUS, PLUSASSIGN, POUND, PRAGMA, PREPARE, PREPARECALL, PREPAREDEXECUTE, PREPAREDEXECUTECALL, PREPAREDEXECUTECALLQUERY, PREPAREDEXECUTECALLUPDATE, PREPAREDEXECUTEQUERY, PREPAREDEXECUTEUPDATE, PRINT, PRINTLN, PRINTTABLE, PRINTTABLEDATA, RBRACE, RBRACKET, REGEX_LITERAL, REM, REMASSIGN, REPEAT, RESUME, RETURN, RMDIR, RPAREN, RRBRACE, RSIGNEDSHIFT, RSIGNEDSHIFTASSIGN, RUNSIGNEDSHIFT, RUNSIGNEDSHIFTASSIGN, SC_AND, SC_OR, SCHEDULE, SCP, SEMICOLON, SENDMAIL, SET, SET_, SETFILETIME, SETREADONLY, SETREADWRITE, SGML, SGML_COMMENT, SHELL_SCRIPT_COMMENT, SHORT, SINGLE_ARROW, SINGLE_LINE_COMMENT, SLASH, SLASHASSIGN, SORTEDMAP, SORTEDMAP_, STAR, STARASSIGN, STARSTAR, STARTING, STRING, STRING_, STRING_LITERAL, STRIP, SUBJECT, SUPER, SWITCH, SYSTEMID, TARGET, THIS, THREAD, THROW, TILDE, TO, tokenImage, TRUE, TRY, TWOWAYARROW, TYPEOF, UNDEFINED, UNDER, UNDERSCORE, UPTO, USE, USING, VAR, VOID, WHERE, WHILE, WITH, WSDL__, XML, XML__, XMLNS, XOR, XORASSIGN, XPATH, XSLT
 
Fields inherited from interface com.judoscript.Consts
ADAPTER_PREFIX, ANNOTATION_NAME, ANY_TAG_SYMBOL, ANY_TEXT_SYMBOL, ARGS_NAME, BSF_NAME, CONTEXT_NAME, DEFAULT_CONNECTION_NAME, DEFAULT_HIBERNATE_NAME, DEFAULT_NS_SYMBOL, DYNAMIC_EVAL, DYNAMIC_EVALEXTERNAL, DYNAMIC_EVALFILE, FOREVER, FS_ADD_TO_CLASSPATH, FS_COPY, FS_DO, FS_LIST, FS_LIST_BY_DATE, FS_LIST_BY_EXT, FS_LIST_BY_NAME, FS_LIST_BY_NONE, FS_LIST_BY_SIZE, FS_LIST_COMPRESSED_SIZE, FS_LIST_COUNT, FS_LIST_COUNTLINES, FS_LIST_COUNTWORDS, FS_LIST_PER_FILE, FS_LIST_PER_NONE, FS_LIST_SIZE, FS_MAKEDIR, FS_MOVE, FS_NONE, FS_REMOVE, FS_REMOVEDIR, FS_RESULT_NAME, FS_SETFILETIME, FS_SETREADONLY, FS_SETREADWRITE, HTTP_GET, HTTP_HEAD, HTTP_POST, IO_GZIPPED_INPUTFILE, IO_GZIPPED_OUTPUTFILE, IO_GZIPPED_TEXTINPUTFILE, IO_GZIPPED_TEXTOUTPUTFILE, IO_INPUTSTREAM, IO_OUTPUTSTREAM, IO_RANDOMACCESS, IO_TEXTINPUTFILE, IO_TEXTOUTPUTFILE, ISSUE_LEVEL_DEBUG, ISSUE_LEVEL_ERROR, ISSUE_LEVEL_IGNORE, ISSUE_LEVEL_INFO, ISSUE_LEVEL_WARN, JAVA_ANY, JAVA_ANY_I, JAVA_BOOLEAN, JAVA_BOOLEAN_I, JAVA_BOOLEAN_O, JAVA_BYTE, JAVA_BYTE_I, JAVA_BYTE_O, JAVA_CHAR, JAVA_CHAR_I, JAVA_CHAR_O, JAVA_CURRENCY, JAVA_CURRENCY_I, JAVA_DATE_O, JAVA_DOUBLE, JAVA_DOUBLE_I, JAVA_DOUBLE_O, JAVA_FLOAT, JAVA_FLOAT_I, JAVA_FLOAT_O, JAVA_INT, JAVA_INT_I, JAVA_INT_O, JAVA_LONG, JAVA_LONG_I, JAVA_LONG_O, JAVA_SHORT, JAVA_SHORT_I, JAVA_SHORT_O, JAVA_SQL_DATE_O, JAVA_SQL_TIME_O, JAVA_SQL_TIMESTAMP_O, JAVA_STRING, JAVA_STRING_I, LABEL_SCHEDULE, LAMBDA_PREFIX, LOCAL_NAME, LOCALTEXT_NAME, MAX_READ_FILE_LENGTH, NODE_PREFIX, OP_AND, OP_AND_ASSIGN, OP_ASSIGN, OP_COMPLEMENT, OP_CONCAT, OP_CONCAT_ASSIGN, OP_COPY, OP_DIV, OP_DIV_ASSIGN, OP_EQ, OP_GE, OP_GT, OP_LE, OP_LOGIC_AND_ASSIGN, OP_LOGIC_OR_ASSIGN, OP_LSHIFT, OP_LSHIFT_ASSIGN, OP_LT, OP_MINUS, OP_MINUS_ASSIGN, OP_MOD, OP_MOD_ASSIGN, OP_MUL, OP_MUL_ASSIGN, OP_NE, OP_NOT, OP_OR, OP_OR_ASSIGN, OP_PLUS, OP_PLUS_ASSIGN, OP_RSHIFT, OP_RSHIFT_ASSIGN, OP_RUSHIFT, OP_RUSHIFT_ASSIGN, OP_XOR, OP_XOR_ASSIGN, OPTION_JDBC_PASSWORD, OPTION_JDBC_URL, OPTION_JDBC_USERNAME, ORACLE_BFILE, ORACLE_CURSOR, ORACLE_FIXED_CHAR, ORACLE_NUMBER, ORACLE_PLSQL_INDEX_TABLE, ORACLE_RAW, ORACLE_ROWID, PARENT_NAME, PARSER_NAME, PRAGMA_ASSERTION, PRAGMA_CRYPTOCLASS, PRAGMA_GUILISTENER, PRAGMA_INCLUDEPATH, PRAGMA_JAVACOMPILER, PRAGMA_JDBCDRIVER, pragma_names, PRAGMA_UNKNOWN, PREPARED_STMT_CALL, PRINT_ERR, PRINT_LOG, PRINT_OUT, PRINT_PIPE, PRINT_USER, RTERR_ASSERTION_FAILURE, RTERR_BAD_PRINT_TARGET, RTERR_CONSTANT_NOT_DEFINED, RTERR_CONSTANT_REDEFINITION, RTERR_EMBEDDED_JAVA_COMPILE_FAILED, RTERR_ENVIRONMENT_ERROR, RTERR_EVALUATION_FAILED, RTERR_FS_COPY_MOVE_FAILED, RTERR_FS_CREATE_DIR_FAILED, RTERR_FS_REMOVE_DIR_FAILED, RTERR_FUNCTION_ALREADY_DEFINED, RTERR_ILLEGAL_ACCESS, RTERR_ILLEGAL_ARGUMENTS, RTERR_ILLEGAL_INDEXED_ACCESS, RTERR_ILLEGAL_JUMP, RTERR_ILLEGAL_STATEMENT, RTERR_ILLEGAL_VALUE_SETTING, RTERR_INTERNAL_ERROR, RTERR_INVALID_ARRAY_ACCESS, RTERR_INVALID_JAVA_VERSION, RTERR_INVALID_MEMBER_ACCESS, RTERR_INVALID_NUMBER_FORMAT, RTERR_INVALID_VARIABLE_NAME, RTERR_IO_FAILURE, RTERR_IO_FILE_OPEN_FAILURE, RTERR_JAVA_COMPILE_FAILED, RTERR_JAVA_EXCEPTION, RTERR_JAVA_METHOD_CALL, RTERR_JAVA_OBJECT_CREATION, RTERR_JDBC_DRIVER_NOT_FOUND, RTERR_JDBC_FAILURE, RTERR_JDBC_INVALID_COLUMN, RTERR_JDBC_WARNING, RTERR_MAIL_MISSING_FIELD, RTERR_MAILSERVER_NOT_CONNECTED, RTERR_METHOD_NOT_FOUND, rterr_names, RTERR_NO_SUCH_VALUE, RTERR_OBJECT_INIT, RTERR_TIMER_ALREADY_EXISTS, RTERR_UNDEFINED_GUI_EVENT, RTERR_UNDEFINED_OBJECT_TYPE, RTERR_USER_EXCEPTION, RTERR_XML_PARSING_ERROR, RULEENGINE_MAX_ITERATIONS, SYS_NAME, TEMPVAR_PREFIX, TEXT_PREFIX, THIS_NAME, THREAD_PREFIX, TIMER_NAME, TYPE_ARRAY, TYPE_CALLABLE, TYPE_COM, TYPE_COMPLEX, TYPE_CONTEXT, TYPE_DATE, TYPE_DOUBLE, TYPE_FUNCTION, TYPE_INT, TYPE_INTERNAL, TYPE_JAVA, TYPE_NAN, TYPE_NIL, TYPE_OBJECT, TYPE_QUEUE, TYPE_SET, TYPE_STACK, TYPE_STRING, TYPE_STRUCT, TYPE_UNDEFINED, TYPE_UNKNOWN, TYPE_WS, TYPE1_SYMBOL, TYPE2_SYMBOL, TYPE3_SYMBOL, XML_EVENT_PREFIX
 
Constructor Summary
JudoParser(CharStream stream)
           
JudoParser(JudoParserTokenManager tm)
           
 
Method Summary
 StmtFor _ForClause(int lineNo, java.lang.String label)
           
 StmtForFrom _ForFromToClause(int lineNo, java.lang.String label)
           
 StmtForIn _ForInClause(int lineNo, java.lang.String label)
           
 void _onSuccessClause(java.lang.String handleName)
           
 void AddBatchStatement()
           
 void AdditiveExpression()
           
 void AndExpression()
           
 void Annotation(java.util.HashMap map)
           
 void AnonFunctionDecl()
           
 void AnonFunctionDecl1()
           
 void AnyName()
           
 void ArgumentList(Expr firstParam, int type, boolean paramsExpand)
           
 void Arguments(Expr firstParam, int type)
           
 void ArrayAllocator()
           
 void Assignment()
           
 int AssignmentOperator()
           
 void BindVariable(boolean forHib)
           
 Expr[] BindVariableList(boolean forHib)
           
 void Block()
           
 void BooleanLiteral()
           
 void ClassDefinition()
           
 void ComAllocator()
           
 java.lang.Object ComparatorDecl()
           
 void CompilationUnit(boolean usageOnly)
          THE JUDO LANGUAGE GRAMMAR STARTS HERE *
 Script CompilationUnit(java.lang.String name, java.lang.String path, long lastMod, boolean needDebugDir)
           
 void ConditionalAndExpression()
           
 void ConditionalExpression()
           
 void ConditionalOrExpression()
           
 void ConnectStatement()
           
 void ConstantDefinition()
           
 FunctionUser ConstructorDecl(boolean isJava)
           
 void DeleteExpression()
           
 void Directives()
          DIRECTIVES SYNTAX STARTS HERE *
 void disable_tracing()
           
 void Dom()
          XML APPLICATION SYNTAX STARTS HERE *
 void DoWhileStatement()
           
 void DumpTableStatement()
           
 void enable_tracing()
           
 void Encoding()
           
 void EqualityExpression()
           
 void ExclusiveOrExpression()
           
 void ExecuteAnyStatement()
           
 void ExecuteBatchStatement()
           
 void ExecuteQueryStatement()
           
 void ExecuteSqlStatement()
           
 void ExecuteUpdateStatement()
           
 void Expression()
           
 void ExpressionList()
           
 void ExpressionStatement()
           
 void FileSystemStatements()
           
 Expr[] FormalParameterList()
           
 Expr[] FormalParameters()
           
 Expr[] FormalParameters1()
           
 void FormalParametersNoInit()
           
 void ForStatement()
           
 void FSCopyStatement()
           
 void FSListStatements()
           
 void FSRemoveDirStatements()
           
 void FunctionDecl()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 java.util.HashMap getUsage(java.lang.String name, java.lang.String path)
           
 void GuiEvent()
           
 void GuiEventList()
           
 void GuiEventsStatement()
          GUI APPLICATION SYNTAX STARTS HERE *
 void GuiListener(StmtGuiEvents guistmt)
           
 void HereDoc()
          Here-Doc, Mixture and RawSqlList Syntax *
 void HereDocContent()
           
 void HibQueryStatement()
           
 void HibSetupStatement()
           
 void HqlStatements()
          HQL APPLICATION SYNTAX STARTS HERE *
 void id(java.lang.String s)
           
 void IfStatement()
           
 void importElement()
           
 void InclusiveOrExpression()
           
 void IndividualStatement()
           
 void JavaAllocator()
           
 void JavaAllowedName()
           
 java.lang.String JavaClassName()
           
 void JavaMethodDecl()
           
 java.lang.String JavaPrimitiveTypeNames(boolean forVM)
           
 java.lang.Integer JavaPrimitiveTypes()
           
 java.lang.String JavaTypeName(boolean forVM)
           
 java.lang.String JavaxDefinition(java.lang.String className)
           
 void JdbcStatements()
          JDBC APPLICATION SYNTAX STARTS HERE *
 void LabelName()
          // code sample JAVACODE void skip_to_matching_brace() { Token tok; int nesting = 1; while (true) { tok = getToken(1); if (tok.kind == LBRACE) nesting++; if (tok.kind == RBRACE) { nesting--; if (nesting == 0) break; } tok = getNextToken(); } }
 void LinesStatement()
           
 void Literal()
           
 void LocalVariableDecl()
           
 void LocalVariableDeclaration()
           
 void MailStatement()
          MAIL APPLICATION SYNTAX STARTS HERE *
 void MDArrayInitializer()
           
 void MemberInitializer()
           
 void MemberInitList()
           
 void MemberInitList1()
           
 void Mixture()
           
 void MultiAssignment()
           
 void MultiDimArrayInit()
           
 Expr[] MultiMixture()
           
 void MultiplicativeExpression()
           
 void ObjectAllocator()
           
 void optionNotApplyTo(java.lang.String option, java.lang.String target)
           
 void Parameter()
           
 void PostfixExpression()
           
 void PotentialFunctionName()
           
 void PowerExpression()
           
 void PrefixExpression()
           
 java.lang.String PrepareClause(boolean isCall)
           
 void PrepareStatement()
           
 void PrimaryExpression(boolean left)
           
 void PrimaryPrefix()
           
 void PrimarySimpleExpression(boolean left)
           
 boolean PrimarySuffix(boolean left)
           
 void PrintArgument()
           
 void PrintArgumentList()
           
 void PrintStatement()
          GENERAL APPLICATION SYNTAX STARTS HERE *
 void PrintTableStatement()
           
 void QueryOption(Expr[] inits)
           
 Expr[] RawSqlList()
           
 void ReInit(CharStream stream)
           
 void ReInit(JudoParserTokenManager tm)
           
 void RelationalExpression()
           
 void RepeatStatement()
           
 void ReturnableExpression()
           
 void RunStatement()
          DYNAMIC STATEMENT SYNTAX STARTS HERE *
 void ScheduleStatement()
          SCHEDULING APPLICATION SYNTAX STARTS HERE *
 void SCPStatement()
           
 ParserHelper.SgmlEvent SgmlEvent(StmtHtml hndr)
           
 void SgmlEventHandler(StmtHtml hndr)
           
 void SgmlHandlerDecl()
           
 void SgmlStatement()
          HTML APPLICATION SYNTAX STARTS HERE *
 void ShiftExpression()
           
 void SimpleBlock(Stmt[] preStmts, boolean leaveOnStack)
           
 Expr SingleMixture()
           
 void StartThreadStatement()
           
 void Statement()
           
 void SwitchStatement()
           
 java.lang.String TagName()
           
 void ThreadDecl()
           
 void throwParseException(java.lang.String message, java.lang.String hint)
           
 void ThrowStatement()
           
 void UnaryExpression()
           
 void UnaryExpressionNotPlusMinus()
           
 void upgradeToDate()
           
 void upgradeToLinkedList()
           
 void upgradeToNumber()
           
 void upgradeToSet()
           
 void upgradeToSortedMap()
           
 void upgradeToString()
           
 void upgradeToUse()
           
 void upgradeToVar()
          HALF-LEXER-HALF-PARSER *
 void VMType()
           
 void WhileStatement()
           
 void WSDLAllocator()
           
 void XmlInitializer(XmlProperty xp)
           
 void XmlInitList(XmlProperty xp)
           
 void XmlStatement()
           
 void XmlTagHandler(XmlHandler hndr)
           
 java.lang.String[] XmlTagName()
           
 void XsltStatement()
           
 
Methods inherited from class com.judoscript.parser.helper.ParserHelper
addClassToScript, addFunction, addFunction, addSgmlHandler, checkAntTask, CheckSupportedAntTask, cleanup, close, countOnStack, defineJavaPackages, evalConstToBool, getScriptBasePath, getTargetID, handleAny, handleBlock, handleExprs, handleForIn, handleJavaPackages, handleMixture, handleMixture, handleMultiBase, handleMultiBase1, handleNamedExprs, handlePragma, handleRegexLiteral, handleSingleExpr, handleSingleExpr, handleStmts, handleStrings, isOctalChar, markStack, newBindVar, newCall, newCall, newCall, newJava, newJava, newOutBoundVar, nonAssignExpr, parse, parse, parse, parseInt, parseUsage, reduce, reduce, reduceBlock, reduceIt, throwParseException, throwParseException, unicodify, unquote, unquote
 
Methods inherited from class com.judoscript.JudoUtil
arrayToJudoArray, checkJCE, comWrap, copy, createSimpleArith, createSimpleRelation, findFile, findFile, findFileInClasspath, findFileInJudoPath, findInClasspath, fixFilePath, fixFilePaths, fixIncludeFilePath, genTempVarName, genTempVarName, getJavaException, getJavaPrimitiveTypeName, getLocale, getPathName, getRegexEngine, getSSH, getTempDir, getTime, isDate, isGetter, isNil, loadProperties, parseParams, parseString, parseStringAsObject, processMarkup, registerToBSF, scp, toArray, toChar, toLinePrintWriter, toLinePrintWriter, toParameterNameString, toVariable, toVariable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public JudoParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

JudoParser

public JudoParser(CharStream stream)

JudoParser

public JudoParser(JudoParserTokenManager tm)
Method Detail

getUsage

public java.util.HashMap getUsage(java.lang.String name,
                                  java.lang.String path)

CompilationUnit

public Script CompilationUnit(java.lang.String name,
                              java.lang.String path,
                              long lastMod,
                              boolean needDebugDir)
                       throws ParseException
Throws:
ParseException

optionNotApplyTo

public void optionNotApplyTo(java.lang.String option,
                             java.lang.String target)
                      throws ParseException
Throws:
ParseException

throwParseException

public void throwParseException(java.lang.String message,
                                java.lang.String hint)
                         throws ParseException
Specified by:
throwParseException in class ParserHelper
Throws:
ParseException

upgradeToVar

public final void upgradeToVar()
                        throws ParseException
HALF-LEXER-HALF-PARSER *

Throws:
ParseException

upgradeToLinkedList

public final void upgradeToLinkedList()
                               throws ParseException
Throws:
ParseException

upgradeToSet

public final void upgradeToSet()
                        throws ParseException
Throws:
ParseException

upgradeToSortedMap

public final void upgradeToSortedMap()
                              throws ParseException
Throws:
ParseException

upgradeToDate

public final void upgradeToDate()
                         throws ParseException
Throws:
ParseException

upgradeToString

public final void upgradeToString()
                           throws ParseException
Throws:
ParseException

upgradeToNumber

public final void upgradeToNumber()
                           throws ParseException
Throws:
ParseException

upgradeToUse

public final void upgradeToUse()
                        throws ParseException
Throws:
ParseException

id

public final void id(java.lang.String s)
              throws ParseException
Throws:
ParseException

CompilationUnit

public final void CompilationUnit(boolean usageOnly)
                           throws ParseException
THE JUDO LANGUAGE GRAMMAR STARTS HERE *

Throws:
ParseException

JavaClassName

public final java.lang.String JavaClassName()
                                     throws ParseException
Throws:
ParseException

JavaTypeName

public final java.lang.String JavaTypeName(boolean forVM)
                                    throws ParseException
Throws:
ParseException

JavaPrimitiveTypeNames

public final java.lang.String JavaPrimitiveTypeNames(boolean forVM)
                                              throws ParseException
Throws:
ParseException

ConstantDefinition

public final void ConstantDefinition()
                              throws ParseException
Throws:
ParseException

ClassDefinition

public final void ClassDefinition()
                           throws ParseException
Throws:
ParseException

JavaxDefinition

public final java.lang.String JavaxDefinition(java.lang.String className)
                                       throws ParseException
Throws:
ParseException

VMType

public final void VMType()
                  throws ParseException
Throws:
ParseException

JavaMethodDecl

public final void JavaMethodDecl()
                          throws ParseException
Throws:
ParseException

ConstructorDecl

public final FunctionUser ConstructorDecl(boolean isJava)
                                   throws ParseException
Throws:
ParseException

FunctionDecl

public final void FunctionDecl()
                        throws ParseException
Throws:
ParseException

Annotation

public final void Annotation(java.util.HashMap map)
                      throws ParseException
Throws:
ParseException

AnonFunctionDecl

public final void AnonFunctionDecl()
                            throws ParseException
Throws:
ParseException

AnonFunctionDecl1

public final void AnonFunctionDecl1()
                             throws ParseException
Throws:
ParseException

ThreadDecl

public final void ThreadDecl()
                      throws ParseException
Throws:
ParseException

FormalParameters

public final Expr[] FormalParameters()
                              throws ParseException
Throws:
ParseException

FormalParameters1

public final Expr[] FormalParameters1()
                               throws ParseException
Throws:
ParseException

FormalParameterList

public final Expr[] FormalParameterList()
                                 throws ParseException
Throws:
ParseException

FormalParametersNoInit

public final void FormalParametersNoInit()
                                  throws ParseException
Throws:
ParseException

Expression

public final void Expression()
                      throws ParseException
Throws:
ParseException

MultiAssignment

public final void MultiAssignment()
                           throws ParseException
Throws:
ParseException

Assignment

public final void Assignment()
                      throws ParseException
Throws:
ParseException

LocalVariableDecl

public final void LocalVariableDecl()
                             throws ParseException
Throws:
ParseException

LocalVariableDeclaration

public final void LocalVariableDeclaration()
                                    throws ParseException
Throws:
ParseException

ObjectAllocator

public final void ObjectAllocator()
                           throws ParseException
Throws:
ParseException

JavaAllocator

public final void JavaAllocator()
                         throws ParseException
Throws:
ParseException

ComAllocator

public final void ComAllocator()
                        throws ParseException
Throws:
ParseException

MultiDimArrayInit

public final void MultiDimArrayInit()
                             throws ParseException
Throws:
ParseException

MDArrayInitializer

public final void MDArrayInitializer()
                              throws ParseException
Throws:
ParseException

MemberInitList

public final void MemberInitList()
                          throws ParseException
Throws:
ParseException

MemberInitList1

public final void MemberInitList1()
                           throws ParseException
Throws:
ParseException

MemberInitializer

public final void MemberInitializer()
                             throws ParseException
Throws:
ParseException

AssignmentOperator

public final int AssignmentOperator()
                             throws ParseException
Throws:
ParseException

ConditionalExpression

public final void ConditionalExpression()
                                 throws ParseException
Throws:
ParseException

ConditionalOrExpression

public final void ConditionalOrExpression()
                                   throws ParseException
Throws:
ParseException

ConditionalAndExpression

public final void ConditionalAndExpression()
                                    throws ParseException
Throws:
ParseException

InclusiveOrExpression

public final void InclusiveOrExpression()
                                 throws ParseException
Throws:
ParseException

ExclusiveOrExpression

public final void ExclusiveOrExpression()
                                 throws ParseException
Throws:
ParseException

AndExpression

public final void AndExpression()
                         throws ParseException
Throws:
ParseException

EqualityExpression

public final void EqualityExpression()
                              throws ParseException
Throws:
ParseException

RelationalExpression

public final void RelationalExpression()
                                throws ParseException
Throws:
ParseException

ShiftExpression

public final void ShiftExpression()
                           throws ParseException
Throws:
ParseException

AdditiveExpression

public final void AdditiveExpression()
                              throws ParseException
Throws:
ParseException

MultiplicativeExpression

public final void MultiplicativeExpression()
                                    throws ParseException
Throws:
ParseException

PowerExpression

public final void PowerExpression()
                           throws ParseException
Throws:
ParseException

UnaryExpression

public final void UnaryExpression()
                           throws ParseException
Throws:
ParseException

PrefixExpression

public final void PrefixExpression()
                            throws ParseException
Throws:
ParseException

UnaryExpressionNotPlusMinus

public final void UnaryExpressionNotPlusMinus()
                                       throws ParseException
Throws:
ParseException

PostfixExpression

public final void PostfixExpression()
                             throws ParseException
Throws:
ParseException

PrimaryExpression

public final void PrimaryExpression(boolean left)
                             throws ParseException
Throws:
ParseException

PrimarySimpleExpression

public final void PrimarySimpleExpression(boolean left)
                                   throws ParseException
Throws:
ParseException

PrimaryPrefix

public final void PrimaryPrefix()
                         throws ParseException
Throws:
ParseException

PrimarySuffix

public final boolean PrimarySuffix(boolean left)
                            throws ParseException
Throws:
ParseException

Literal

public final void Literal()
                   throws ParseException
Throws:
ParseException

BooleanLiteral

public final void BooleanLiteral()
                          throws ParseException
Throws:
ParseException

Arguments

public final void Arguments(Expr firstParam,
                            int type)
                     throws ParseException
Throws:
ParseException

ArgumentList

public final void ArgumentList(Expr firstParam,
                               int type,
                               boolean paramsExpand)
                        throws ParseException
Throws:
ParseException

Parameter

public final void Parameter()
                     throws ParseException
Throws:
ParseException

JavaPrimitiveTypes

public final java.lang.Integer JavaPrimitiveTypes()
                                           throws ParseException
Throws:
ParseException

Statement

public final void Statement()
                     throws ParseException
Throws:
ParseException

IndividualStatement

public final void IndividualStatement()
                               throws ParseException
Throws:
ParseException

ExpressionStatement

public final void ExpressionStatement()
                               throws ParseException
Throws:
ParseException

SimpleBlock

public final void SimpleBlock(Stmt[] preStmts,
                              boolean leaveOnStack)
                       throws ParseException
Throws:
ParseException

Block

public final void Block()
                 throws ParseException
Throws:
ParseException

SwitchStatement

public final void SwitchStatement()
                           throws ParseException
Throws:
ParseException

IfStatement

public final void IfStatement()
                       throws ParseException
Throws:
ParseException

WhileStatement

public final void WhileStatement()
                          throws ParseException
Throws:
ParseException

DoWhileStatement

public final void DoWhileStatement()
                            throws ParseException
Throws:
ParseException

RepeatStatement

public final void RepeatStatement()
                           throws ParseException
Throws:
ParseException

ForStatement

public final void ForStatement()
                        throws ParseException
Throws:
ParseException

_ForClause

public final StmtFor _ForClause(int lineNo,
                                java.lang.String label)
                         throws ParseException
Throws:
ParseException

_ForFromToClause

public final StmtForFrom _ForFromToClause(int lineNo,
                                          java.lang.String label)
                                   throws ParseException
Throws:
ParseException

_ForInClause

public final StmtForIn _ForInClause(int lineNo,
                                    java.lang.String label)
                             throws ParseException
Throws:
ParseException

ExpressionList

public final void ExpressionList()
                          throws ParseException
Throws:
ParseException

ReturnableExpression

public final void ReturnableExpression()
                                throws ParseException
Throws:
ParseException

DeleteExpression

public final void DeleteExpression()
                            throws ParseException
Throws:
ParseException

WSDLAllocator

public final void WSDLAllocator()
                         throws ParseException
Throws:
ParseException

ArrayAllocator

public final void ArrayAllocator()
                          throws ParseException
Throws:
ParseException

ComparatorDecl

public final java.lang.Object ComparatorDecl()
                                      throws ParseException
Throws:
ParseException

PrintStatement

public final void PrintStatement()
                          throws ParseException
GENERAL APPLICATION SYNTAX STARTS HERE *

Throws:
ParseException

PrintArgumentList

public final void PrintArgumentList()
                             throws ParseException
Throws:
ParseException

PrintArgument

public final void PrintArgument()
                         throws ParseException
Throws:
ParseException

PrintTableStatement

public final void PrintTableStatement()
                               throws ParseException
Throws:
ParseException

ThrowStatement

public final void ThrowStatement()
                          throws ParseException
Throws:
ParseException

MailStatement

public final void MailStatement()
                         throws ParseException
MAIL APPLICATION SYNTAX STARTS HERE *

Throws:
ParseException

JdbcStatements

public final void JdbcStatements()
                          throws ParseException
JDBC APPLICATION SYNTAX STARTS HERE *

Throws:
ParseException

ConnectStatement

public final void ConnectStatement()
                            throws ParseException
Throws:
ParseException

PrepareStatement

public final void PrepareStatement()
                            throws ParseException
Throws:
ParseException

_onSuccessClause

public final void _onSuccessClause(java.lang.String handleName)
                            throws ParseException
Throws:
ParseException

PrepareClause

public final java.lang.String PrepareClause(boolean isCall)
                                     throws ParseException
Throws:
ParseException

QueryOption

public final void QueryOption(Expr[] inits)
                       throws ParseException
Throws:
ParseException

AddBatchStatement

public final void AddBatchStatement()
                             throws ParseException
Throws:
ParseException

DumpTableStatement

public final void DumpTableStatement()
                              throws ParseException
Throws:
ParseException

ExecuteQueryStatement

public final void ExecuteQueryStatement()
                                 throws ParseException
Throws:
ParseException

ExecuteUpdateStatement

public final void ExecuteUpdateStatement()
                                  throws ParseException
Throws:
ParseException

ExecuteSqlStatement

public final void ExecuteSqlStatement()
                               throws ParseException
Throws:
ParseException

ExecuteAnyStatement

public final void ExecuteAnyStatement()
                               throws ParseException
Throws:
ParseException

ExecuteBatchStatement

public final void ExecuteBatchStatement()
                                 throws ParseException
Throws:
ParseException

BindVariableList

public final Expr[] BindVariableList(boolean forHib)
                              throws ParseException
Throws:
ParseException

BindVariable

public final void BindVariable(boolean forHib)
                        throws ParseException
Throws:
ParseException

HqlStatements

public final void HqlStatements()
                         throws ParseException
HQL APPLICATION SYNTAX STARTS HERE *

Throws:
ParseException

HibSetupStatement

public final void HibSetupStatement()
                             throws ParseException
Throws:
ParseException

HibQueryStatement

public final void HibQueryStatement()
                             throws ParseException
Throws:
ParseException

HereDoc

public final void HereDoc()
                   throws ParseException
Here-Doc, Mixture and RawSqlList Syntax *

Throws:
ParseException

HereDocContent

public final void HereDocContent()
                          throws ParseException
Throws:
ParseException

Mixture

public final void Mixture()
                   throws ParseException
Throws:
ParseException

SingleMixture

public final Expr SingleMixture()
                         throws ParseException
Throws:
ParseException

MultiMixture

public final Expr[] MultiMixture()
                          throws ParseException
Throws:
ParseException

RawSqlList

public final Expr[] RawSqlList()
                        throws ParseException
Throws:
ParseException

LinesStatement

public final void LinesStatement()
                          throws ParseException
Throws:
ParseException

ScheduleStatement

public final void ScheduleStatement()
                             throws ParseException
SCHEDULING APPLICATION SYNTAX STARTS HERE *

Throws:
ParseException

Dom

public final void Dom()
               throws ParseException
XML APPLICATION SYNTAX STARTS HERE *

Throws:
ParseException

XmlStatement

public final void XmlStatement()
                        throws ParseException
Throws:
ParseException

XmlInitList

public final void XmlInitList(XmlProperty xp)
                       throws ParseException
Throws:
ParseException

XmlInitializer

public final void XmlInitializer(XmlProperty xp)
                          throws ParseException
Throws:
ParseException

XsltStatement

public final void XsltStatement()
                         throws ParseException
Throws:
ParseException

XmlTagHandler

public final void XmlTagHandler(XmlHandler hndr)
                         throws ParseException
Throws:
ParseException

XmlTagName

public final java.lang.String[] XmlTagName()
                                    throws ParseException
Throws:
ParseException

SgmlStatement

public final void SgmlStatement()
                         throws ParseException
HTML APPLICATION SYNTAX STARTS HERE *

Throws:
ParseException

Encoding

public final void Encoding()
                    throws ParseException
Throws:
ParseException

SgmlHandlerDecl

public final void SgmlHandlerDecl()
                           throws ParseException
Throws:
ParseException

SgmlEventHandler

public final void SgmlEventHandler(StmtHtml hndr)
                            throws ParseException
Throws:
ParseException

SgmlEvent

public final ParserHelper.SgmlEvent SgmlEvent(StmtHtml hndr)
                                       throws ParseException
Throws:
ParseException

GuiEventsStatement

public final void GuiEventsStatement()
                              throws ParseException
GUI APPLICATION SYNTAX STARTS HERE *

Throws:
ParseException

GuiListener

public final void GuiListener(StmtGuiEvents guistmt)
                       throws ParseException
Throws:
ParseException

GuiEventList

public final void GuiEventList()
                        throws ParseException
Throws:
ParseException

GuiEvent

public final void GuiEvent()
                    throws ParseException
Throws:
ParseException

RunStatement

public final void RunStatement()
                        throws ParseException
DYNAMIC STATEMENT SYNTAX STARTS HERE *

Throws:
ParseException

Directives

public final void Directives()
                      throws ParseException
DIRECTIVES SYNTAX STARTS HERE *

Throws:
ParseException

importElement

public final void importElement()
                         throws ParseException
Throws:
ParseException

SCPStatement

public final void SCPStatement()
                        throws ParseException
Throws:
ParseException

FileSystemStatements

public final void FileSystemStatements()
                                throws ParseException
Throws:
ParseException

FSListStatements

public final void FSListStatements()
                            throws ParseException
Throws:
ParseException

FSCopyStatement

public final void FSCopyStatement()
                           throws ParseException
Throws:
ParseException

FSRemoveDirStatements

public final void FSRemoveDirStatements()
                                 throws ParseException
Throws:
ParseException

StartThreadStatement

public final void StartThreadStatement()
                                throws ParseException
Throws:
ParseException

LabelName

public final void LabelName()
                     throws ParseException
// code sample JAVACODE void skip_to_matching_brace() { Token tok; int nesting = 1; while (true) { tok = getToken(1); if (tok.kind == LBRACE) nesting++; if (tok.kind == RBRACE) { nesting--; if (nesting == 0) break; } tok = getNextToken(); } }

Throws:
ParseException

JavaAllowedName

public final void JavaAllowedName()
                           throws ParseException
Throws:
ParseException

AnyName

public final void AnyName()
                   throws ParseException
Throws:
ParseException

TagName

public final java.lang.String TagName()
                               throws ParseException
Throws:
ParseException

PotentialFunctionName

public final void PotentialFunctionName()
                                 throws ParseException
Throws:
ParseException

ReInit

public void ReInit(CharStream stream)

ReInit

public void ReInit(JudoParserTokenManager tm)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

generateParseException

public ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()