org.fife.ui.rsyntaxtextarea
Class XMLParser

java.lang.Object
  extended by org.fife.ui.rsyntaxtextarea.parser.AbstractParser
      extended by org.fife.ui.rsyntaxtextarea.XMLParser
All Implemented Interfaces:
Parser

public class XMLParser
extends AbstractParser

A parser for XML documents.

Version:
1.0
Author:
Robert Futrell

Constructor Summary
XMLParser(RSyntaxTextArea textArea)
           
 
Method Summary
 ParseResult parse(RSyntaxDocument doc, String style)
          Parses input from the specified document.
 
Methods inherited from class org.fife.ui.rsyntaxtextarea.parser.AbstractParser
getHyperlinkListener, getImageBase, isEnabled, setEnabled, setHyperlinkListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLParser

public XMLParser(RSyntaxTextArea textArea)
Method Detail

parse

public ParseResult parse(RSyntaxDocument doc,
                         String style)
Parses input from the specified document.

Parameters:
doc - The document to parse. This document is in a read lock, so it cannot be modified while parsing is occurring.
style - The language being rendered, such as SyntaxConstants.SYNTAX_STYLE_JAVA.
Returns:
An object describing the section of the document parsed and the results. This is guaranteed to be non-null.


Copyright © 2003-2012. All Rights Reserved.