Package org.kohsuke.rngom.parse.compact
Class CompactSyntax
java.lang.Object
org.kohsuke.rngom.parse.compact.CompactSyntax
- All Implemented Interfaces:
CompactSyntaxConstants,Context,org.relaxng.datatype.ValidationContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from interface org.kohsuke.rngom.parse.compact.CompactSyntaxConstants
AFTER_DOCUMENTATION, AFTER_SINGLE_LINE_COMMENT, BASE_CHAR, COMBINING_CHAR, DEFAULT, DIGIT, DOCUMENTATION, DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT, DOCUMENTATION_CONTINUE, EOF, ESCAPED_IDENTIFIER, EXTENDER, FANNOTATE, IDENTIFIER, IDEOGRAPHIC, ILLEGAL_CHAR, LETTER, LITERAL, NCNAME, NEWLINE, NMCHAR, NMSTART, NOT_NEWLINE, PREFIX_STAR, PREFIXED_NAME, SINGLE_LINE_COMMENT, SINGLE_LINE_COMMENT_CONTINUE, tokenImage, WS -
Constructor Summary
ConstructorsConstructorDescriptionCompactSyntax(InputStream stream) Constructor with InputStream.CompactSyntax(InputStream stream, String encoding) Constructor with InputStream and supplied encodingCompactSyntax(Reader stream) Constructor.CompactSyntax(CompactParseable parseable, Reader r, String sourceUri, SchemaBuilder sb, ErrorHandler eh, String inheritedNs) Constructor with generated Token Manager. -
Method Summary
Modifier and TypeMethodDescriptionfinal ParsedNameClassfinal ParsedPatternAnnotatedPrimaryExpr(boolean topLevel, Scope scope, Token[] except) final voidfinal ParsedElementAnnotationAnnotationElement(boolean nested) final voidfinal voidfinal ParsedElementAnnotationfinal Annotationsfinal ParsedNameClassAnyNameExceptClass(int context, Annotations a, Annotations[] pa) final GrammarSection.CombineAssignOp()final ParsedPatternAttributeExpr(Scope scope, Annotations a) final ParsedNameClassBasicNameClass(int context) copy()Returns the immutable snapshot of thisContext.final ParsedPatternDataExpr(boolean topLevel, Scope scope, Annotations a, Token[] except) final Tokenfinal voidfinal voidDefine(GrammarSection section, Scope scope, Annotations a) final voidDefinition(GrammarSection section, Scope scope, Annotations a) final voidDisable tracing.final voidDiv(GrammarSection section, Scope scope, Annotations a) final ParsedElementAnnotationfinal ParsedPatternElementExpr(Scope scope, Annotations a) final ParsedPatternfinal voidEnable tracing.final ParsedPatternfinal ParsedNameClassExceptNameClass(int context) final ParsedPatternExpr(boolean topLevel, Scope scope, Token t, Annotations a) final ParsedPatternExternalRefExpr(Scope scope, Annotations a) Generate ParseException.final TokenGet the next Token.final TokengetToken(int index) Get the specific Token.final AnnotationsGrammarBody(GrammarSection section, Scope scope, Annotations a) final voidGrammarComponent(GrammarSection section, Scope scope) final ParsedPatternGrammarExpr(Scope scope, Annotations a) final org.kohsuke.rngom.parse.compact.CompactSyntax.LocatedStringfinal ParsedElementAnnotationfinal ParsedPatternIdentifierExpr(Scope scope, Annotations a) final voidInclude(GrammarSection section, Scope scope, Annotations a) final AnnotationsIncludeBody(GrammarSection section, Scope scope, Annotations a) final voidIncludeComponent(GrammarSection section, Scope scope) final ParsedPatternfinal voidIncludeDiv(GrammarSection section, Scope scope, Annotations a) final StringInherit()final ParsedPatternbooleanisNotation(String notationName) booleanisUnparsedEntity(String entityName) final TokenKeyword()final ParsedPatternListExpr(Scope scope, Annotations a) final StringLiteral()final org.kohsuke.rngom.parse.compact.CompactSyntax.LocatedStringfinal voidfinal voidfinal voidfinal voidfinal ParsedPatternMixedExpr(Scope scope, Annotations a) final ParsedNameClassNameClass(int context, Annotations[] pa) final ParsedNameClassNameClassAlternatives(int context, ParsedNameClass nc, Annotations[] pa) final voidfinal Stringfinal ParsedPatternfinal org.kohsuke.rngom.parse.compact.CompactSyntax.LocatedStringNsName()final ParsedNameClassNsNameExceptClass(int context, Annotations a, Annotations[] pa) final ParsedNameClassOpenNameClass(int context, Annotations a) final voidParam(DataPatternBuilder dpb) final voidParams(DataPatternBuilder dpb) final ParsedPatternParenExpr(boolean topLevel, Scope scope, Annotations a) final ParsedNameClassParenNameClass(int context, Annotations a) final ParsedPatternParentExpr(Scope scope, Annotations a) final voidPreamble()final StringPrefix()final voidPrefixedAnnotationAttribute(Annotations a, boolean nested) final ParsedElementAnnotationPrefixedAnnotationElement(boolean nested) final ParsedNameClassprefixes()Enumerates the prefixes bound to namespaces.final ParsedPatternPrimaryExpr(boolean topLevel, Scope scope, Annotations a, Token[] except) final ParsedNameClassPrimaryNameClass(int context, Annotations a) voidReInit(InputStream stream) Reinitialise.voidReInit(InputStream stream, String encoding) Reinitialise.voidReinitialise.voidReinitialise.resolveNamespacePrefix(String prefix) final voidStart(GrammarSection section, Scope scope, Annotations a) final ParsedPatternfinal ParsedPatternTopLevelGrammar(Scope scope) final voidfinal ParsedPatternfinal voidfinal ParsedElementAnnotationfinal org.kohsuke.rngom.parse.compact.CompactSyntax.LocatedStringfinal ParsedNameClassUnprefixedNameClass(int context, Annotations a) final ParsedPatternValueExpr(boolean topLevel, Annotations a)
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
CompactSyntax
public CompactSyntax(CompactParseable parseable, Reader r, String sourceUri, SchemaBuilder sb, ErrorHandler eh, String inheritedNs) -
CompactSyntax
Constructor with InputStream. -
CompactSyntax
Constructor with InputStream and supplied encoding -
CompactSyntax
Constructor. -
CompactSyntax
Constructor with generated Token Manager.
-
-
Method Details
-
resolveNamespacePrefix
- Specified by:
resolveNamespacePrefixin interfaceorg.relaxng.datatype.ValidationContext
-
prefixes
Description copied from interface:ContextEnumerates the prefixes bound to namespaces. -
getBaseUri
- Specified by:
getBaseUriin interfaceorg.relaxng.datatype.ValidationContext
-
isUnparsedEntity
- Specified by:
isUnparsedEntityin interfaceorg.relaxng.datatype.ValidationContext
-
isNotation
- Specified by:
isNotationin interfaceorg.relaxng.datatype.ValidationContext
-
copy
Description copied from interface:ContextReturns the immutable snapshot of thisContext. -
Input
- Throws:
ParseException
-
TopLevelLookahead
- Throws:
ParseException
-
LookaheadAfterAnnotations
- Throws:
ParseException
-
LookaheadGrammarKeyword
- Throws:
ParseException
-
LookaheadDocumentation
- Throws:
ParseException
-
LookaheadBody
- Throws:
ParseException
-
IncludedGrammar
- Throws:
ParseException
-
TopLevelGrammar
- Throws:
ParseException
-
Preamble
- Throws:
ParseException
-
NamespaceDecl
- Throws:
ParseException
-
NamespaceName
- Throws:
ParseException
-
DatatypesDecl
- Throws:
ParseException
-
AnnotatedPrimaryExpr
public final ParsedPattern AnnotatedPrimaryExpr(boolean topLevel, Scope scope, Token[] except) throws ParseException - Throws:
ParseException
-
PrimaryExpr
public final ParsedPattern PrimaryExpr(boolean topLevel, Scope scope, Annotations a, Token[] except) throws ParseException - Throws:
ParseException
-
EmptyExpr
- Throws:
ParseException
-
TextExpr
- Throws:
ParseException
-
NotAllowedExpr
- Throws:
ParseException
-
Expr
public final ParsedPattern Expr(boolean topLevel, Scope scope, Token t, Annotations a) throws ParseException - Throws:
ParseException
-
UnaryExpr
public final ParsedPattern UnaryExpr(boolean topLevel, Scope scope, boolean[] hadOccur, Token[] except) throws ParseException - Throws:
ParseException
-
ElementExpr
- Throws:
ParseException
-
AttributeExpr
- Throws:
ParseException
-
NameClass
- Throws:
ParseException
-
AnnotateAfter
- Throws:
ParseException
-
NameClassAlternatives
public final ParsedNameClass NameClassAlternatives(int context, ParsedNameClass nc, Annotations[] pa) throws ParseException - Throws:
ParseException
-
BasicNameClass
- Throws:
ParseException
-
PrimaryNameClass
- Throws:
ParseException
-
OpenNameClass
- Throws:
ParseException
-
UnprefixedNameClass
- Throws:
ParseException
-
PrefixedNameClass
- Throws:
ParseException
-
NsNameExceptClass
public final ParsedNameClass NsNameExceptClass(int context, Annotations a, Annotations[] pa) throws ParseException - Throws:
ParseException
-
NsName
public final org.kohsuke.rngom.parse.compact.CompactSyntax.LocatedString NsName() throws ParseException- Throws:
ParseException
-
AnyNameExceptClass
public final ParsedNameClass AnyNameExceptClass(int context, Annotations a, Annotations[] pa) throws ParseException - Throws:
ParseException
-
ParenNameClass
- Throws:
ParseException
-
ExceptNameClass
- Throws:
ParseException
-
ListExpr
- Throws:
ParseException
-
MixedExpr
- Throws:
ParseException
-
GrammarExpr
- Throws:
ParseException
-
ParenExpr
public final ParsedPattern ParenExpr(boolean topLevel, Scope scope, Annotations a) throws ParseException - Throws:
ParseException
-
GrammarBody
public final Annotations GrammarBody(GrammarSection section, Scope scope, Annotations a) throws ParseException - Throws:
ParseException
-
GrammarComponent
- Throws:
ParseException
-
Definition
public final void Definition(GrammarSection section, Scope scope, Annotations a) throws ParseException - Throws:
ParseException
-
Start
- Throws:
ParseException
-
Define
- Throws:
ParseException
-
AssignOp
- Throws:
ParseException
-
Include
- Throws:
ParseException
-
IncludeBody
public final Annotations IncludeBody(GrammarSection section, Scope scope, Annotations a) throws ParseException - Throws:
ParseException
-
IncludeComponent
- Throws:
ParseException
-
Div
- Throws:
ParseException
-
IncludeDiv
public final void IncludeDiv(GrammarSection section, Scope scope, Annotations a) throws ParseException - Throws:
ParseException
-
ExternalRefExpr
- Throws:
ParseException
-
Inherit
- Throws:
ParseException
-
ParentExpr
- Throws:
ParseException
-
IdentifierExpr
- Throws:
ParseException
-
ValueExpr
- Throws:
ParseException
-
DataExpr
public final ParsedPattern DataExpr(boolean topLevel, Scope scope, Annotations a, Token[] except) throws ParseException - Throws:
ParseException
-
DatatypeName
- Throws:
ParseException
-
Identifier
public final org.kohsuke.rngom.parse.compact.CompactSyntax.LocatedString Identifier() throws ParseException- Throws:
ParseException
-
Prefix
- Throws:
ParseException
-
UnprefixedName
public final org.kohsuke.rngom.parse.compact.CompactSyntax.LocatedString UnprefixedName() throws ParseException- Throws:
ParseException
-
Params
- Throws:
ParseException
-
Param
- Throws:
ParseException
-
Except
- Throws:
ParseException
-
Documentation
- Throws:
ParseException
-
Annotations
- Throws:
ParseException
-
AnnotationAttribute
- Throws:
ParseException
-
PrefixedAnnotationAttribute
- Throws:
ParseException
-
UnprefixedAnnotationAttribute
- Throws:
ParseException
-
AnnotationElement
- Throws:
ParseException
-
AnnotationElementNotKeyword
- Throws:
ParseException
-
PrefixedAnnotationElement
public final ParsedElementAnnotation PrefixedAnnotationElement(boolean nested) throws ParseException - Throws:
ParseException
-
UnprefixedAnnotationElement
- Throws:
ParseException
-
IdentifierAnnotationElement
- Throws:
ParseException
-
AnnotationElementContent
- Throws:
ParseException
-
AnnotationElementLiteral
- Throws:
ParseException
-
Literal
- Throws:
ParseException
-
LocatedLiteral
public final org.kohsuke.rngom.parse.compact.CompactSyntax.LocatedString LocatedLiteral() throws ParseException- Throws:
ParseException
-
Keyword
- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-