|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.judoscript.JudoUtil
com.judoscript.parser.helper.ParserHelper
com.judoscript.parser.JudoParser
public final class JudoParser
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 |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public JudoParserTokenManager token_source
public Token token
public Token jj_nt
public boolean lookingAhead
Constructor Detail |
---|
public JudoParser(CharStream stream)
public JudoParser(JudoParserTokenManager tm)
Method Detail |
---|
public java.util.HashMap getUsage(java.lang.String name, java.lang.String path)
public Script CompilationUnit(java.lang.String name, java.lang.String path, long lastMod, boolean needDebugDir) throws ParseException
ParseException
public void optionNotApplyTo(java.lang.String option, java.lang.String target) throws ParseException
ParseException
public void throwParseException(java.lang.String message, java.lang.String hint) throws ParseException
throwParseException
in class ParserHelper
ParseException
public final void upgradeToVar() throws ParseException
ParseException
public final void upgradeToLinkedList() throws ParseException
ParseException
public final void upgradeToSet() throws ParseException
ParseException
public final void upgradeToSortedMap() throws ParseException
ParseException
public final void upgradeToDate() throws ParseException
ParseException
public final void upgradeToString() throws ParseException
ParseException
public final void upgradeToNumber() throws ParseException
ParseException
public final void upgradeToUse() throws ParseException
ParseException
public final void id(java.lang.String s) throws ParseException
ParseException
public final void CompilationUnit(boolean usageOnly) throws ParseException
ParseException
public final java.lang.String JavaClassName() throws ParseException
ParseException
public final java.lang.String JavaTypeName(boolean forVM) throws ParseException
ParseException
public final java.lang.String JavaPrimitiveTypeNames(boolean forVM) throws ParseException
ParseException
public final void ConstantDefinition() throws ParseException
ParseException
public final void ClassDefinition() throws ParseException
ParseException
public final java.lang.String JavaxDefinition(java.lang.String className) throws ParseException
ParseException
public final void VMType() throws ParseException
ParseException
public final void JavaMethodDecl() throws ParseException
ParseException
public final FunctionUser ConstructorDecl(boolean isJava) throws ParseException
ParseException
public final void FunctionDecl() throws ParseException
ParseException
public final void Annotation(java.util.HashMap map) throws ParseException
ParseException
public final void AnonFunctionDecl() throws ParseException
ParseException
public final void AnonFunctionDecl1() throws ParseException
ParseException
public final void ThreadDecl() throws ParseException
ParseException
public final Expr[] FormalParameters() throws ParseException
ParseException
public final Expr[] FormalParameters1() throws ParseException
ParseException
public final Expr[] FormalParameterList() throws ParseException
ParseException
public final void FormalParametersNoInit() throws ParseException
ParseException
public final void Expression() throws ParseException
ParseException
public final void MultiAssignment() throws ParseException
ParseException
public final void Assignment() throws ParseException
ParseException
public final void LocalVariableDecl() throws ParseException
ParseException
public final void LocalVariableDeclaration() throws ParseException
ParseException
public final void ObjectAllocator() throws ParseException
ParseException
public final void JavaAllocator() throws ParseException
ParseException
public final void ComAllocator() throws ParseException
ParseException
public final void MultiDimArrayInit() throws ParseException
ParseException
public final void MDArrayInitializer() throws ParseException
ParseException
public final void MemberInitList() throws ParseException
ParseException
public final void MemberInitList1() throws ParseException
ParseException
public final void MemberInitializer() throws ParseException
ParseException
public final int AssignmentOperator() throws ParseException
ParseException
public final void ConditionalExpression() throws ParseException
ParseException
public final void ConditionalOrExpression() throws ParseException
ParseException
public final void ConditionalAndExpression() throws ParseException
ParseException
public final void InclusiveOrExpression() throws ParseException
ParseException
public final void ExclusiveOrExpression() throws ParseException
ParseException
public final void AndExpression() throws ParseException
ParseException
public final void EqualityExpression() throws ParseException
ParseException
public final void RelationalExpression() throws ParseException
ParseException
public final void ShiftExpression() throws ParseException
ParseException
public final void AdditiveExpression() throws ParseException
ParseException
public final void MultiplicativeExpression() throws ParseException
ParseException
public final void PowerExpression() throws ParseException
ParseException
public final void UnaryExpression() throws ParseException
ParseException
public final void PrefixExpression() throws ParseException
ParseException
public final void UnaryExpressionNotPlusMinus() throws ParseException
ParseException
public final void PostfixExpression() throws ParseException
ParseException
public final void PrimaryExpression(boolean left) throws ParseException
ParseException
public final void PrimarySimpleExpression(boolean left) throws ParseException
ParseException
public final void PrimaryPrefix() throws ParseException
ParseException
public final boolean PrimarySuffix(boolean left) throws ParseException
ParseException
public final void Literal() throws ParseException
ParseException
public final void BooleanLiteral() throws ParseException
ParseException
public final void Arguments(Expr firstParam, int type) throws ParseException
ParseException
public final void ArgumentList(Expr firstParam, int type, boolean paramsExpand) throws ParseException
ParseException
public final void Parameter() throws ParseException
ParseException
public final java.lang.Integer JavaPrimitiveTypes() throws ParseException
ParseException
public final void Statement() throws ParseException
ParseException
public final void IndividualStatement() throws ParseException
ParseException
public final void ExpressionStatement() throws ParseException
ParseException
public final void SimpleBlock(Stmt[] preStmts, boolean leaveOnStack) throws ParseException
ParseException
public final void Block() throws ParseException
ParseException
public final void SwitchStatement() throws ParseException
ParseException
public final void IfStatement() throws ParseException
ParseException
public final void WhileStatement() throws ParseException
ParseException
public final void DoWhileStatement() throws ParseException
ParseException
public final void RepeatStatement() throws ParseException
ParseException
public final void ForStatement() throws ParseException
ParseException
public final StmtFor _ForClause(int lineNo, java.lang.String label) throws ParseException
ParseException
public final StmtForFrom _ForFromToClause(int lineNo, java.lang.String label) throws ParseException
ParseException
public final StmtForIn _ForInClause(int lineNo, java.lang.String label) throws ParseException
ParseException
public final void ExpressionList() throws ParseException
ParseException
public final void ReturnableExpression() throws ParseException
ParseException
public final void DeleteExpression() throws ParseException
ParseException
public final void WSDLAllocator() throws ParseException
ParseException
public final void ArrayAllocator() throws ParseException
ParseException
public final java.lang.Object ComparatorDecl() throws ParseException
ParseException
public final void PrintStatement() throws ParseException
ParseException
public final void PrintArgumentList() throws ParseException
ParseException
public final void PrintArgument() throws ParseException
ParseException
public final void PrintTableStatement() throws ParseException
ParseException
public final void ThrowStatement() throws ParseException
ParseException
public final void MailStatement() throws ParseException
ParseException
public final void JdbcStatements() throws ParseException
ParseException
public final void ConnectStatement() throws ParseException
ParseException
public final void PrepareStatement() throws ParseException
ParseException
public final void _onSuccessClause(java.lang.String handleName) throws ParseException
ParseException
public final java.lang.String PrepareClause(boolean isCall) throws ParseException
ParseException
public final void QueryOption(Expr[] inits) throws ParseException
ParseException
public final void AddBatchStatement() throws ParseException
ParseException
public final void DumpTableStatement() throws ParseException
ParseException
public final void ExecuteQueryStatement() throws ParseException
ParseException
public final void ExecuteUpdateStatement() throws ParseException
ParseException
public final void ExecuteSqlStatement() throws ParseException
ParseException
public final void ExecuteAnyStatement() throws ParseException
ParseException
public final void ExecuteBatchStatement() throws ParseException
ParseException
public final Expr[] BindVariableList(boolean forHib) throws ParseException
ParseException
public final void BindVariable(boolean forHib) throws ParseException
ParseException
public final void HqlStatements() throws ParseException
ParseException
public final void HibSetupStatement() throws ParseException
ParseException
public final void HibQueryStatement() throws ParseException
ParseException
public final void HereDoc() throws ParseException
ParseException
public final void HereDocContent() throws ParseException
ParseException
public final void Mixture() throws ParseException
ParseException
public final Expr SingleMixture() throws ParseException
ParseException
public final Expr[] MultiMixture() throws ParseException
ParseException
public final Expr[] RawSqlList() throws ParseException
ParseException
public final void LinesStatement() throws ParseException
ParseException
public final void ScheduleStatement() throws ParseException
ParseException
public final void Dom() throws ParseException
ParseException
public final void XmlStatement() throws ParseException
ParseException
public final void XmlInitList(XmlProperty xp) throws ParseException
ParseException
public final void XmlInitializer(XmlProperty xp) throws ParseException
ParseException
public final void XsltStatement() throws ParseException
ParseException
public final void XmlTagHandler(XmlHandler hndr) throws ParseException
ParseException
public final java.lang.String[] XmlTagName() throws ParseException
ParseException
public final void SgmlStatement() throws ParseException
ParseException
public final void Encoding() throws ParseException
ParseException
public final void SgmlHandlerDecl() throws ParseException
ParseException
public final void SgmlEventHandler(StmtHtml hndr) throws ParseException
ParseException
public final ParserHelper.SgmlEvent SgmlEvent(StmtHtml hndr) throws ParseException
ParseException
public final void GuiEventsStatement() throws ParseException
ParseException
public final void GuiListener(StmtGuiEvents guistmt) throws ParseException
ParseException
public final void GuiEventList() throws ParseException
ParseException
public final void GuiEvent() throws ParseException
ParseException
public final void RunStatement() throws ParseException
ParseException
public final void Directives() throws ParseException
ParseException
public final void importElement() throws ParseException
ParseException
public final void SCPStatement() throws ParseException
ParseException
public final void FileSystemStatements() throws ParseException
ParseException
public final void FSListStatements() throws ParseException
ParseException
public final void FSCopyStatement() throws ParseException
ParseException
public final void FSRemoveDirStatements() throws ParseException
ParseException
public final void StartThreadStatement() throws ParseException
ParseException
public final void LabelName() throws ParseException
ParseException
public final void JavaAllowedName() throws ParseException
ParseException
public final void AnyName() throws ParseException
ParseException
public final java.lang.String TagName() throws ParseException
ParseException
public final void PotentialFunctionName() throws ParseException
ParseException
public void ReInit(CharStream stream)
public void ReInit(JudoParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |