org.apache.hivemind.sdl.parser
Class SimpleDataLanguageParser
java.lang.Object
|
+--org.apache.hivemind.sdl.parser.SimpleDataLanguageParser
- All Implemented Interfaces:
- SimpleDataLanguageParserConstants
- public class SimpleDataLanguageParser
- extends java.lang.Object
- implements SimpleDataLanguageParserConstants
Fields inherited from interface org.apache.hivemind.sdl.parser.SimpleDataLanguageParserConstants |
CBRACE, COLON, COMPLEX_ID, CPAREN, DEFAULT, DIGIT, DOT, EOF, EQ, EXTENDED_LITERAL, EXTRACTING_QUOTED_LITERAL, MULTILINE_COMMENT, NUMERIC_LITERAL, OBRACE, OPAREN, QUOTE, QUOTED_LITERAL, SEGMENTED_ID, SIGN, SIMPLE_ID, SINGLE_LINE_COMMENT, SYMBOL, tokenImage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public SimpleDataLanguageParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
SimpleDataLanguageParser
public SimpleDataLanguageParser(java.io.InputStream stream)
SimpleDataLanguageParser
public SimpleDataLanguageParser(java.io.Reader stream)
SimpleDataLanguageParser
public SimpleDataLanguageParser(SimpleDataLanguageParserTokenManager tm)
getLocator
public org.xml.sax.Locator getLocator()
- Returns the locator used by this parser instance; which is needed to generate
SAXParseExceptions in SDLResourceParser.
parse
public final void parse(org.xml.sax.ContentHandler handler)
throws ParseException
- Parses an SDL document from a stream provided in the constructor. An instance
of SimpleDataLanguageParser should be used once and then discarded ... it will
be left in an unknown state after parsing a stream (especially if an error
occurs).
ParseException
element
public final void element()
throws ParseException
ParseException
element_attributes
public final void element_attributes(org.xml.sax.helpers.AttributesImpl attributes)
throws ParseException
ParseException
attribute
public final void attribute(org.xml.sax.helpers.AttributesImpl attributes)
throws ParseException
ParseException
attribute_value
public final void attribute_value(java.lang.String attributeName,
org.xml.sax.helpers.AttributesImpl attributes)
throws ParseException
ParseException
element_body
public final void element_body()
throws ParseException
ParseException
body_content
public final void body_content()
throws ParseException
ParseException
ReInit
public void ReInit(java.io.InputStream stream)
ReInit
public void ReInit(java.io.Reader stream)
ReInit
public void ReInit(SimpleDataLanguageParserTokenManager tm)
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
generateParseException
public final ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()