public class SyntaxTreeBuilder extends Object implements SyntaxTreeBuilderTreeConstants, SyntaxTreeBuilderConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
protected JJTSyntaxTreeBuilderState |
jjtree |
Token |
token
Current token.
|
SyntaxTreeBuilderTokenManager |
token_source
Generated Token Manager.
|
JJTAND, JJTARGLIST, JJTBASICPATHEXPR, JJTBASICPATHEXPRTAIL, JJTBNODE, JJTBOOLEANCONSTANT, JJTBOUND, JJTCOMPARE, JJTCOMPAREALL, JJTCOMPAREANY, JJTCOMPOPERATOR, JJTCONSTRUCT, JJTCONSTRUCTQUERY, JJTDATATYPE, JJTEDGE, JJTEXISTS, JJTFROM, JJTFUNCTIONCALL, JJTGRAPHINTERSECT, JJTGRAPHMINUS, JJTGRAPHUNION, JJTIN, JJTINLIST, JJTISBNODE, JJTISLITERAL, JJTISRESOURCE, JJTISURI, JJTLABEL, JJTLANG, JJTLANGMATCHES, JJTLIKE, JJTLIMIT, JJTLITERAL, JJTLOCALNAME, JJTNAMESPACE, JJTNAMESPACEDECL, JJTNODE, JJTNODEELEM, jjtNodeName, JJTNOT, JJTNULL, JJTOFFSET, JJTOPTPATHEXPR, JJTOPTPATHEXPRTAIL, JJTOR, JJTORDERBY, JJTORDEREXPR, JJTPATHEXPRLIST, JJTPATHEXPRUNION, JJTPROJECTIONELEM, JJTQNAME, JJTQUERYBODY, JJTQUERYCONTAINER, JJTREGEX, JJTREIFIEDSTAT, JJTSAMETERM, JJTSELECT, JJTSELECTQUERY, JJTSTR, JJTSTRING, JJTTUPLEINTERSECT, JJTTUPLEMINUS, JJTTUPLEUNION, JJTURI, JJTVAR, JJTVOID, JJTWHEREALL, ALPHA, AND, ANY, AS, ASC, BASECHAR, BNODE, BOUND, BY, CASE, COMBINING_CHAR, COMMA, CONSTRUCT, CONTEXT, DATATYPE, DATATYPED_LITERAL, DECIMAL, DEFAULT, DESC, DIGIT, DISTINCT, EOF, EQ, ESCAPED_CHAR, EXISTS, EXTENDER, FALSE, FROM, GE, GT, HEX, IDEOGRAPHIC, IGNORE, IN, INTERSECT, ISBNODE, ISLITERAL, ISRESOURCE, ISURI, LABEL, LANG, LANG_LITERAL, LANG_TAG, LANGMATCHES, LBRACE, LBRACK, LE, LETTER, LIKE, LIMIT, LOCALNAME, LPAREN, LT, MINUS, NAMESPACE, NCNAME, NCNAME_CHAR, NE, NEG_INTEGER, NOT, NULL, NUM, OFFSET, OR, ORDER, POS_INTEGER, PREFIX_NAME, QNAME, RBRACE, RBRACK, REDUCED, REGEX, RPAREN, SAFE_CHAR, SAMETERM, SCHEME, SELECT, SEMICOLON, SINGLE_LINE_COMMENT, STAR, STR, STRING, tokenImage, TRUE, UNICODE_ESC, UNION, URI, USING, WHERE| Constructor and Description |
|---|
SyntaxTreeBuilder(InputStream stream)
Constructor with InputStream.
|
SyntaxTreeBuilder(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
SyntaxTreeBuilder(Reader stream)
Constructor.
|
SyntaxTreeBuilder(SyntaxTreeBuilderTokenManager tm)
Constructor with generated Token Manager.
|
protected JJTSyntaxTreeBuilderState jjtree
public SyntaxTreeBuilderTokenManager token_source
public Token token
public Token jj_nt
public SyntaxTreeBuilder(InputStream stream)
public SyntaxTreeBuilder(InputStream stream, String encoding)
public SyntaxTreeBuilder(Reader stream)
public SyntaxTreeBuilder(SyntaxTreeBuilderTokenManager tm)
public static ASTQueryContainer parseQuery(String query) throws TokenMgrError, ParseException
query - A SeRQL query string.TokenMgrError - If the query was syntactically incorrect.ParseException - If the query was syntactically incorrect.public final ASTQueryContainer QueryContainer() throws ParseException
ParseExceptionpublic final void NamespaceDeclList()
throws ParseException
ParseExceptionpublic final void NamespaceDecl()
throws ParseException
ParseExceptionpublic final void Query()
throws ParseException
ParseExceptionpublic final void TupleQuerySet()
throws ParseException
ParseExceptionpublic final void GraphQuerySet()
throws ParseException
ParseExceptionpublic final void TupleQuery()
throws ParseException
ParseExceptionpublic final void GraphQuery()
throws ParseException
ParseExceptionpublic final void SelectQuery()
throws ParseException
ParseExceptionpublic final void Select()
throws ParseException
ParseExceptionpublic final void ProjectionElem()
throws ParseException
ParseExceptionpublic final void ConstructQuery()
throws ParseException
ParseExceptionpublic final void Construct()
throws ParseException
ParseExceptionpublic final void QueryBody()
throws ParseException
ParseExceptionpublic final void From()
throws ParseException
ParseExceptionpublic final void Where()
throws ParseException
ParseExceptionpublic final void OrderBy()
throws ParseException
ParseExceptionpublic final void Limit()
throws ParseException
ParseExceptionpublic final void Offset()
throws ParseException
ParseExceptionpublic final void ContextID()
throws ParseException
ParseExceptionpublic final void PathExprList()
throws ParseException
ParseExceptionpublic final void UnionPathExpr()
throws ParseException
ParseExceptionpublic final void PathExpr()
throws ParseException
ParseExceptionpublic final void BasicPathExpr()
throws ParseException
ParseExceptionpublic final void OptPathExpr()
throws ParseException
ParseExceptionpublic final void PathExprCont()
throws ParseException
ParseExceptionpublic final void PathExprBranch()
throws ParseException
ParseExceptionpublic final ASTPathExprTail PathExprTail() throws ParseException
ParseExceptionpublic final ASTPathExprTail BasicPathExprTail() throws ParseException
ParseExceptionpublic final ASTPathExprTail OptPathExprTail() throws ParseException
ParseExceptionpublic final void Edge()
throws ParseException
ParseExceptionpublic final void Node()
throws ParseException
ParseExceptionpublic final void NodeElem()
throws ParseException
ParseExceptionpublic final void ReifiedStat()
throws ParseException
ParseExceptionpublic final void OrderExprList()
throws ParseException
ParseExceptionpublic final void OrderExpr()
throws ParseException
ParseExceptionpublic final void BooleanExpr()
throws ParseException
ParseExceptionpublic final void Or()
throws ParseException
ParseExceptionpublic final void And()
throws ParseException
ParseExceptionpublic final void BooleanElem()
throws ParseException
ParseExceptionpublic final void BooleanConstant()
throws ParseException
ParseExceptionpublic final void Not()
throws ParseException
ParseExceptionpublic final void Bound()
throws ParseException
ParseExceptionpublic final void SameTerm()
throws ParseException
ParseExceptionpublic final void IsResource()
throws ParseException
ParseExceptionpublic final void IsLiteral()
throws ParseException
ParseExceptionpublic final void IsURI()
throws ParseException
ParseExceptionpublic final void IsBNode()
throws ParseException
ParseExceptionpublic final void LangMatches()
throws ParseException
ParseExceptionpublic final void Regex()
throws ParseException
ParseExceptionpublic final void Exists()
throws ParseException
ParseExceptionpublic final void BooleanValueOp()
throws ParseException
ParseExceptionpublic final void CompOperator()
throws ParseException
ParseExceptionpublic final void ValueExprOrNull()
throws ParseException
ParseExceptionpublic final void ValueExpr()
throws ParseException
ParseExceptionpublic final void Var()
throws ParseException
ParseExceptionpublic final void Datatype()
throws ParseException
ParseExceptionpublic final void Lang()
throws ParseException
ParseExceptionpublic final void Label()
throws ParseException
ParseExceptionpublic final void Namespace()
throws ParseException
ParseExceptionpublic final void LocalName()
throws ParseException
ParseExceptionpublic final void Str()
throws ParseException
ParseExceptionpublic final void FunctionCall()
throws ParseException
ParseExceptionpublic final void ArgList()
throws ParseException
ParseExceptionpublic final void Value()
throws ParseException
ParseExceptionpublic final void URIRef()
throws ParseException
ParseExceptionpublic final void URI()
throws ParseException
ParseExceptionpublic final void QName()
throws ParseException
ParseExceptionpublic final void BNode()
throws ParseException
ParseExceptionpublic final void Literal()
throws ParseException
ParseExceptionpublic final void SimpleLiteral()
throws ParseException
ParseExceptionpublic final void LangLiteral()
throws ParseException
ParseExceptionpublic final void DatatypedLiteral()
throws ParseException
ParseExceptionpublic final void IntegerLiteral()
throws ParseException
ParseExceptionpublic final void DecimalLiteral()
throws ParseException
ParseExceptionpublic final void String()
throws ParseException
ParseExceptionpublic final void Null()
throws ParseException
ParseExceptionpublic final int PosInteger()
throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(SyntaxTreeBuilderTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.