Class CodeLineHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.cakelab.jdoxml.impl.basehandler.BaseHandler<CodeLineHandler>
-
- org.cakelab.jdoxml.impl.dochandler.CodeLineHandler
-
- All Implemented Interfaces:
IDoc
,IDocCodeLine
,IBaseHandler
,org.xml.sax.ContentHandler
,org.xml.sax.DTDHandler
,org.xml.sax.EntityResolver
,org.xml.sax.ErrorHandler
public class CodeLineHandler extends BaseHandler<CodeLineHandler> implements IDocCodeLine
Node representing a line of code.
-
-
Field Summary
-
Fields inherited from class org.cakelab.jdoxml.impl.basehandler.BaseHandler
elementMapper, m_curString, m_delegateHandler, m_fallBackHandler, m_skipCount, m_skipUntil, s_theLocator
-
-
Constructor Summary
Constructors Constructor Description CodeLineHandler(IBaseHandler parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.ListIterator<IDoc>
codeElements()
void
endCodeLine()
void
endLineNumber()
IDoc.Kind
kind()
int
lineNumber()
java.lang.String
refId()
void
startCodeLine(org.xml.sax.Attributes attrib)
void
startHighlight(org.xml.sax.Attributes attrib)
void
startLineNumber(org.xml.sax.Attributes attrib)
void
startRef(org.xml.sax.Attributes attrib)
-
Methods inherited from class org.cakelab.jdoxml.impl.basehandler.BaseHandler
addEndHandler, addEndHandler, addStartHandler, addStartHandler, characters, delegate, endElement, fallBackHandler, setDelegate, setDocumentLocator, setFallBackHandler, skippedEntity, startDocument, startElement
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Constructor Detail
-
CodeLineHandler
public CodeLineHandler(IBaseHandler parent)
-
-
Method Detail
-
startCodeLine
public void startCodeLine(org.xml.sax.Attributes attrib)
-
endCodeLine
public void endCodeLine()
-
startLineNumber
public void startLineNumber(org.xml.sax.Attributes attrib)
-
endLineNumber
public void endLineNumber()
-
startHighlight
public void startHighlight(org.xml.sax.Attributes attrib)
-
startRef
public void startRef(org.xml.sax.Attributes attrib)
-
codeElements
public java.util.ListIterator<IDoc> codeElements()
- Specified by:
codeElements
in interfaceIDocCodeLine
-
lineNumber
public int lineNumber()
- Specified by:
lineNumber
in interfaceIDocCodeLine
-
refId
public java.lang.String refId()
- Specified by:
refId
in interfaceIDocCodeLine
-
-