org.comedia.text
Class CXmlHighlighter

java.lang.Object
  |
  +--org.comedia.text.CAbstractHighlighter
        |
        +--org.comedia.text.CXmlHighlighter

public class CXmlHighlighter
extends CAbstractHighlighter

Extends the CAbstractHighlighter to process XML source files.


Fields inherited from class org.comedia.text.CAbstractHighlighter
commentAttr, delimAttr, identAttr, keywordAttr, numberAttr, scanner, stringAttr, whiteSpaceAttr
 
Constructor Summary
CXmlHighlighter()
          Constract this class with default properties.
 
Method Summary
 boolean isMultilineComment()
          Check if current is a multiline comment.
 int locateUnclosedComment(java.lang.String text, int pos)
          Locates a last unclosed multiline comment before specified position.
 
Methods inherited from class org.comedia.text.CAbstractHighlighter
getAttribute, getCommentAttribute, getDelimAttribute, getIdentAttribute, getKeywordAttribute, getNumberAttribute, getStringAttribute, getToken, getWhiteSpaceAttribute, gotoNextToken, locateUnclosedComment, setBuffer, setCommentAttribute, setDelimAttribute, setIdentAttribute, setKeywordAttribute, setNumberAttribute, setStringAttribute, setWhiteSpaceAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CXmlHighlighter

public CXmlHighlighter()
Constract this class with default properties.
Method Detail

locateUnclosedComment

public int locateUnclosedComment(java.lang.String text,
                                 int pos)
Locates a last unclosed multiline comment before specified position.
Overrides:
locateUnclosedComment in class CAbstractHighlighter
Parameters:
text - the text to search in.
pos - the last position

isMultilineComment

public boolean isMultilineComment()
Check if current is a multiline comment.
Overrides:
isMultilineComment in class CAbstractHighlighter