- java.lang.Object
-
- org.apache.jena.riot.lang.extra.LangParserBase
-
- org.apache.jena.shex.parser.ParserShExC
-
- org.apache.jena.shex.parser.javacc.ShExJavacc
-
- All Implemented Interfaces:
ShExJavaccConstants
public class ShExJavacc extends ParserShExC implements ShExJavaccConstants
-
-
Field Summary
Fields Modifier and Type Field Description Tokenjj_ntNext token.TokentokenCurrent token.ShExJavaccTokenManagertoken_sourceGenerated Token Manager.-
Fields inherited from class org.apache.jena.shex.parser.ParserShExC
DEBUG, DEBUG_PARSE, DEBUG_STACK
-
Fields inherited from interface org.apache.jena.shex.parser.javacc.ShExJavaccConstants
A2Z, A2ZN, AMP, AND, AT, ATPNAME_LN, ATPNAME_NS, ATSTART, BANG, BASE, BLANK_NODE_LABEL, BNODE, BOM, CARAT, CLOSED, CODE_BLOCK, COMMA, DECIMAL, DEFAULT, DIGITS, DOLLAR, DOT, DOUBLE, ECHAR, EOF, EQUALS, EXPONENT, EXTERNAL, EXTRA, FALSE, FOCUS, FRACTIONDIGITS, HEX, IMPORT, INTEGER, IRI, IRIref, LANG_STRING_LITERAL_LONG1, LANG_STRING_LITERAL_LONG2, LANG_STRING_LITERAL1, LANG_STRING_LITERAL2, LANGTAG, LBRACE, LBRACKET, LENGTH, LITERAL, LPAREN, MAXEXCLUSIVE, MAXINCLUSIVE, MAXLENGTH, MINEXCLUSIVE, MININCLUSIVE, MINLENGTH, MINUS, ML_COMMENT_STATE, NONLITERAL, NOT, OR, PERCENT, PERCENT_CHAR, PLUS, PLX, PN_CHARS, PN_CHARS_BASE, PN_CHARS_U, PN_LOCAL, PN_LOCAL_ESC, PN_PREFIX, PNAME_LN, PNAME_NS, PREFIX, QMARK, QUOTE_3D, QUOTE_3S, RBRACE, RBRACKET, RDF_TYPE, REGEXP, REPEAT_RANGE, RPAREN, SEMI_COLON, SHAPE, SHAPE_CLASS, SLASH, STAR, START, STRING_LITERAL_LONG1, STRING_LITERAL_LONG2, STRING_LITERAL1, STRING_LITERAL2, TILDE, tokenImage, TOTALDIGITS, TRUE, UCHAR, UNKNOWN, USCORE, VARNAME, VBAR
-
-
Constructor Summary
Constructors Constructor Description ShExJavacc(java.io.InputStream stream)Constructor with InputStream.ShExJavacc(java.io.InputStream stream, java.lang.String encoding)Constructor with InputStream and supplied encodingShExJavacc(java.io.Reader stream)Constructor.ShExJavacc(ShExJavaccTokenManager tm)Constructor with generated Token Manager.
-
Method Summary
-
Methods inherited from class org.apache.jena.shex.parser.ParserShExC
parseShapeMapFinish, parseShapeMapStart, parseShapesFinish, parseShapesStart, setSourceAndBase
-
Methods inherited from class org.apache.jena.riot.lang.extra.LangParserBase
setDest, setProfile
-
-
-
-
Field Detail
-
token_source
public ShExJavaccTokenManager token_source
Generated Token Manager.
-
token
public Token token
Current token.
-
jj_nt
public Token jj_nt
Next token.
-
-
Constructor Detail
-
ShExJavacc
public ShExJavacc(java.io.InputStream stream)
Constructor with InputStream.
-
ShExJavacc
public ShExJavacc(java.io.InputStream stream, java.lang.String encoding)Constructor with InputStream and supplied encoding
-
ShExJavacc
public ShExJavacc(java.io.Reader stream)
Constructor.
-
ShExJavacc
public ShExJavacc(ShExJavaccTokenManager tm)
Constructor with generated Token Manager.
-
-
Method Detail
-
UnitShapes
public final void UnitShapes() throws ParseException- Throws:
ParseException
-
shexDoc
public final void shexDoc() throws ParseException- Throws:
ParseException
-
directive
public final void directive() throws ParseException- Throws:
ParseException
-
baseDecl
public final void baseDecl() throws ParseException- Throws:
ParseException
-
prefixDecl
public final void prefixDecl() throws ParseException- Throws:
ParseException
-
importDecl
public final void importDecl() throws ParseException- Throws:
ParseException
-
notStartAction
public final void notStartAction() throws ParseException- Throws:
ParseException
-
start
public final void start() throws ParseException- Throws:
ParseException
-
startActions
public final void startActions() throws ParseException- Throws:
ParseException
-
statement
public final void statement() throws ParseException- Throws:
ParseException
-
shapeExprDecl
public final void shapeExprDecl() throws ParseException- Throws:
ParseException
-
shapeExpression
public final void shapeExpression() throws ParseException- Throws:
ParseException
-
shapeOr
public final void shapeOr() throws ParseException- Throws:
ParseException
-
shapeAnd
public final void shapeAnd() throws ParseException- Throws:
ParseException
-
shapeNot
public final void shapeNot() throws ParseException- Throws:
ParseException
-
shapeAtom
public final void shapeAtom() throws ParseException- Throws:
ParseException
-
inlineShapeExpression
public final void inlineShapeExpression() throws ParseException- Throws:
ParseException
-
inlineShapeOr
public final void inlineShapeOr() throws ParseException- Throws:
ParseException
-
inlineShapeAnd
public final void inlineShapeAnd() throws ParseException- Throws:
ParseException
-
inlineShapeNot
public final void inlineShapeNot() throws ParseException- Throws:
ParseException
-
inlineShapeAtom
public final void inlineShapeAtom() throws ParseException- Throws:
ParseException
-
shapeOrRef
public final void shapeOrRef() throws ParseException- Throws:
ParseException
-
inlineShapeOrRef
public final void inlineShapeOrRef() throws ParseException- Throws:
ParseException
-
shapeRef
public final void shapeRef() throws ParseException- Throws:
ParseException
-
litNodeConstraint
public final void litNodeConstraint() throws ParseException- Throws:
ParseException
-
nonLitNodeConstraint
public final void nonLitNodeConstraint() throws ParseException- Throws:
ParseException
-
nonLiteralKind
public final void nonLiteralKind() throws ParseException- Throws:
ParseException
-
xsFacet
public final void xsFacet() throws ParseException- Throws:
ParseException
-
stringFacet
public final void stringFacet() throws ParseException- Throws:
ParseException
-
stringLength
public final java.lang.String stringLength() throws ParseException- Throws:
ParseException
-
numericFacet
public final void numericFacet() throws ParseException- Throws:
ParseException
-
numericRange
public final java.lang.String numericRange() throws ParseException- Throws:
ParseException
-
numericLength
public final java.lang.String numericLength() throws ParseException- Throws:
ParseException
-
shapeDefinition
public final void shapeDefinition() throws ParseException- Throws:
ParseException
-
inlineShapeDefinition
public final void inlineShapeDefinition() throws ParseException- Throws:
ParseException
-
extraPropertySet
public final void extraPropertySet(java.util.List<Node> extras) throws ParseException
- Throws:
ParseException
-
tripleExpression
public final TripleExpression tripleExpression() throws ParseException
- Throws:
ParseException
-
tripleExpressionClause
public final void tripleExpressionClause() throws ParseException- Throws:
ParseException
-
tripleExpressionClause_1
public final void tripleExpressionClause_1() throws ParseException- Throws:
ParseException
-
unaryTripleExpr
public final void unaryTripleExpr() throws ParseException- Throws:
ParseException
-
bracketedTripleExpr
public final void bracketedTripleExpr(Node label) throws ParseException
- Throws:
ParseException
-
tripleConstraint
public final void tripleConstraint(Node label) throws ParseException
- Throws:
ParseException
-
cardinality
public final Cardinality cardinality() throws ParseException
- Throws:
ParseException
-
senseFlags
public final boolean senseFlags() throws ParseException- Throws:
ParseException
-
valueSet
public final void valueSet() throws ParseException- Throws:
ParseException
-
valueSetValue
public final void valueSetValue() throws ParseException- Throws:
ParseException
-
valueExclusion
public final void valueExclusion() throws ParseException- Throws:
ParseException
-
iriRange
public final void iriRange() throws ParseException- Throws:
ParseException
-
literalRange
public final void literalRange() throws ParseException- Throws:
ParseException
-
languageRange
public final void languageRange() throws ParseException- Throws:
ParseException
-
langRangeLANGTAG
public final void langRangeLANGTAG() throws ParseException- Throws:
ParseException
-
langRangeAT
public final void langRangeAT() throws ParseException- Throws:
ParseException
-
include
public final void include() throws ParseException- Throws:
ParseException
-
annotation
public final void annotation() throws ParseException- Throws:
ParseException
-
semanticActions
public final void semanticActions() throws ParseException- Throws:
ParseException
-
codeDecl
public final void codeDecl() throws ParseException- Throws:
ParseException
-
literal
public final Node literal() throws ParseException
- Throws:
ParseException
-
predicate
public final Node predicate() throws ParseException
- Throws:
ParseException
-
shapeExprLabel
public final Node shapeExprLabel() throws ParseException
- Throws:
ParseException
-
tripleExprLabel
public final Node tripleExprLabel() throws ParseException
- Throws:
ParseException
-
_label
public final Node _label() throws ParseException
- Throws:
ParseException
-
booleanLiteral
public final Node booleanLiteral() throws ParseException
- Throws:
ParseException
-
numericLiteral
public final Node numericLiteral() throws ParseException
- Throws:
ParseException
-
rdfLiteral
public final Node rdfLiteral() throws ParseException
- Throws:
ParseException
-
datatype
public final java.lang.String datatype() throws ParseException- Throws:
ParseException
-
string
public final java.lang.String string() throws ParseException- Throws:
ParseException
-
langString
public final Node langString() throws ParseException
- Throws:
ParseException
-
iri
public final java.lang.String iri() throws ParseException- Throws:
ParseException
-
blankNode
public final java.lang.String blankNode() throws ParseException- Throws:
ParseException
-
prefixedName
public final java.lang.String prefixedName() throws ParseException- Throws:
ParseException
-
IRIREF
public final java.lang.String IRIREF() throws ParseException- Throws:
ParseException
-
UnitShapeMap
public final void UnitShapeMap() throws ParseException- Throws:
ParseException
-
shexMapDoc
public final void shexMapDoc() throws ParseException- Throws:
ParseException
-
shapeMap
public final void shapeMap() throws ParseException- Throws:
ParseException
-
shapeAssociation
public final void shapeAssociation() throws ParseException- Throws:
ParseException
-
subjectTerm
public final Node subjectTerm() throws ParseException
- Throws:
ParseException
-
objectTerm
public final Node objectTerm() throws ParseException
- Throws:
ParseException
-
triplePattern
public final Triple triplePattern() throws ParseException
- Throws:
ParseException
-
shapeSpec
public final Node shapeSpec() throws ParseException
- Throws:
ParseException
-
ReInit
public void ReInit(java.io.InputStream stream)
Reinitialise.
-
ReInit
public void ReInit(java.io.InputStream stream, java.lang.String encoding)Reinitialise.
-
ReInit
public void ReInit(java.io.Reader stream)
Reinitialise.
-
ReInit
public void ReInit(ShExJavaccTokenManager tm)
Reinitialise.
-
getNextToken
public final Token getNextToken()
Get the next Token.
-
getToken
public final Token getToken(int index)
Get the specific Token.
-
generateParseException
public ParseException generateParseException()
Generate ParseException.
-
enable_tracing
public final void enable_tracing()
Enable tracing.
-
disable_tracing
public final void disable_tracing()
Disable tracing.
-
-