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.
|
JJTABS, JJTADD, JJTAND, JJTASKQUERY, JJTAVG, JJTBASEDECL, JJTBASICGRAPHPATTERN, JJTBIND, JJTBINDINGSCLAUSE, JJTBINDINGSET, JJTBINDINGVALUE, JJTBLANKNODE, JJTBLANKNODEPROPERTYLIST, JJTBNODEFUNC, JJTBOUND, JJTCEIL, JJTCLEAR, JJTCOALESCE, JJTCOLLECTION, JJTCOMPARE, JJTCONCAT, JJTCONSTRAINT, JJTCONSTRUCT, JJTCONSTRUCTQUERY, JJTCONTAINS, JJTCOPY, JJTCOUNT, JJTCREATE, JJTDATASETCLAUSE, JJTDATATYPE, JJTDAY, JJTDELETECLAUSE, JJTDELETEDATA, JJTDELETEWHERE, JJTDESCRIBE, JJTDESCRIBEQUERY, JJTDROP, JJTENCODEFORURI, JJTEXISTSFUNC, JJTFALSE, JJTFLOOR, JJTFUNCTIONCALL, JJTGRAPHGRAPHPATTERN, JJTGRAPHORDEFAULT, JJTGRAPHPATTERNGROUP, JJTGRAPHREFALL, JJTGROUPCLAUSE, JJTGROUPCONCAT, JJTGROUPCONDITION, JJTHAVINGCLAUSE, JJTHOURS, JJTIF, JJTIN, JJTINFIX, JJTINLINEDATA, JJTINSERTCLAUSE, JJTINSERTDATA, JJTIRI, JJTIRIFUNC, JJTISBLANK, JJTISIRI, JJTISLITERAL, JJTISNUMERIC, JJTLANG, JJTLANGMATCHES, JJTLIMIT, JJTLOAD, JJTLOWERCASE, JJTMATH, JJTMAX, JJTMD5, JJTMIN, JJTMINUSGRAPHPATTERN, JJTMINUTES, JJTMODIFY, JJTMONTH, JJTMOVE, jjtNodeName, JJTNOT, JJTNOTEXISTSFUNC, JJTNOTIN, JJTNOW, JJTNUMERICLITERAL, JJTOBJECTLIST, JJTOFFSET, JJTOPTIONALGRAPHPATTERN, JJTOR, JJTORDERCLAUSE, JJTORDERCONDITION, JJTPATHALTERNATIVE, JJTPATHELT, JJTPATHMOD, JJTPATHONEINPROPERTYSET, JJTPATHSEQUENCE, JJTPREFIXDECL, JJTPROJECTIONELEM, JJTPROPERTYLIST, JJTPROPERTYLISTPATH, JJTQNAME, JJTQUADSNOTTRIPLES, JJTQUERYCONTAINER, JJTRAND, JJTRDFLITERAL, JJTREGEXEXPRESSION, JJTREPLACE, JJTROUND, JJTSAMETERM, JJTSAMPLE, JJTSECONDS, JJTSELECT, JJTSELECTQUERY, JJTSERVICEGRAPHPATTERN, JJTSHA1, JJTSHA224, JJTSHA256, JJTSHA384, JJTSHA512, JJTSTR, JJTSTRAFTER, JJTSTRBEFORE, JJTSTRDT, JJTSTRENDS, JJTSTRING, JJTSTRLANG, JJTSTRLEN, JJTSTRSTARTS, JJTSTRUUID, JJTSUBSTR, JJTSUM, JJTTIMEZONE, JJTTRIPLESSAMESUBJECT, JJTTRIPLESSAMESUBJECTPATH, JJTTRUE, JJTTZ, JJTUNIONGRAPHPATTERN, JJTUNPARSEDQUADDATABLOCK, JJTUPDATECONTAINER, JJTUPDATESEQUENCE, JJTUPPERCASE, JJTUUID, JJTVAR, JJTVOID, JJTWHERECLAUSE, JJTYEAR
ABS, ADD, ALL, ALPHA, AND, ANON, AS, ASC, ASK, AVG, BASE, BIND, BINDINGS, BLANK_NODE_LABEL, BNODE, BOUND, BY, CEIL, CLEAR, COALESCE, COMMA, CONCAT, CONSTRUCT, CONTAINS, COPY, COUNT, CREATE, DATA, DATATYPE, DAY, DECIMAL, DECIMAL_NEGATIVE, DECIMAL_POSITIVE, DEFAULT, DEFAULT_GRAPH, DELETE, DESC, DESCRIBE, DISTINCT, DOT, DOUBLE, DOUBLE_NEGATIVE, DOUBLE_POSITIVE, DOUBLE1, DOUBLE2, DOUBLE3, DROP, DT_PREFIX, ECHAR, ENCODE_FOR_URI, EOF, EQ, EXISTS, EXPONENT, FALSE, FILTER, FLOOR, FROM, GE, GRAPH, GROUP, GROUP_CONCAT, GT, HAVING, HEX, HOURS, IF, IN, INSERT, INTEGER, INTEGER_NEGATIVE, INTEGER_POSITIVE, INTO, INVERSE, IRI, IS_A, IS_BLANK, IS_IRI, IS_LITERAL, IS_NUMERIC, LANG, LANGMATCHES, LANGTAG, LBRACE, LBRACK, LCASE, LE, LIMIT, LOAD, LPAREN, LT, MAX, MD5, MIN, MINUS, MINUS_SETOPER, MINUTES, MONTH, MOVE, NAMED, NE, NIL, NOT, NOT_EXISTS, NOT_IN, NOW, NUM, OFFSET, OPTIONAL, OR, ORDER, PERCENT, PIPE, PLUS, PLX, PN_CHARS, PN_CHARS_BASE, PN_CHARS_U, PN_LOCAL, PN_LOCAL_ESC, PN_PREFIX, PNAME_LN, PNAME_NS, PREFIX, Q_IRI_REF, QUESTION, RAND, RBRACE, RBRACK, REDUCED, REGEX, REPLACE, ROUND, RPAREN, SAFE_CHAR_LONG1, SAFE_CHAR_LONG2, SAFE_CHAR1, SAFE_CHAR2, SAMETERM, SAMPLE, SECONDS, SELECT, SEMICOLON, SEPARATOR, SERVICE, SHA1, SHA224, SHA256, SHA384, SHA512, SILENT, SINGLE_LINE_COMMENT, SLASH, STAR, STR, STR_AFTER, STR_BEFORE, STR_ENDS, STR_STARTS, STRDT, STRING_LITERAL_LONG1, STRING_LITERAL_LONG2, STRING_LITERAL1, STRING_LITERAL2, STRLANG, STRLEN, STRUUID, SUBSTR, SUM, TIMEZONE, TO, tokenImage, TRUE, TZ, UCASE, UNDEF, UNION, USING, UUID, VALUES, VAR_CHAR, VAR1, VAR2, VARNAME, WHERE, WHITESPACE, WITH, WS_CHAR, YEAR
Constructor and Description |
---|
SyntaxTreeBuilder(CharStream stream)
Constructor with user supplied CharStream.
|
SyntaxTreeBuilder(SyntaxTreeBuilderTokenManager tm)
Constructor with generated Token Manager.
|
protected JJTSyntaxTreeBuilderState jjtree
public SyntaxTreeBuilderTokenManager token_source
public Token token
public Token jj_nt
public SyntaxTreeBuilder(CharStream stream)
public SyntaxTreeBuilder(SyntaxTreeBuilderTokenManager tm)
public static ASTQueryContainer parseQuery(String query) throws TokenMgrError, ParseException
query
- A SPARQL query string.TokenMgrError
- If the query was syntactically incorrect.ParseException
- If the query was syntactically incorrect.public static ASTUpdateSequence parseUpdateSequence(String sequence) throws TokenMgrError, ParseException
sequence
- A SPARQL update sequence string.TokenMgrError
- If the update sequence was syntactically incorrect.ParseException
- If the update sequence was syntactically incorrect.public final ASTUpdateSequence UpdateSequence() throws ParseException
ParseException
public final ASTUpdateContainer UpdateContainer() throws ParseException
ParseException
public final ASTQueryContainer QueryContainer() throws ParseException
ParseException
public final void Prolog() throws ParseException
ParseException
public final void BaseDecl() throws ParseException
ParseException
public final void PrefixDecl() throws ParseException
ParseException
public final void Query() throws ParseException
ParseException
public final void SelectQuery() throws ParseException
ParseException
public final void SubSelect() 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 ConstructClause() throws ParseException
ParseException
public final void DescribeQuery() throws ParseException
ParseException
public final void Describe() throws ParseException
ParseException
public final void AskQuery() throws ParseException
ParseException
public final void DatasetClause() throws ParseException
ParseException
public final void WhereClause() throws ParseException
ParseException
public final void BindingsClause() throws ParseException
ParseException
public final void InlineData() throws ParseException
ParseException
public final void DataBlock() throws ParseException
ParseException
public final void InlineDataOneVar() throws ParseException
ParseException
public final void InlineDataFull() throws ParseException
ParseException
public final void SimpleBindingSet() throws ParseException
ParseException
public final void BindingSet() throws ParseException
ParseException
public final void BindingValue() throws ParseException
ParseException
public final void SolutionModifier() throws ParseException
ParseException
public final void GroupClause() throws ParseException
ParseException
public final void OrderClause() throws ParseException
ParseException
public final void GroupCondition() throws ParseException
ParseException
public final void HavingClause() throws ParseException
ParseException
public final void OrderCondition() throws ParseException
ParseException
public final void LimitOffsetClauses() throws ParseException
ParseException
public final void Limit() throws ParseException
ParseException
public final void Offset() throws ParseException
ParseException
public final Token GroupGraphPattern() throws ParseException
ParseException
public final void GraphPattern() throws ParseException
ParseException
public final void BasicGraphPattern() throws ParseException
ParseException
public final void FilterOrBind() throws ParseException
ParseException
public final void TriplesBlock() throws ParseException
ParseException
public final void TriplesTemplate() throws ParseException
ParseException
public final void GraphPatternNotTriples() throws ParseException
ParseException
public final void OptionalGraphPattern() throws ParseException
ParseException
public final void GraphGraphPattern() throws ParseException
ParseException
public final void GroupOrUnionGraphPattern() throws ParseException
ParseException
public final void MinusGraphPattern() throws ParseException
ParseException
public final void ServiceGraphPattern() throws ParseException
ParseException
public final void Filter() throws ParseException
ParseException
public final void Constraint() throws ParseException
ParseException
public final void FunctionCall() throws ParseException
ParseException
public final void ArgList() throws ParseException
ParseException
public final void TriplesSameSubject() throws ParseException
ParseException
public final void PropertyList() throws ParseException
ParseException
public final void ObjectList() throws ParseException
ParseException
public final void TriplesSameSubjectPath() throws ParseException
ParseException
public final void PropertyListPath() throws ParseException
ParseException
public final void ObjectListPath() throws ParseException
ParseException
public final void VerbPath() throws ParseException
ParseException
public final void Path() throws ParseException
ParseException
public final void PathAlternative() throws ParseException
ParseException
public final void PathSequence() throws ParseException
ParseException
public final void PathElt() throws ParseException
ParseException
public final void PathPrimary() throws ParseException
ParseException
public final void PathNegatedPropertySet() throws ParseException
ParseException
public final void PathOneInPropertySet() throws ParseException
ParseException
public final void PathMod() throws ParseException
ParseException
public final void VerbSimple() throws ParseException
ParseException
public final void Object() throws ParseException
ParseException
public final void ObjectPath() throws ParseException
ParseException
public final void Verb() throws ParseException
ParseException
public final void TriplesNode() throws ParseException
ParseException
public final void TriplesNodePath() throws ParseException
ParseException
public final void BlankNodePropertyList() throws ParseException
ParseException
public final void BlankNodePropertyListPath() throws ParseException
ParseException
public final void Collection() throws ParseException
ParseException
public final void CollectionPath() throws ParseException
ParseException
public final void GraphNode() throws ParseException
ParseException
public final void GraphNodePath() throws ParseException
ParseException
public final void VarOrTerm() throws ParseException
ParseException
public final void VarOrIRIref() throws ParseException
ParseException
public final void Var() throws ParseException
ParseException
public final void GraphTerm() throws ParseException
ParseException
public final void Expression() throws ParseException
ParseException
public final void ConditionalOrExpression() throws ParseException
ParseException
public final void ConditionalAndExpression() throws ParseException
ParseException
public final void ValueLogical() throws ParseException
ParseException
public final void RelationalExpression() throws ParseException
ParseException
public final void NumericExpression() throws ParseException
ParseException
public final void AdditiveExpression() throws ParseException
ParseException
public final void MultiplicativeExpression() throws ParseException
ParseException
public final void UnaryExpression() throws ParseException
ParseException
public final void UnaryMinus() throws ParseException
ParseException
public final void PrimaryExpression() throws ParseException
ParseException
public final void Aggregate() throws ParseException
ParseException
public final void Count() throws ParseException
ParseException
public final void Sum() throws ParseException
ParseException
public final void Min() throws ParseException
ParseException
public final void Max() throws ParseException
ParseException
public final void Avg() throws ParseException
ParseException
public final void Sample() throws ParseException
ParseException
public final void GroupConcat() throws ParseException
ParseException
public final void BrackettedExpression() throws ParseException
ParseException
public final void BuiltInCall() throws ParseException
ParseException
public final void StringFunction() throws ParseException
ParseException
public final void NumericFunction() throws ParseException
ParseException
public final void RDFTermFunction() throws ParseException
ParseException
public final void DateTimeFunction() throws ParseException
ParseException
public final void HashFunction() throws ParseException
ParseException
public final void MD5() throws ParseException
ParseException
public final void SHA1() throws ParseException
ParseException
public final void SHA224() throws ParseException
ParseException
public final void SHA256() throws ParseException
ParseException
public final void SHA384() throws ParseException
ParseException
public final void SHA512() throws ParseException
ParseException
public final void Now() throws ParseException
ParseException
public final void Year() throws ParseException
ParseException
public final void Month() throws ParseException
ParseException
public final void Day() throws ParseException
ParseException
public final void Hours() throws ParseException
ParseException
public final void Minutes() throws ParseException
ParseException
public final void Seconds() throws ParseException
ParseException
public final void Timezone() throws ParseException
ParseException
public final void Tz() throws ParseException
ParseException
public final void Rand() throws ParseException
ParseException
public final void Abs() throws ParseException
ParseException
public final void Ceil() throws ParseException
ParseException
public final void Floor() throws ParseException
ParseException
public final void Round() throws ParseException
ParseException
public final void Substr() throws ParseException
ParseException
public final void StrLen() throws ParseException
ParseException
public final void UpperCase() throws ParseException
ParseException
public final void LowerCase() throws ParseException
ParseException
public final void StrStarts() throws ParseException
ParseException
public final void StrEnds() throws ParseException
ParseException
public final void StrBefore() throws ParseException
ParseException
public final void StrAfter() throws ParseException
ParseException
public final void Replace() throws ParseException
ParseException
public final void Concat() throws ParseException
ParseException
public final void Contains() throws ParseException
ParseException
public final void EncodeForURI() throws ParseException
ParseException
public final void If() throws ParseException
ParseException
public final void In() throws ParseException
ParseException
public final void NotIn() throws ParseException
ParseException
public final void Coalesce() throws ParseException
ParseException
public final void Str() throws ParseException
ParseException
public final void Lang() throws ParseException
ParseException
public final void LangMatches() throws ParseException
ParseException
public final void Datatype() throws ParseException
ParseException
public final void Bound() throws ParseException
ParseException
public final void SameTerm() throws ParseException
ParseException
public final void IsIRI() throws ParseException
ParseException
public final void IsBlank() throws ParseException
ParseException
public final void IsLiteral() throws ParseException
ParseException
public final void IsNumeric() throws ParseException
ParseException
public final void BNodeFunc() throws ParseException
ParseException
public final void IRIFunc() throws ParseException
ParseException
public final void StrDt() throws ParseException
ParseException
public final void StrLang() throws ParseException
ParseException
public final void UUID() throws ParseException
ParseException
public final void STRUUID() throws ParseException
ParseException
public final void Bind() throws ParseException
ParseException
public final void RegexExpression() throws ParseException
ParseException
public final void ExistsFunc() throws ParseException
ParseException
public final void NotExistsFunc() throws ParseException
ParseException
public final void RDFLiteral() throws ParseException
ParseException
public final void NumericLiteral() throws ParseException
ParseException
public final void NumericLiteralUnsigned() throws ParseException
ParseException
public final void NumericLiteralPositive() throws ParseException
ParseException
public final void NumericLiteralNegative() throws ParseException
ParseException
public final void BooleanLiteral() throws ParseException
ParseException
public final void String() throws ParseException
ParseException
public final void IRIref() throws ParseException
ParseException
public final void PrefixedName() throws ParseException
ParseException
public final void BlankNode() throws ParseException
ParseException
public final void IRI() throws ParseException
ParseException
public final void GraphRefAll() throws ParseException
ParseException
public final void GraphOrDefault() throws ParseException
ParseException
public final void GraphRef() throws ParseException
ParseException
public final void UnparsedQuadDataBlock() throws ParseException
ParseException
public final void QuadData() throws ParseException
ParseException
public final void Quads() throws ParseException
ParseException
public final void QuadsNotTriples() throws ParseException
ParseException
public final void Update() throws ParseException
ParseException
public final void Load() throws ParseException
ParseException
public final void Clear() throws ParseException
ParseException
public final void Drop() throws ParseException
ParseException
public final void Add() throws ParseException
ParseException
public final void Move() throws ParseException
ParseException
public final void Copy() throws ParseException
ParseException
public final void Create() throws ParseException
ParseException
public final void InsertData() throws ParseException
ParseException
public final void DeleteData() throws ParseException
ParseException
public final void DeleteWhere() throws ParseException
ParseException
public final void DeleteClause() throws ParseException
ParseException
public final void InsertClause() throws ParseException
ParseException
public final void UsingClause() throws ParseException
ParseException
public final void WithClause() throws ParseException
ParseException
public final void ModifyWhereClause() throws ParseException
ParseException
public final void Modify() throws ParseException
ParseException
public void ReInit(CharStream 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.