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, JJTWHERE
ALL, 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
ParseException
public final void NamespaceDeclList() throws ParseException
ParseException
public final void NamespaceDecl() throws ParseException
ParseException
public final void Query() throws ParseException
ParseException
public final void TupleQuerySet() throws ParseException
ParseException
public final void GraphQuerySet() throws ParseException
ParseException
public final void TupleQuery() throws ParseException
ParseException
public final void GraphQuery() throws ParseException
ParseException
public final void SelectQuery() throws ParseException
ParseException
public final void Select() throws ParseException
ParseException
public final void ProjectionElem() throws ParseException
ParseException
public final void ConstructQuery() throws ParseException
ParseException
public final void Construct() throws ParseException
ParseException
public final void QueryBody() throws ParseException
ParseException
public final void From() throws ParseException
ParseException
public final void Where() throws ParseException
ParseException
public final void OrderBy() throws ParseException
ParseException
public final void Limit() throws ParseException
ParseException
public final void Offset() throws ParseException
ParseException
public final void ContextID() throws ParseException
ParseException
public final void PathExprList() throws ParseException
ParseException
public final void UnionPathExpr() throws ParseException
ParseException
public final void PathExpr() throws ParseException
ParseException
public final void BasicPathExpr() throws ParseException
ParseException
public final void OptPathExpr() throws ParseException
ParseException
public final void PathExprCont() throws ParseException
ParseException
public final void PathExprBranch() throws ParseException
ParseException
public final ASTPathExprTail PathExprTail() throws ParseException
ParseException
public final ASTPathExprTail BasicPathExprTail() throws ParseException
ParseException
public final ASTPathExprTail OptPathExprTail() throws ParseException
ParseException
public final void Edge() throws ParseException
ParseException
public final void Node() throws ParseException
ParseException
public final void NodeElem() throws ParseException
ParseException
public final void ReifiedStat() throws ParseException
ParseException
public final void OrderExprList() throws ParseException
ParseException
public final void OrderExpr() throws ParseException
ParseException
public final void BooleanExpr() throws ParseException
ParseException
public final void Or() throws ParseException
ParseException
public final void And() throws ParseException
ParseException
public final void BooleanElem() throws ParseException
ParseException
public final void BooleanConstant() throws ParseException
ParseException
public final void Not() throws ParseException
ParseException
public final void Bound() throws ParseException
ParseException
public final void SameTerm() throws ParseException
ParseException
public final void IsResource() throws ParseException
ParseException
public final void IsLiteral() throws ParseException
ParseException
public final void IsURI() throws ParseException
ParseException
public final void IsBNode() throws ParseException
ParseException
public final void LangMatches() throws ParseException
ParseException
public final void Regex() throws ParseException
ParseException
public final void Exists() throws ParseException
ParseException
public final void BooleanValueOp() throws ParseException
ParseException
public final void CompOperator() throws ParseException
ParseException
public final void ValueExprOrNull() throws ParseException
ParseException
public final void ValueExpr() throws ParseException
ParseException
public final void Var() throws ParseException
ParseException
public final void Datatype() throws ParseException
ParseException
public final void Lang() throws ParseException
ParseException
public final void Label() throws ParseException
ParseException
public final void Namespace() throws ParseException
ParseException
public final void LocalName() throws ParseException
ParseException
public final void Str() throws ParseException
ParseException
public final void FunctionCall() throws ParseException
ParseException
public final void ArgList() throws ParseException
ParseException
public final void Value() throws ParseException
ParseException
public final void URIRef() throws ParseException
ParseException
public final void URI() throws ParseException
ParseException
public final void QName() throws ParseException
ParseException
public final void BNode() throws ParseException
ParseException
public final void Literal() throws ParseException
ParseException
public final void SimpleLiteral() throws ParseException
ParseException
public final void LangLiteral() throws ParseException
ParseException
public final void DatatypedLiteral() throws ParseException
ParseException
public final void IntegerLiteral() throws ParseException
ParseException
public final void DecimalLiteral() throws ParseException
ParseException
public final void String() throws ParseException
ParseException
public final void Null() throws ParseException
ParseException
public final int PosInteger() throws ParseException
ParseException
public 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-2019 Eclipse Foundation. All Rights Reserved.