de.zeigermann.xpa.treeParser
Class XMLFragmentDrivenASTParser

java.lang.Object
  |
  +--de.zeigermann.xpa.treeParser.Parser2XMLASTAdapter
        |
        +--de.zeigermann.xpa.treeParser.XMLFragmentDrivenASTParser

public class XMLFragmentDrivenASTParser
extends Parser2XMLASTAdapter

This class is an AST generating parser driven by an XMLFragmentParser.


Field Summary
 
Fields inherited from class de.zeigermann.xpa.treeParser.Parser2XMLASTAdapter
tokenManager, tree, treeStack
 
Constructor Summary
XMLFragmentDrivenASTParser(XMLTokenTypeManager tokenManager)
          Creates a new parser using tokenManager.
 
Method Summary
 void parse(InputStream in)
          Parses a XML from an input stream
 void parse(Reader in)
          Parses a XML from a reader.
protected  void parse(XMLFragmentParser parser)
          Parses a XML using a fully initialized parser.
 
Methods inherited from class de.zeigermann.xpa.treeParser.Parser2XMLASTAdapter
getAST, getIgnoreAllWhiteSpace, getTreatValidWhiteSpaceAsIgnorable, parse, setIgnoreAllWhiteSpace, setTreatValidWhiteSpaceAsIgnorable, tellEndElement, tellPCDATA, tellStartDocument, tellStartElement, tellWhiteSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLFragmentDrivenASTParser

public XMLFragmentDrivenASTParser(XMLTokenTypeManager tokenManager)
Creates a new parser using tokenManager.

Parameters:
tokenManager - the token manager to determine token types for token generation
Method Detail

parse

public void parse(Reader in)
           throws XPAParseException
Parses a XML from a reader.

Specified by:
parse in class Parser2XMLASTAdapter
Parameters:
in - the reader to parse from
XPAParseException

parse

public void parse(InputStream in)
           throws XPAParseException
Parses a XML from an input stream

Specified by:
parse in class Parser2XMLASTAdapter
Parameters:
in - the input stream to parse from
XPAParseException

parse

protected void parse(XMLFragmentParser parser)
              throws XPAParseException
Parses a XML using a fully initialized parser.

Parameters:
parser - the parser feeding this AST adapter
XPAParseException


Copyright 1999-2003 Oliver Zeigermann. All Rights Reserved.