org.gjt.sp.jedit.syntax
Class XModeHandler
java.lang.Object
HandlerBase
org.gjt.sp.jedit.syntax.XModeHandler
- public abstract class XModeHandler
- extends HandlerBase
XML handler for mode definition files.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XModeHandler
public XModeHandler(String modeName)
resolveEntity
public Object resolveEntity(String publicId,
String systemId)
attribute
public void attribute(String aname,
String value,
boolean isSpecified)
doctypeDecl
public void doctypeDecl(String name,
String publicId,
String systemId)
throws Exception
- Throws:
Exception
charData
public void charData(char[] c,
int off,
int len)
startElement
public void startElement(String tag)
endElement
public void endElement(String name)
startDocument
public void startDocument()
endDocument
public void endDocument()
getTokenMarker
public TokenMarker getTokenMarker()
getModeProperties
public Hashtable getModeProperties()
error
protected abstract void error(String msg,
Object subst)
- Reports an error.
You must override this method so that the mode loader can do error
reporting.
- Parameters:
msg
- The error typesubst
- A String
or a Throwable
containing specific information- Since:
- jEdit 4.2pre1
getTokenMarker
protected abstract TokenMarker getTokenMarker(String mode)
- 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