Package gnu.kawa.xslt
Class XslTranslator
java.lang.Object
java.io.Reader
gnu.text.Lexer
gnu.kawa.xslt.XslTranslator
- All Implemented Interfaces:
Consumer,Closeable,Appendable,AutoCloseable,Readable,Consumer<Object>,DoubleConsumer,IntConsumer,LongConsumer
Translate an XSLT stylesheet to a Kawa Expression tree.
-
Field Summary
Fields inherited from class gnu.text.Lexer
port, tentative, tokenBuffer, tokenBufferLength -
Method Summary
Modifier and TypeMethodDescriptionappend(char v) append(CharSequence csq) append(CharSequence csq, int start, int end) voidEnd of an attribute or end of an actual parameter.voidvoidvoidbooleanignoring()True if consumer is ignoring rest of element.static Stringvoidparse(Compilation comp) popMatchingAttribute(String ns, String name, int start) voidstartAttribute(Object attrType) Write a attribute for the current element.voidvoidstartDocument(ModuleExp mexp) voidstartElement(Object type) voidwrite(char[] buf, int off, int len) voidwrite(int v) voidwrite(CharSequence str, int start, int length) voidvoidwriteBoolean(boolean v) voidwriteDouble(double v) voidwriteFloat(float v) voidwriteInt(int v) voidwriteLong(long v) voidMethods inherited from class gnu.text.Lexer
checkErrors, checkNext, clearErrors, close, eofError, eofError, error, error, fatal, getColumnNumber, getErrors, getLineNumber, getMessages, getName, getPort, isInteractive, isTentative, mark, peek, popNesting, pushNesting, read, read, readCodePoint, readDelimited, readDigits, readDigitsInBuffer, readIntDigits, readOptionalExponent, readUnicodeChar, reset, seenErrors, setInteractive, setMessages, setTentative, skip, skip_quick, tokenBufferAppend, tokenBufferString, unread, unread, unread_quickMethods inherited from class java.io.Reader
mark, markSupported, nullReader, read, read, ready, skip, transferToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.DoubleConsumer
andThenMethods inherited from interface java.util.function.IntConsumer
andThenMethods inherited from interface java.util.function.LongConsumer
andThen
-
Method Details
-
popMatchingAttribute
-
isXslTag
-
startElement
- Specified by:
startElementin interfaceConsumer
-
startAttribute
Description copied from interface:ConsumerWrite a attribute for the current element. This is only allowed immediately after a startElement.- Specified by:
startAttributein interfaceConsumer
-
endAttribute
public void endAttribute()Description copied from interface:ConsumerEnd 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:
endAttributein interfaceConsumer
-
endElement
public void endElement()- Specified by:
endElementin interfaceConsumer
-
write
public void write(int v) -
append
- Specified by:
appendin interfaceAppendable- Specified by:
appendin interfaceConsumer
-
append
- Specified by:
appendin interfaceAppendable- Specified by:
appendin interfaceConsumer
-
append
- Specified by:
appendin interfaceAppendable- Specified by:
appendin interfaceConsumer
-
writeBoolean
public void writeBoolean(boolean v) - Specified by:
writeBooleanin interfaceConsumer
-
writeFloat
public void writeFloat(float v) - Specified by:
writeFloatin interfaceConsumer
-
writeDouble
public void writeDouble(double v) - Specified by:
writeDoublein interfaceConsumer
-
writeInt
public void writeInt(int v) -
writeLong
public void writeLong(long v) -
startDocument
public void startDocument()- Specified by:
startDocumentin interfaceConsumer
-
startDocument
-
endDocument
public void endDocument()- Specified by:
endDocumentin interfaceConsumer
-
writeObject
- Specified by:
writeObjectin interfaceConsumer
-
write
public void write(char[] buf, int off, int len) -
write
-
write
-
ignoring
public boolean ignoring()Description copied from interface:ConsumerTrue if consumer is ignoring rest of element. The producer can use this information to skip ahead. -
getExpression
-
error
-
parse
- Throws:
IOException
-