|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdsql.DMExecuted
dsql.parser.Parser
Field Summary | |
Token |
jj_nt
|
protected dsql.parser.JJTParserState |
jjtree
|
boolean |
lookingAhead
|
Token |
token
|
ParserTokenManager |
token_source
|
Fields inherited from interface dsql.parser.ParserTreeConstants |
JJTANDOP, JJTARRAYINDEX, JJTASSIGNMENT, JJTCONCAT, JJTCOUNT, JJTDELETE, JJTDIFF, JJTDOC, JJTDOT, JJTDYNAMICSTRING, JJTEQUALS, JJTEXISTS, JJTEXIT, JJTFLOATDIVOP, JJTFLOATLIT, JJTFOREACH, JJTGTOP, JJTIF, JJTINOP, JJTINSERT, JJTINTER, JJTINTLIT, JJTLEFT, JJTLENGTH, JJTLIST, JJTLTOP, JJTMETA, JJTMETHODCALL, JJTMINUSOP, JJTMULTOP, JJTNEW, jjtNodeName, JJTNOTEQUALS, JJTNOTOP, JJTOROP, JJTPLUSOP, JJTPRINT, JJTQUOTE, JJTRANGE, JJTRETURN, JJTRIGHT, JJTSENDEMAIL, JJTSETMINUS, JJTSTATICSTRING, JJTSUB, JJTSUBCALL, JJTSUBSTRING, JJTSYSDATE, JJTUNION, JJTUPDATE, JJTVARIABLE, JJTVOID, JJTWHILE, JJTXMLELEMENT, JJTXMLENTITY, JJTXMLTEXT |
Constructor Summary | |
Parser(java.io.InputStream stream)
|
|
Parser(ParserTokenManager tm)
|
|
Parser(java.io.Reader stream)
|
Method Summary | |
void |
AndOp()
|
void |
AnyXMLContent()
|
void |
AnyXMLElement()
|
void |
ArrayIndex()
|
void |
ArrayIndexInt()
|
void |
ArrayIndexVar()
|
void |
Assignment()
|
void |
BinaryOpList()
It would be a bit complex to have priorities built-in the parser, so instead we take a simpler approach: first build a flat list, and then build the operators one by one by order of priority |
void |
BooleanOp()
NotOp is separate because it is unary! |
void |
Bracket2Expressions()
|
void |
Bracket3Expressions()
|
void |
BracketExpression()
|
void |
BracketNExpressions()
|
protected ASTBinaryOperator |
buildBinaryOp(java.util.Vector v)
takes a flat vector of arguments and operators, and produce a tree-like structure with operators precedence |
void |
ComparisonOp()
|
void |
Concat()
|
void |
Count()
|
void |
Delete()
|
void |
DiffOp()
|
void |
disable_tracing()
|
ASTDoc |
Document(java.lang.String fileName)
XML Document |
ASTDoc |
DocumentWithParent(ASTDoc parentDoc,
java.lang.String fileName)
|
void |
DotAt()
|
void |
DotColumn()
|
void |
DotExpression()
|
void |
DynamicString()
For example, "haha$x" |
ASTDynamicString |
DynamicStringContents()
|
void |
ElementAnyContent(java.lang.String parentName)
|
void |
enable_tracing()
|
void |
Equals()
|
void |
Exists()
|
void |
Exit()
|
void |
Expression()
|
void |
FloatDivOp()
|
ASTNumberLit |
FloatLiteral()
|
void |
ForEach()
|
ParseException |
generateParseException()
|
Token |
getNextToken()
|
Token |
getToken(int index)
|
void |
GteOp()
|
void |
GtOp()
|
void |
If()
|
void |
InOp()
|
void |
Insert()
|
void |
Inter()
|
ASTNumberLit |
IntLiteral()
|
void |
jjtreeCloseNodeScope(Node n)
|
void |
jjtreeOpenNodeScope(Node n)
For each node, sets the current line |
void |
Left()
|
void |
Length()
|
void |
ListInit()
|
void |
LteOp()
|
void |
LtOp()
|
void |
MathOp()
|
void |
Meta()
|
void |
MethodCall()
|
void |
MinusOp()
|
void |
MultOp()
|
void |
NewObject()
|
void |
NotEquals()
|
void |
NotOp()
|
void |
NumberLiteral()
|
java.lang.String |
ObjectOrSubName()
|
void |
OrOp()
|
void |
PlusOp()
|
protected void |
postArguments()
change arguments X Y to Y(X) |
void |
PostExpression()
|
void |
PostSelectExpression()
|
void |
Print()
|
void |
Range()
|
ASTXMLElement |
recastXMLElement(ASTXMLElement ele)
This is used by the parser to generate specicific classes for XML elements |
void |
ReInit(java.io.InputStream stream)
|
void |
ReInit(ParserTokenManager tm)
|
void |
ReInit(java.io.Reader stream)
|
void |
Return()
|
void |
Right()
|
void |
SendEmail()
|
void |
SetMinus()
|
void |
SetOp()
|
void |
SimpleExpression()
|
void |
SQLQuoteString()
|
void |
Statement()
|
void |
StatementOrExpression()
|
void |
StaticString()
|
void |
String()
|
ASTStaticString |
StringInDynamicString()
A static string inside a dynamic string, i.e. "..." |
void |
SubCall()
|
void |
SubDef()
|
void |
Substring()
|
void |
Sysdate()
|
void |
TextOrphan(java.lang.StringBuffer buf)
These tokens were not preceded by an expression or a variable evaluate then as text |
void |
Union()
|
void |
Update()
|
void |
Variable()
|
void |
VariableInString()
|
void |
While()
|
void |
XMLAttribute(ASTXMLElement node)
|
ASTDynamicString |
XMLAttributeDynamic()
XML attribute string |
void |
XMLEntity()
|
ASTDoc |
XMLHeader(boolean _allowDSQL,
boolean _allowVarSubstitution)
this is used only when parsing xml for with file |
ASTXMLElement |
XMLNextElement(boolean _allowDSQL,
boolean _allowVarSubstitution)
this is used only when parsing xml for with file |
boolean |
XMLText(boolean quote)
Produce one XMLText for a sequence of text tokens |
Methods inherited from class dsql.DMExecuted |
getCaller, setCaller |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected dsql.parser.JJTParserState jjtree
public ParserTokenManager token_source
public Token token
public Token jj_nt
public boolean lookingAhead
Constructor Detail |
public Parser(java.io.InputStream stream)
public Parser(java.io.Reader stream)
public Parser(ParserTokenManager tm)
Method Detail |
public void jjtreeOpenNodeScope(Node n)
public void jjtreeCloseNodeScope(Node n)
protected void postArguments()
protected ASTBinaryOperator buildBinaryOp(java.util.Vector v) throws ParseException
ParseException
public ASTXMLElement recastXMLElement(ASTXMLElement ele)
public final ASTDoc Document(java.lang.String fileName) throws ParseException
ParseException
public final ASTDoc DocumentWithParent(ASTDoc parentDoc, java.lang.String fileName) throws ParseException
ParseException
public final ASTDoc XMLHeader(boolean _allowDSQL, boolean _allowVarSubstitution) throws ParseException
ParseException
public final ASTXMLElement XMLNextElement(boolean _allowDSQL, boolean _allowVarSubstitution) throws ParseException
ParseException
public final void AnyXMLContent() throws ParseException
ParseException
public final void AnyXMLElement() throws ParseException
ParseException
public final void ElementAnyContent(java.lang.String parentName) throws ParseException
ParseException
public final void SQLQuoteString() throws ParseException
ParseException
public final boolean XMLText(boolean quote) throws ParseException
ParseException
public final void TextOrphan(java.lang.StringBuffer buf) throws ParseException
ParseException
public final void XMLEntity() throws ParseException
ParseException
public final void XMLAttribute(ASTXMLElement node) throws ParseException
node
- the node currently being constructed
ParseException
public final ASTDynamicString XMLAttributeDynamic() throws ParseException
ParseException
public final void StatementOrExpression() throws ParseException
ParseException
public final void Statement() throws ParseException
ParseException
public final void Expression() throws ParseException
ParseException
public final void SimpleExpression() throws ParseException
ParseException
public final void BinaryOpList() throws ParseException
ParseException
public final void BracketExpression() throws ParseException
ParseException
public final void Bracket2Expressions() throws ParseException
ParseException
public final void Bracket3Expressions() throws ParseException
ParseException
public final void BracketNExpressions() throws ParseException
ParseException
public final void ListInit() throws ParseException
ParseException
public final void NewObject() throws ParseException
ParseException
public final java.lang.String ObjectOrSubName() throws ParseException
ParseException
public final void SubDef() throws ParseException
ParseException
public final void SubCall() throws ParseException
ParseException
public final void Insert() throws ParseException
ParseException
public final void Update() throws ParseException
ParseException
public final void Delete() throws ParseException
ParseException
public final void Return() throws ParseException
ParseException
public final void BooleanOp() throws ParseException
ParseException
public final void InOp() throws ParseException
ParseException
public final void AndOp() throws ParseException
ParseException
public final void OrOp() throws ParseException
ParseException
public final void ComparisonOp() throws ParseException
ParseException
public final void MathOp() throws ParseException
ParseException
public final void MinusOp() throws ParseException
ParseException
public final void MultOp() throws ParseException
ParseException
public final void FloatDivOp() throws ParseException
ParseException
public final void Range() throws ParseException
ParseException
public final void SetOp() throws ParseException
ParseException
public final void DiffOp() throws ParseException
ParseException
public final void Union() throws ParseException
ParseException
public final void Inter() throws ParseException
ParseException
public final void SetMinus() throws ParseException
ParseException
public final void Equals() throws ParseException
ParseException
public final void LtOp() throws ParseException
ParseException
public final void LteOp() throws ParseException
ParseException
public final void GtOp() throws ParseException
ParseException
public final void GteOp() throws ParseException
ParseException
public final void NotEquals() throws ParseException
ParseException
public final void PlusOp() throws ParseException
ParseException
public final void Concat() throws ParseException
ParseException
public final void PostExpression() throws ParseException
ParseException
public final void PostSelectExpression() throws ParseException
ParseException
public final void NotOp() throws ParseException
ParseException
public final void ArrayIndex() throws ParseException
ParseException
public final void ArrayIndexInt() throws ParseException
ParseException
public final void ArrayIndexVar() throws ParseException
ParseException
public final void MethodCall() throws ParseException
ParseException
public final void DotExpression() throws ParseException
ParseException
public final void DotAt() throws ParseException
ParseException
public final void DotColumn() throws ParseException
ParseException
public final void If() throws ParseException
ParseException
public final void NumberLiteral() throws ParseException
ParseException
public final ASTNumberLit IntLiteral() throws ParseException
ParseException
public final ASTNumberLit FloatLiteral() throws ParseException
ParseException
public final void ForEach() throws ParseException
ParseException
public final void While() throws ParseException
ParseException
public final void Assignment() throws ParseException
ParseException
public final void Variable() throws ParseException
ParseException
public final void Print() throws ParseException
ParseException
public final void Exit() throws ParseException
ParseException
public final void SendEmail() throws ParseException
ParseException
public final void Meta() throws ParseException
ParseException
public final void Count() throws ParseException
ParseException
public final void Exists() throws ParseException
ParseException
public final void Length() throws ParseException
ParseException
public final void Sysdate() throws ParseException
ParseException
public final void Left() throws ParseException
ParseException
public final void Right() throws ParseException
ParseException
public final void Substring() throws ParseException
ParseException
public final void String() throws ParseException
ParseException
public final void StaticString() throws ParseException
ParseException
public final ASTStaticString StringInDynamicString() throws ParseException
ParseException
public final void DynamicString() throws ParseException
ParseException
public final ASTDynamicString DynamicStringContents() throws ParseException
ParseException
public final void VariableInString() throws ParseException
ParseException
public void ReInit(java.io.InputStream stream)
public void ReInit(java.io.Reader stream)
public void ReInit(ParserTokenManager 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 |