gnu.kawa.xslt
Class XslTranslator
java.lang.Object
java.io.Reader
gnu.text.Lexer
gnu.kawa.xslt.XslTranslator
- All Implemented Interfaces:
- Consumer, java.io.Closeable, java.lang.Readable
public class XslTranslator
- extends Lexer
- implements Consumer
Translate an XSLT stylesheet to a Kawa Expression tree.
Fields inherited from class java.io.Reader |
lock |
Methods inherited from class gnu.text.Lexer |
checkErrors, checkNext, clearErrors, close, eofError, eofError, error, error, fatal, getColumnNumber, getErrors, getLineNumber, getMessages, getName, getPort, isInteractive, mark, peek, popNesting, pushNesting, read, read, readDigitsInBuffer, readOptionalExponent, reset, seenErrors, setInteractive, setMessages, skip_quick, skip, tokenBufferAppend, unread_quick, unread, unread |
Methods inherited from class java.io.Reader |
mark, markSupported, read, read, ready, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
popMatchingAttribute
public java.lang.String popMatchingAttribute(java.lang.String ns,
java.lang.String name,
int start)
isXslTag
public static java.lang.String isXslTag(java.lang.Object type)
startElement
public void startElement(java.lang.Object type)
- Specified by:
startElement
in interface Consumer
startAttribute
public void startAttribute(java.lang.Object attrType)
- Description copied from interface:
Consumer
- Write a attribute for the current element.
This is only allowed immediately after a startElement.
- Specified by:
startAttribute
in interface Consumer
endAttribute
public void endAttribute()
- Description copied from interface:
Consumer
- End of an attribute or end of an actual parameter.
The former use matches a startAttribute; the latter may not,
and can be used to separate parameters in a parameter list.
This double duty suggsts the method should at least be re-named.
- Specified by:
endAttribute
in interface Consumer
endElement
public void endElement()
- Specified by:
endElement
in interface Consumer
write
public void write(int v)
- Specified by:
write
in interface Consumer
append
public Consumer append(java.lang.String str)
writeBoolean
public void writeBoolean(boolean v)
- Specified by:
writeBoolean
in interface Consumer
writeFloat
public void writeFloat(float v)
- Specified by:
writeFloat
in interface Consumer
writeDouble
public void writeDouble(double v)
- Specified by:
writeDouble
in interface Consumer
writeInt
public void writeInt(int v)
- Specified by:
writeInt
in interface Consumer
writeLong
public void writeLong(long v)
- Specified by:
writeLong
in interface Consumer
startDocument
public void startDocument()
- Specified by:
startDocument
in interface Consumer
startDocument
public void startDocument(ModuleExp mexp)
endDocument
public void endDocument()
- Specified by:
endDocument
in interface Consumer
writeObject
public void writeObject(java.lang.Object v)
- Specified by:
writeObject
in interface Consumer
write
public void write(char[] buf,
int off,
int len)
- Specified by:
write
in interface Consumer
write
public void write(java.lang.String str)
- Specified by:
write
in interface Consumer
write
public void write(java.lang.CharSequence str,
int start,
int length)
- Specified by:
write
in interface Consumer
ignoring
public boolean ignoring()
- Description copied from interface:
Consumer
- True if consumer is ignoring rest of element.
The producer can use this information to skip ahead.
- Specified by:
ignoring
in interface Consumer
getExpression
public Expression getExpression()
error
public void error(char kind,
java.lang.String message)
- Overrides:
error
in class Lexer
parse
public void parse(Compilation comp)
throws java.io.IOException
- Throws:
java.io.IOException