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


Field Summary
 Token jj_nt
           
 Token token
           
 SimpleDataLanguageParserTokenManager token_source
           
 
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
 
Constructor Summary
SimpleDataLanguageParser(java.io.InputStream stream)
           
SimpleDataLanguageParser(java.io.Reader stream)
           
SimpleDataLanguageParser(SimpleDataLanguageParserTokenManager tm)
           
 
Method Summary
 void attribute_value(java.lang.String attributeName, org.xml.sax.helpers.AttributesImpl attributes)
           
 void attribute(org.xml.sax.helpers.AttributesImpl attributes)
           
 void body_content()
           
 void disable_tracing()
           
 void element_attributes(org.xml.sax.helpers.AttributesImpl attributes)
           
 void element_body()
           
 void element()
           
 void enable_tracing()
           
 ParseException generateParseException()
           
 org.xml.sax.Locator getLocator()
          Returns the locator used by this parser instance; which is needed to generate SAXParseExceptions in SDLResourceParser.
 Token getNextToken()
           
 Token getToken(int index)
           
 void parse(org.xml.sax.ContentHandler handler)
          Parses an SDL document from a stream provided in the constructor.
 void ReInit(java.io.InputStream stream)
           
 void ReInit(java.io.Reader stream)
           
 void ReInit(SimpleDataLanguageParserTokenManager tm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public SimpleDataLanguageParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt
Constructor Detail

SimpleDataLanguageParser

public SimpleDataLanguageParser(java.io.InputStream stream)

SimpleDataLanguageParser

public SimpleDataLanguageParser(java.io.Reader stream)

SimpleDataLanguageParser

public SimpleDataLanguageParser(SimpleDataLanguageParserTokenManager tm)
Method Detail

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()