org.fife.ui.rsyntaxtextarea
Class XMLParser
java.lang.Object
org.fife.ui.rsyntaxtextarea.parser.AbstractParser
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLParser
public XMLParser(RSyntaxTextArea textArea)
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.