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.ValidationContextpublic Enumeration prefixes()
Contextpublic String getBaseUri()
getBaseUri in interface org.relaxng.datatype.ValidationContextpublic boolean isUnparsedEntity(String entityName)
isUnparsedEntity in interface org.relaxng.datatype.ValidationContextpublic boolean isNotation(String notationName)
isNotation in interface org.relaxng.datatype.ValidationContextpublic Context copy()
ContextContext.public final ParsedPattern Input(Scope scope) throws ParseException
ParseExceptionpublic final void TopLevelLookahead()
throws ParseException
ParseExceptionpublic final void LookaheadAfterAnnotations()
throws ParseException
ParseExceptionpublic final void LookaheadGrammarKeyword()
throws ParseException
ParseExceptionpublic final void LookaheadDocumentation()
throws ParseException
ParseExceptionpublic final void LookaheadBody()
throws ParseException
ParseExceptionpublic final ParsedPattern IncludedGrammar(IncludedGrammar g) throws ParseException
ParseExceptionpublic final ParsedPattern TopLevelGrammar(Scope scope) throws ParseException
ParseExceptionpublic final void Preamble()
throws ParseException
ParseExceptionpublic final void NamespaceDecl()
throws ParseException
ParseExceptionpublic final String NamespaceName() throws ParseException
ParseExceptionpublic final void DatatypesDecl()
throws ParseException
ParseExceptionpublic final ParsedPattern AnnotatedPrimaryExpr(boolean topLevel, Scope scope, Token[] except) throws ParseException
ParseExceptionpublic final ParsedPattern PrimaryExpr(boolean topLevel, Scope scope, Annotations a, Token[] except) throws ParseException
ParseExceptionpublic final ParsedPattern EmptyExpr(Annotations a) throws ParseException
ParseExceptionpublic final ParsedPattern TextExpr(Annotations a) throws ParseException
ParseExceptionpublic final ParsedPattern NotAllowedExpr(Annotations a) throws ParseException
ParseExceptionpublic final ParsedPattern Expr(boolean topLevel, Scope scope, Token t, Annotations a) throws ParseException
ParseExceptionpublic final ParsedPattern UnaryExpr(boolean topLevel, Scope scope, boolean[] hadOccur, Token[] except) throws ParseException
ParseExceptionpublic final ParsedPattern ElementExpr(Scope scope, Annotations a) throws ParseException
ParseExceptionpublic final ParsedPattern AttributeExpr(Scope scope, Annotations a) throws ParseException
ParseExceptionpublic final ParsedNameClass NameClass(int context, Annotations[] pa) throws ParseException
ParseExceptionpublic final ParsedNameClass AnnotateAfter(ParsedNameClass nc) throws ParseException
ParseExceptionpublic final ParsedNameClass NameClassAlternatives(int context, ParsedNameClass nc, Annotations[] pa) throws ParseException
ParseExceptionpublic final ParsedNameClass BasicNameClass(int context) throws ParseException
ParseExceptionpublic final ParsedNameClass PrimaryNameClass(int context, Annotations a) throws ParseException
ParseExceptionpublic final ParsedNameClass OpenNameClass(int context, Annotations a) throws ParseException
ParseExceptionpublic final ParsedNameClass UnprefixedNameClass(int context, Annotations a) throws ParseException
ParseExceptionpublic final ParsedNameClass PrefixedNameClass(Annotations a) throws ParseException
ParseExceptionpublic final ParsedNameClass NsNameExceptClass(int context, Annotations a, Annotations[] pa) throws ParseException
ParseExceptionpublic final org.kohsuke.rngom.parse.compact.CompactSyntax.LocatedString NsName()
throws ParseException
ParseExceptionpublic final ParsedNameClass AnyNameExceptClass(int context, Annotations a, Annotations[] pa) throws ParseException
ParseExceptionpublic final ParsedNameClass ParenNameClass(int context, Annotations a) throws ParseException
ParseExceptionpublic final ParsedNameClass ExceptNameClass(int context) throws ParseException
ParseExceptionpublic final ParsedPattern ListExpr(Scope scope, Annotations a) throws ParseException
ParseExceptionpublic final ParsedPattern MixedExpr(Scope scope, Annotations a) throws ParseException
ParseExceptionpublic final ParsedPattern GrammarExpr(Scope scope, Annotations a) throws ParseException
ParseExceptionpublic final ParsedPattern ParenExpr(boolean topLevel, Scope scope, Annotations a) throws ParseException
ParseExceptionpublic final Annotations GrammarBody(GrammarSection section, Scope scope, Annotations a) throws ParseException
ParseExceptionpublic final void GrammarComponent(GrammarSection section, Scope scope) throws ParseException
ParseExceptionpublic final void Definition(GrammarSection section, Scope scope, Annotations a) throws ParseException
ParseExceptionpublic final void Start(GrammarSection section, Scope scope, Annotations a) throws ParseException
ParseExceptionpublic final void Define(GrammarSection section, Scope scope, Annotations a) throws ParseException
ParseExceptionpublic final GrammarSection.Combine AssignOp() throws ParseException
ParseExceptionpublic final void Include(GrammarSection section, Scope scope, Annotations a) throws ParseException
ParseExceptionpublic final Annotations IncludeBody(GrammarSection section, Scope scope, Annotations a) throws ParseException
ParseExceptionpublic final void IncludeComponent(GrammarSection section, Scope scope) throws ParseException
ParseExceptionpublic final void Div(GrammarSection section, Scope scope, Annotations a) throws ParseException
ParseExceptionpublic final void IncludeDiv(GrammarSection section, Scope scope, Annotations a) throws ParseException
ParseExceptionpublic final ParsedPattern ExternalRefExpr(Scope scope, Annotations a) throws ParseException
ParseExceptionpublic final String Inherit() throws ParseException
ParseExceptionpublic final ParsedPattern ParentExpr(Scope scope, Annotations a) throws ParseException
ParseExceptionpublic final ParsedPattern IdentifierExpr(Scope scope, Annotations a) throws ParseException
ParseExceptionpublic final ParsedPattern ValueExpr(boolean topLevel, Annotations a) throws ParseException
ParseExceptionpublic final ParsedPattern DataExpr(boolean topLevel, Scope scope, Annotations a, Token[] except) throws ParseException
ParseExceptionpublic final Token DatatypeName() throws ParseException
ParseExceptionpublic final org.kohsuke.rngom.parse.compact.CompactSyntax.LocatedString Identifier()
throws ParseException
ParseExceptionpublic final String Prefix() throws ParseException
ParseExceptionpublic final org.kohsuke.rngom.parse.compact.CompactSyntax.LocatedString UnprefixedName()
throws ParseException
ParseExceptionpublic final void Params(DataPatternBuilder dpb) throws ParseException
ParseExceptionpublic final void Param(DataPatternBuilder dpb) throws ParseException
ParseExceptionpublic final ParsedPattern Except(Scope scope, Token[] except) throws ParseException
ParseExceptionpublic final ParsedElementAnnotation Documentation() throws ParseException
ParseExceptionpublic final Annotations Annotations() throws ParseException
ParseExceptionpublic final void AnnotationAttribute(Annotations a) throws ParseException
ParseExceptionpublic final void PrefixedAnnotationAttribute(Annotations a, boolean nested) throws ParseException
ParseExceptionpublic final void UnprefixedAnnotationAttribute(Annotations a) throws ParseException
ParseExceptionpublic final ParsedElementAnnotation AnnotationElement(boolean nested) throws ParseException
ParseExceptionpublic final ParsedElementAnnotation AnnotationElementNotKeyword() throws ParseException
ParseExceptionpublic final ParsedElementAnnotation PrefixedAnnotationElement(boolean nested) throws ParseException
ParseExceptionpublic final ParsedElementAnnotation UnprefixedAnnotationElement() throws ParseException
ParseExceptionpublic final ParsedElementAnnotation IdentifierAnnotationElement() throws ParseException
ParseExceptionpublic final void AnnotationElementContent(ElementAnnotationBuilder eab) throws ParseException
ParseExceptionpublic final void AnnotationElementLiteral(ElementAnnotationBuilder eab) throws ParseException
ParseExceptionpublic final String Literal() throws ParseException
ParseExceptionpublic final org.kohsuke.rngom.parse.compact.CompactSyntax.LocatedString LocatedLiteral()
throws ParseException
ParseExceptionpublic final Token Keyword() throws ParseException
ParseExceptionpublic 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 © 2018 JBoss by Red Hat. All rights reserved.