java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.gjt.sp.jedit.syntax.XModeHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
XML handler for mode definition files.
- Version:
- $Id: XModeHandler.java 25244 2020-04-15 15:14:49Z kpouer $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] c, int off, int len) voidvoidendElement(String uri, String localName, String name) protected abstract voidReports an error.Returns the TokenMarker.protected abstract TokenMarkergetTokenMarker(String mode) Returns the token marker for the given mode.resolveEntity(String publicId, String systemId) voidvoidstartElement(String uri, String localName, String qName, Attributes attrs) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
XModeHandler
-
-
Method Details
-
resolveEntity
- Specified by:
resolveEntityin interfaceEntityResolver- Overrides:
resolveEntityin classDefaultHandler
-
characters
public void characters(char[] c, int off, int len) - Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler
-
startElement
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler
-
startDocument
public void startDocument()- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classDefaultHandler
-
endDocument
public void endDocument()- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classDefaultHandler
-
getTokenMarker
Returns the TokenMarker.- Returns:
- a TokenMarker it cannot be null
-
getModeProperties
-
error
Reports an error. You must override this method so that the mode loader can do error reporting.- Parameters:
msg- The error typesubst- AStringor aThrowablecontaining specific information- Since:
- jEdit 4.2pre1
-
getTokenMarker
Returns the token marker for the given mode. You must override this method so that the mode loader can resolve delegate targets.- Parameters:
mode- The mode name- Since:
- jEdit 4.2pre1
-