org.apache.xalan.xsltc.compiler
Class XSLTC

java.lang.Object
  |
  +--org.apache.xalan.xsltc.compiler.XSLTC

public final class XSLTC
extends java.lang.Object


Constructor Summary
XSLTC()
           
 
Method Summary
 boolean compile(java.net.URL stylesheet)
          Compiles the stylesheet into Java bytecode.
 byte[][] compileStylesheet(java.net.URL stylesheetURL, java.lang.String className)
           
 boolean debug()
           
 void dumpClass(de.fub.bytecode.classfile.JavaClass clazz)
           
 void extensionNotSupported(java.lang.String feature)
          Aborts the execution of the compiler if something found in the source file can't be compiled.
 java.lang.String getClassName()
           
 java.lang.String getHelperClassName()
          Returns a unique name for every helper class needed to execute a translet.
 java.util.Vector getNamesIndex()
           
 java.util.Vector getNamespaceIndex()
           
 int[] getNumberFieldIndexes()
           
 Stylesheet getStylesheet()
           
 void init()
           
 void internalError()
          Aborts the execution of the compiler as a result of an unrecoverable error.
static void main(java.lang.String[] args)
          Command line runnability.
 int nextAttributeSetSerial()
           
 int nextHelperClassSerial()
           
 int nextModeSerial()
           
 int nextStepPatternSerial()
           
 int nextStylesheetSerial()
           
 int nextVariableSerial()
           
 void notYetImplemented(java.lang.String feature)
          Aborts the execution of the compiler if something found in the source file can't be compiled.
static void printUsage()
           
 int registerAttribute(org.apache.xalan.xsltc.compiler.QName name)
          Registers an attribute and gives it a type so that it can be mapped to DOM attribute types at run-time.
 int registerElement(org.apache.xalan.xsltc.compiler.QName name)
          Registers an element and gives it a type so that it can be mapped to DOM element types at run-time.
 int registerNamespace(java.lang.String namespaceURI)
          Registers a namespace and gives it a type so that it can be mapped to DOM namespace types at run-time.
 void setMultiDocument(boolean flag)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSLTC

public XSLTC()
Method Detail

init

public void init()

setMultiDocument

public void setMultiDocument(boolean flag)

compile

public boolean compile(java.net.URL stylesheet)
Compiles the stylesheet into Java bytecode. Returns 'true' if the compilation was successful - 'false' otherwise.

getClassName

public java.lang.String getClassName()

getStylesheet

public Stylesheet getStylesheet()

debug

public boolean debug()

getNamesIndex

public java.util.Vector getNamesIndex()

getNamespaceIndex

public java.util.Vector getNamespaceIndex()

registerAttribute

public int registerAttribute(org.apache.xalan.xsltc.compiler.QName name)
Registers an attribute and gives it a type so that it can be mapped to DOM attribute types at run-time.

registerElement

public int registerElement(org.apache.xalan.xsltc.compiler.QName name)
Registers an element and gives it a type so that it can be mapped to DOM element types at run-time.

registerNamespace

public int registerNamespace(java.lang.String namespaceURI)
Registers a namespace and gives it a type so that it can be mapped to DOM namespace types at run-time.

internalError

public void internalError()
Aborts the execution of the compiler as a result of an unrecoverable error.

notYetImplemented

public void notYetImplemented(java.lang.String feature)
Aborts the execution of the compiler if something found in the source file can't be compiled. It also prints which feature is not implemented if specified.

extensionNotSupported

public void extensionNotSupported(java.lang.String feature)
Aborts the execution of the compiler if something found in the source file can't be compiled. It also prints which feature is not implemented if specified.

nextVariableSerial

public int nextVariableSerial()

nextModeSerial

public int nextModeSerial()

nextStylesheetSerial

public int nextStylesheetSerial()

nextStepPatternSerial

public int nextStepPatternSerial()

getNumberFieldIndexes

public int[] getNumberFieldIndexes()

nextHelperClassSerial

public int nextHelperClassSerial()

nextAttributeSetSerial

public int nextAttributeSetSerial()

getHelperClassName

public java.lang.String getHelperClassName()
Returns a unique name for every helper class needed to execute a translet.

dumpClass

public void dumpClass(de.fub.bytecode.classfile.JavaClass clazz)

compileStylesheet

public byte[][] compileStylesheet(java.net.URL stylesheetURL,
                                  java.lang.String className)

main

public static void main(java.lang.String[] args)
Command line runnability. o className d destDirectory p packageName j jarFileName u (isUriSpecified) x (isDebugSpecified) h printUsage() s (don't allow System.exit)

printUsage

public static void printUsage()


Copyright © 2000 Apache XML Project. All Rights Reserved.