public class CompactSyntax extends Object implements Context, CompactSyntaxConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
CompactSyntaxTokenManager |
token_source
Generated Token Manager.
|
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 and Description |
---|
CompactSyntax(CompactParseable parseable,
Reader r,
String sourceUri,
SchemaBuilder sb,
ErrorHandler eh,
String inheritedNs) |
CompactSyntax(CompactSyntaxTokenManager tm)
Constructor with generated Token Manager.
|
CompactSyntax(InputStream stream)
Constructor with InputStream.
|
CompactSyntax(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
CompactSyntax(Reader stream)
Constructor.
|
public CompactSyntaxTokenManager token_source
public Token token
public Token jj_nt
public CompactSyntax(CompactParseable parseable, Reader r, String sourceUri, SchemaBuilder sb, ErrorHandler eh, String inheritedNs)
public CompactSyntax(InputStream stream)
public CompactSyntax(InputStream stream, String encoding)
public CompactSyntax(Reader stream)
public CompactSyntax(CompactSyntaxTokenManager tm)
public String resolveNamespacePrefix(String prefix)
resolveNamespacePrefix
in interface org.relaxng.datatype.ValidationContext
public Enumeration prefixes()
Context
public String getBaseUri()
getBaseUri
in interface org.relaxng.datatype.ValidationContext
public boolean isUnparsedEntity(String entityName)
isUnparsedEntity
in interface org.relaxng.datatype.ValidationContext
public boolean isNotation(String notationName)
isNotation
in interface org.relaxng.datatype.ValidationContext
public Context copy()
Context
Context
.public final ParsedPattern Input(Scope scope) throws ParseException
ParseException
public final void TopLevelLookahead() throws ParseException
ParseException
public final void LookaheadAfterAnnotations() throws ParseException
ParseException
public final void LookaheadGrammarKeyword() throws ParseException
ParseException
public final void LookaheadDocumentation() throws ParseException
ParseException
public final void LookaheadBody() throws ParseException
ParseException
public final ParsedPattern IncludedGrammar(IncludedGrammar g) throws ParseException
ParseException
public final ParsedPattern TopLevelGrammar(Scope scope) throws ParseException
ParseException
public final void Preamble() throws ParseException
ParseException
public final void NamespaceDecl() throws ParseException
ParseException
public final String NamespaceName() throws ParseException
ParseException
public final void DatatypesDecl() throws ParseException
ParseException
public final ParsedPattern AnnotatedPrimaryExpr(boolean topLevel, Scope scope, Token[] except) throws ParseException
ParseException
public final ParsedPattern PrimaryExpr(boolean topLevel, Scope scope, Annotations a, Token[] except) throws ParseException
ParseException
public final ParsedPattern EmptyExpr(Annotations a) throws ParseException
ParseException
public final ParsedPattern TextExpr(Annotations a) throws ParseException
ParseException
public final ParsedPattern NotAllowedExpr(Annotations a) throws ParseException
ParseException
public final ParsedPattern Expr(boolean topLevel, Scope scope, Token t, Annotations a) throws ParseException
ParseException
public final ParsedPattern UnaryExpr(boolean topLevel, Scope scope, boolean[] hadOccur, Token[] except) throws ParseException
ParseException
public final ParsedPattern ElementExpr(Scope scope, Annotations a) throws ParseException
ParseException
public final ParsedPattern AttributeExpr(Scope scope, Annotations a) throws ParseException
ParseException
public final ParsedNameClass NameClass(int context, Annotations[] pa) throws ParseException
ParseException
public final ParsedNameClass AnnotateAfter(ParsedNameClass nc) throws ParseException
ParseException
public final ParsedNameClass NameClassAlternatives(int context, ParsedNameClass nc, Annotations[] pa) throws ParseException
ParseException
public final ParsedNameClass BasicNameClass(int context) throws ParseException
ParseException
public final ParsedNameClass PrimaryNameClass(int context, Annotations a) throws ParseException
ParseException
public final ParsedNameClass OpenNameClass(int context, Annotations a) throws ParseException
ParseException
public final ParsedNameClass UnprefixedNameClass(int context, Annotations a) throws ParseException
ParseException
public final ParsedNameClass PrefixedNameClass(Annotations a) throws ParseException
ParseException
public final ParsedNameClass NsNameExceptClass(int context, Annotations a, Annotations[] pa) throws ParseException
ParseException
public final org.kohsuke.rngom.parse.compact.CompactSyntax.LocatedString NsName() throws ParseException
ParseException
public final ParsedNameClass AnyNameExceptClass(int context, Annotations a, Annotations[] pa) throws ParseException
ParseException
public final ParsedNameClass ParenNameClass(int context, Annotations a) throws ParseException
ParseException
public final ParsedNameClass ExceptNameClass(int context) throws ParseException
ParseException
public final ParsedPattern ListExpr(Scope scope, Annotations a) throws ParseException
ParseException
public final ParsedPattern MixedExpr(Scope scope, Annotations a) throws ParseException
ParseException
public final ParsedPattern GrammarExpr(Scope scope, Annotations a) throws ParseException
ParseException
public final ParsedPattern ParenExpr(boolean topLevel, Scope scope, Annotations a) throws ParseException
ParseException
public final Annotations GrammarBody(GrammarSection section, Scope scope, Annotations a) throws ParseException
ParseException
public final void GrammarComponent(GrammarSection section, Scope scope) throws ParseException
ParseException
public final void Definition(GrammarSection section, Scope scope, Annotations a) throws ParseException
ParseException
public final void Start(GrammarSection section, Scope scope, Annotations a) throws ParseException
ParseException
public final void Define(GrammarSection section, Scope scope, Annotations a) throws ParseException
ParseException
public final GrammarSection.Combine AssignOp() throws ParseException
ParseException
public final void Include(GrammarSection section, Scope scope, Annotations a) throws ParseException
ParseException
public final Annotations IncludeBody(GrammarSection section, Scope scope, Annotations a) throws ParseException
ParseException
public final void IncludeComponent(GrammarSection section, Scope scope) throws ParseException
ParseException
public final void Div(GrammarSection section, Scope scope, Annotations a) throws ParseException
ParseException
public final void IncludeDiv(GrammarSection section, Scope scope, Annotations a) throws ParseException
ParseException
public final ParsedPattern ExternalRefExpr(Scope scope, Annotations a) throws ParseException
ParseException
public final String Inherit() throws ParseException
ParseException
public final ParsedPattern ParentExpr(Scope scope, Annotations a) throws ParseException
ParseException
public final ParsedPattern IdentifierExpr(Scope scope, Annotations a) throws ParseException
ParseException
public final ParsedPattern ValueExpr(boolean topLevel, Annotations a) throws ParseException
ParseException
public final ParsedPattern DataExpr(boolean topLevel, Scope scope, Annotations a, Token[] except) throws ParseException
ParseException
public final Token DatatypeName() throws ParseException
ParseException
public final org.kohsuke.rngom.parse.compact.CompactSyntax.LocatedString Identifier() throws ParseException
ParseException
public final String Prefix() throws ParseException
ParseException
public final org.kohsuke.rngom.parse.compact.CompactSyntax.LocatedString UnprefixedName() throws ParseException
ParseException
public final void Params(DataPatternBuilder dpb) throws ParseException
ParseException
public final void Param(DataPatternBuilder dpb) throws ParseException
ParseException
public final ParsedPattern Except(Scope scope, Token[] except) throws ParseException
ParseException
public final ParsedElementAnnotation Documentation() throws ParseException
ParseException
public final Annotations Annotations() throws ParseException
ParseException
public final void AnnotationAttribute(Annotations a) throws ParseException
ParseException
public final void PrefixedAnnotationAttribute(Annotations a, boolean nested) throws ParseException
ParseException
public final void UnprefixedAnnotationAttribute(Annotations a) throws ParseException
ParseException
public final ParsedElementAnnotation AnnotationElement(boolean nested) throws ParseException
ParseException
public final ParsedElementAnnotation AnnotationElementNotKeyword() throws ParseException
ParseException
public final ParsedElementAnnotation PrefixedAnnotationElement(boolean nested) throws ParseException
ParseException
public final ParsedElementAnnotation UnprefixedAnnotationElement() throws ParseException
ParseException
public final ParsedElementAnnotation IdentifierAnnotationElement() throws ParseException
ParseException
public final void AnnotationElementContent(ElementAnnotationBuilder eab) throws ParseException
ParseException
public final void AnnotationElementLiteral(ElementAnnotationBuilder eab) throws ParseException
ParseException
public final String Literal() throws ParseException
ParseException
public final org.kohsuke.rngom.parse.compact.CompactSyntax.LocatedString LocatedLiteral() throws ParseException
ParseException
public final Token Keyword() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(CompactSyntaxTokenManager 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 © 2017 JBoss by Red Hat. All rights reserved.