| Modifier and Type | Field and Description |
|---|---|
| private String | _accessExternalDTD
protocols allowed for external DTD references in source file and/or stylesheet. |
| private String | _accessExternalStylesheet
protocols allowed for external references set by the stylesheet processing instruction, Import and Include element. |
| private Map | |
| private int | |
| private List | |
| private boolean | |
| pack-priv CatalogFeatures | _catalogFeatures
Catalog features |
| pack-priv int | _cdataChunkSize
CDATA chunk size |
| private List | |
| private String | |
| private boolean | |
| private File | |
| private Map | |
| private ClassLoader | _extensionClassLoader
Extension function class loader variables |
| private final Map | _externalExtensionFunctions
HashMap with the loaded classes |
| private boolean | |
| private int | |
| private boolean | _isSecureProcessing
State of the secure processing feature. |
| private String | |
| private SourceLoader | |
| private int | |
| private boolean | |
| private List | |
| private List | |
| private Map | |
| private Map | |
| private int | |
| private int | |
| private int[] | |
| private int | |
| private boolean | |
| private String | |
| private Parser | |
| private XMLReader | |
| private int | |
| private Stylesheet | |
| private int | |
| private boolean | _templateInlining
Set to true if template inlining is requested. |
| private final JdkXmlFeatures | |
| private XMLSecurityManager | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: int offset at which character data will be storedString data to be added to char arrays.
Pre-condition: newData)newData.length() ≤ 21845Add literal text to char arrays that will be used to store character data in the stylesheet. |
| public boolean | |
| private String | |
| public boolean | |
| public boolean | |
| public boolean | Returns: 'true' if the compilation was successfulAn InputStream that will pass in the stylesheet contents stream, String The name of the translet class to generate name)Compiles an XSL stylesheet passed in through an InputStream |
| public boolean | Returns: 'true' if the compilation was successfulAn InputSource that will pass in the stylesheet contents input, String The name of the translet class to generate - can be null name)Compiles an XSL stylesheet passed in through an InputStream |
| public boolean | |
| public byte[][] | Returns: JVM bytecodes that represent translet class definitionThe name of the translet class to generate name, InputSource An InputSource that will pass in the stylesheet contents input, int The output type outputType)Compiles a stylesheet pointed to by a URL. |
| public byte[][] | Returns: JVM bytecodes that represent translet class definitionThe name of the translet class to generate name, InputSource An InputSource that will pass in the stylesheet contents input)Compiles a stylesheet pointed to by a URL. |
| public boolean | |
| public void | |
| private String | |
| public byte[][] | Returns: JVM bytecodes that represent translet class definitionReturns an array of bytecode arrays generated by a compilation. |
| public String | Returns: String The character data to be stored in the correspondingchar[].The index of the index)char[]. Zero-based.Retrieve a string representation of the character data to be stored
in the translet as a |
| public int | getCharacterDataCount()
Get the number of char[] arrays, thus far, that will be created to store literal text in the stylesheet. |
| public String | |
| public List | Returns: A List containing all compile error messagesGet a list of all compile error messages |
| public Map | |
| public boolean | Returns: true if the feature is enabled, false otherwisename of the feature nameReturn the value of the specified feature |
| public String | |
| public String | |
| public List | |
| public List | |
| public int[] | |
| private File | |
| public Properties | |
| public Parser | |
| public Object | Returns: the value of the propertythe name of the property name)Return allowed protocols for accessing external stylesheet. |
| public Stylesheet | |
| public boolean | |
| public List | Returns: A List containing all compile error messagesGet a list of all compile warning messages |
| public XMLReader | |
| pack-priv boolean | |
| public boolean | |
| public void | |
| public boolean | |
| public boolean | |
| pack-priv Class | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public void | |
| public void | |
| public void | |
| public int | registerAttribute(QName name)
Registers an attribute and gives it a type so that it can be mapped to DOM attribute types at run-time. |
| public int | registerElement(QName name)
Registers an element and gives it a type so that it can be mapped to DOM element types at run-time. |
| public int | registerNamespace(String namespaceURI)
Registers a namespace and gives it a type so that it can be mapped to DOM namespace types at run-time. |
| public int | registerNamespacePrefix(QName name)
Registers a namespace prefix and gives it a type so that it can be mapped to DOM namespace types at run-time. |
| private void | |
| protected void | setCallsNodeset(boolean flag)
This method is called by the XPathParser when it encounters a call to the nodeset() extension function. |
| public void | setClassName(String
The name to assign to the translet class className)Set the class name for the generated translet. |
| public void | |
| public boolean | |
| private void | |
| protected void | |
| public void | setJarFileName(String jarFileName)
Set the name of an optional JAR-file to dump the translet and auxiliary classes to |
| protected void | setMultiDocument(boolean flag)
This method is called by the XPathParser when it encounters a call to the document() function. |
| public void | |
| public void | setPackageName(String packageName)
Set an optional package name for the translet and auxiliary classes |
| public void | setPIParameters(String
The media attribute to be matched. May be null, in which
case the prefered templates will be used (i.e. alternate = no). media, String The value of the title attribute to match. May be null. title, String The value of the charset attribute to match. May be null. charset)Set the parameters to use to locate the correct <?xml-stylesheet ...? |
| public void | setProperty(String
the name of the property name, Object the value of the property value)Set allowed protocols for accessing external stylesheet. |
| public void | |
| public void | setSourceLoader(SourceLoader
The SourceLoader to use for include/import loader)Defines an external SourceLoader to provide the compiler with documents referenced in xsl:include/import |
| public void | |
| public void | setTemplateInlining(boolean templateInlining)
Set a flag indicating if templates are to be inlined or not. |
| public void | setXMLReader(XMLReader
XMLReader (SAX2 parser) to use reader)Set the XMLReader to use for parsing the next input stylesheet |
| _accessExternalDTD | back to summary |
|---|---|
| private String _accessExternalDTD protocols allowed for external DTD references in source file and/or stylesheet. | |
| _accessExternalStylesheet | back to summary |
|---|---|
| private String _accessExternalStylesheet protocols allowed for external references set by the stylesheet processing instruction, Import and Include element. | |
| _attributes | back to summary |
|---|---|
| private Map<String, Integer> _attributes | |
| _attributeSetSerial | back to summary |
|---|---|
| private int _attributeSetSerial | |
| _bcelClasses | back to summary |
|---|---|
| private List<JavaClass> _bcelClasses | |
| _callsNodeset | back to summary |
|---|---|
| private boolean _callsNodeset | |
| _catalogFeatures | back to summary |
|---|---|
| pack-priv CatalogFeatures _catalogFeatures Catalog features | |
| _cdataChunkSize | back to summary |
|---|---|
| pack-priv int _cdataChunkSize CDATA chunk size | |
| _classes | back to summary |
|---|---|
| private List<ByteArrayOutputStream> _classes | |
| _className | back to summary |
|---|---|
| private String _className | |
| _debug | back to summary |
|---|---|
| private boolean _debug | |
| _destDir | back to summary |
|---|---|
| private File _destDir | |
| _elements | back to summary |
|---|---|
| private Map<String, Integer> _elements | |
| _extensionClassLoader | back to summary |
|---|---|
| private ClassLoader _extensionClassLoader Extension function class loader variables | |
| _externalExtensionFunctions | back to summary |
|---|---|
| private final Map<String, Class<?>> _externalExtensionFunctions HashMap with the loaded classes | |
| _hasIdCall | back to summary |
|---|---|
| private boolean _hasIdCall | |
| _helperClassSerial | back to summary |
|---|---|
| private int _helperClassSerial | |
| _isSecureProcessing | back to summary |
|---|---|
| private boolean _isSecureProcessing State of the secure processing feature. | |
| _jarFileName | back to summary |
|---|---|
| private String _jarFileName | |
| _loader | back to summary |
|---|---|
| private SourceLoader _loader | |
| _modeSerial | back to summary |
|---|---|
| private int _modeSerial | |
| _multiDocument | back to summary |
|---|---|
| private boolean _multiDocument | |
| _namesIndex | back to summary |
|---|---|
| private List<String> _namesIndex | |
| _namespaceIndex | back to summary |
|---|---|
| private List<String> _namespaceIndex | |
| _namespacePrefixes | back to summary |
|---|---|
| private Map<String, Integer> _namespacePrefixes | |
| _namespaces | back to summary |
|---|---|
| private Map<String, Integer> _namespaces | |
| _nextGType | back to summary |
|---|---|
| private int _nextGType | |
| _nextNSType | back to summary |
|---|---|
| private int _nextNSType | |
| _numberFieldIndexes | back to summary |
|---|---|
| private int[] _numberFieldIndexes | |
| _outputType | back to summary |
|---|---|
| private int _outputType | |
| _overrideDefaultParser | back to summary |
|---|---|
| private boolean _overrideDefaultParser | |
| _packageName | back to summary |
|---|---|
| private String _packageName | |
| _parser | back to summary |
|---|---|
| private Parser _parser | |
| _reader | back to summary |
|---|---|
| private XMLReader _reader | |
| _stepPatternSerial | back to summary |
|---|---|
| private int _stepPatternSerial | |
| _stylesheet | back to summary |
|---|---|
| private Stylesheet _stylesheet | |
| _stylesheetSerial | back to summary |
|---|---|
| private int _stylesheetSerial | |
| _templateInlining | back to summary |
|---|---|
| private boolean _templateInlining Set to true if template inlining is requested. Template inlining used to be the default, but we have found that Hotspots does a better job with shorter methods, so the default is *not* to inline now. | |
| _xmlFeatures | back to summary |
|---|---|
| private final JdkXmlFeatures _xmlFeatures | |
| _xmlSecurityManager | back to summary |
|---|---|
| private XMLSecurityManager _xmlSecurityManager | |
| BYTEARRAY_AND_FILE_OUTPUT | back to summary |
|---|---|
| public static final int BYTEARRAY_AND_FILE_OUTPUT | |
| BYTEARRAY_AND_JAR_OUTPUT | back to summary |
|---|---|
| public static final int BYTEARRAY_AND_JAR_OUTPUT | |
| BYTEARRAY_OUTPUT | back to summary |
|---|---|
| public static final int BYTEARRAY_OUTPUT | |
| CLASSLOADER_OUTPUT | back to summary |
|---|---|
| public static final int CLASSLOADER_OUTPUT | |
| JAR_OUTPUT | back to summary |
|---|---|
| public static final int JAR_OUTPUT | |
| m_characterData | back to summary |
|---|---|
| private List<StringBuilder> m_characterData | |
| XSLTC | back to summary |
|---|---|
| public XSLTC(JdkXmlFeatures featureManager, boolean hasListener) XSLTC compiler constructor | |
| addCharacterData | back to summary |
|---|---|
| public int addCharacterData(String newData) Add literal text to char arrays that will be used to store character data in the stylesheet.
| |
| callsNodeset | back to summary |
|---|---|
| public boolean callsNodeset() | |
| classFileName | back to summary |
|---|---|
| private String classFileName(final String className) Convert for Java class name of local system file name. (Replace '.' with '/' on UNIX and replace '.' by '\' on Windows/DOS.) | |
| compile | back to summary |
|---|---|
| public boolean compile(URL url) Compiles an XSL stylesheet pointed to by a URL
| |
| compile | back to summary |
|---|---|
| public boolean compile(URL url, String name) Compiles an XSL stylesheet pointed to by a URL | |
| compile | back to summary |
|---|---|
| public boolean compile(InputStream stream, String name) Compiles an XSL stylesheet passed in through an InputStream
| |
| compile | back to summary |
|---|---|
| public boolean compile(InputSource input, String name) Compiles an XSL stylesheet passed in through an InputStream
| |
| compile | back to summary |
|---|---|
| public boolean compile(List<URL> stylesheets) Compiles a set of stylesheets pointed to by a List of URLs | |
| compile | back to summary |
|---|---|
| public byte[][] compile(String name, InputSource input, int outputType) Compiles a stylesheet pointed to by a URL. The result is put in a set of byte arrays. One byte array for each generated class.
| |
| compile | back to summary |
|---|---|
| public byte[][] compile(String name, InputSource input) Compiles a stylesheet pointed to by a URL. The result is put in a set of byte arrays. One byte array for each generated class.
| |
| debug | back to summary |
|---|---|
| public boolean debug() Get current debugging message setting | |
| dumpClass | back to summary |
|---|---|
| public void dumpClass(JavaClass clazz) | |
| entryName | back to summary |
|---|---|
| private String entryName(File f) throws IOException File separators are converted to forward slashes for ZIP files. | |
| getBytecodes | back to summary |
|---|---|
| public byte[][] getBytecodes() Returns an array of bytecode arrays generated by a compilation.
| |
| getCharacterData | back to summary |
|---|---|
| public String getCharacterData(int index) Retrieve a string representation of the character data to be stored
in the translet as a
| |
| getCharacterDataCount | back to summary |
|---|---|
| public int getCharacterDataCount() Get the number of char[] arrays, thus far, that will be created to store literal text in the stylesheet. | |
| getClassName | back to summary |
|---|---|
| public String getClassName() Get the class name for the generated translet. | |
| getErrors | back to summary |
|---|---|
| public List Get a list of all compile error messages | |
| getExternalExtensionFunctions | back to summary |
|---|---|
| public Map | |
| getFeature | back to summary |
|---|---|
| public boolean getFeature(JdkXmlFeatures. Return the value of the specified feature
| |
| getHelperClassName | back to summary |
|---|---|
| public String getHelperClassName() Returns a unique name for every helper class needed to execute a translet. | |
| getJarFileName | back to summary |
|---|---|
| public String getJarFileName() | |
| getNamesIndex | back to summary |
|---|---|
| public List | |
| getNamespaceIndex | back to summary |
|---|---|
| public List | |
| getNumberFieldIndexes | back to summary |
|---|---|
| public int[] getNumberFieldIndexes() | |
| getOutputFile | back to summary |
|---|---|
| private File getOutputFile(String className) Generate an output File object to send the translet to | |
| getOutputProperties | back to summary |
|---|---|
| public Properties getOutputProperties() Only for user by the internal TrAX implementation. | |
| getParser | back to summary |
|---|---|
| public Parser getParser() Only for user by the internal TrAX implementation. | |
| getProperty | back to summary |
|---|---|
| public Object getProperty(String name) Return allowed protocols for accessing external stylesheet. | |
| getStylesheet | back to summary |
|---|---|
| public Stylesheet getStylesheet() Returns the top-level stylesheet | |
| getTemplateInlining | back to summary |
|---|---|
| public boolean getTemplateInlining() Return the state of the template inlining feature. | |
| getWarnings | back to summary |
|---|---|
| public List Get a list of all compile warning messages | |
| getXMLReader | back to summary |
|---|---|
| public XMLReader getXMLReader() Get the XMLReader to use for parsing the next input stylesheet | |
| hasExtensionClassLoader | back to summary |
|---|---|
| pack-priv boolean hasExtensionClassLoader() | |
| hasIdCall | back to summary |
|---|---|
| public boolean hasIdCall() | |
| init | back to summary |
|---|---|
| public void init() Initializes the compiler to compile a new stylesheet | |
| isMultiDocument | back to summary |
|---|---|
| public boolean isMultiDocument() | |
| isSecureProcessing | back to summary |
|---|---|
| public boolean isSecureProcessing() Return the state of the secure processing feature. | |
| loadExternalFunction | back to summary |
|---|---|
| pack-priv Class | |
| nextAttributeSetSerial | back to summary |
|---|---|
| public int nextAttributeSetSerial() | |
| nextHelperClassSerial | back to summary |
|---|---|
| public int nextHelperClassSerial() | |
| nextModeSerial | back to summary |
|---|---|
| public int nextModeSerial() | |
| nextStepPatternSerial | back to summary |
|---|---|
| public int nextStepPatternSerial() | |
| nextStylesheetSerial | back to summary |
|---|---|
| public int nextStylesheetSerial() | |
| outputToJar | back to summary |
|---|---|
| public void outputToJar() throws IOException Generate output JAR-file and packages | |
| printErrors | back to summary |
|---|---|
| public void printErrors() Print all compile error messages to standard output | |
| printWarnings | back to summary |
|---|---|
| public void printWarnings() Print all compile warning messages to standard output | |
| registerAttribute | back to summary |
|---|---|
| public int registerAttribute(QName name) Registers an attribute and gives it a type so that it can be mapped to DOM attribute types at run-time. | |
| registerElement | back to summary |
|---|---|
| public int registerElement(QName name) Registers an element and gives it a type so that it can be mapped to DOM element types at run-time. | |
| registerNamespace | back to summary |
|---|---|
| public int registerNamespace(String namespaceURI) Registers a namespace and gives it a type so that it can be mapped to DOM namespace types at run-time. | |
| registerNamespacePrefix | back to summary |
|---|---|
| public int registerNamespacePrefix(QName name) Registers a namespace prefix and gives it a type so that it can be mapped to DOM namespace types at run-time. | |
| reset | back to summary |
|---|---|
| private void reset() Initializes the compiler to produce a new translet | |
| setCallsNodeset | back to summary |
|---|---|
| protected void setCallsNodeset(boolean flag) This method is called by the XPathParser when it encounters a call to the nodeset() extension function. Implies multi document. | |
| setClassName | back to summary |
|---|---|
| public void setClassName(String className) Set the class name for the generated translet. This class name is overridden if multiple stylesheets are compiled in one go using the compile(List urls) method.
| |
| setDebug | back to summary |
|---|---|
| public void setDebug(boolean debug) Turn debugging messages on/off | |
| setDestDirectory | back to summary |
|---|---|
| public boolean setDestDirectory(String dstDirName) Set the destination directory for the translet. The current working directory will be used by default. | |
| setExternalExtensionFunctions | back to summary |
|---|---|
| private void setExternalExtensionFunctions(String name, Class<?> clazz) | |
| setHasIdCall | back to summary |
|---|---|
| protected void setHasIdCall(boolean flag) | |
| setJarFileName | back to summary |
|---|---|
| public void setJarFileName(String jarFileName) Set the name of an optional JAR-file to dump the translet and auxiliary classes to | |
| setMultiDocument | back to summary |
|---|---|
| protected void setMultiDocument(boolean flag) This method is called by the XPathParser when it encounters a call to the document() function. Affects the DOM used by the translet. | |
| setOutputType | back to summary |
|---|---|
| public void setOutputType(int type) Only for user by the internal TrAX implementation. | |
| setPackageName | back to summary |
|---|---|
| public void setPackageName(String packageName) Set an optional package name for the translet and auxiliary classes | |
| setPIParameters | back to summary |
|---|---|
| public void setPIParameters(String media, String title, String charset) Set the parameters to use to locate the correct <?xml-stylesheet ...?> processing instruction in the case where the input document to the compiler (and parser) is an XML document. | |
| setProperty | back to summary |
|---|---|
| public void setProperty(String name, Object value) Set allowed protocols for accessing external stylesheet. | |
| setSecureProcessing | back to summary |
|---|---|
| public void setSecureProcessing(boolean flag) Set the state of the secure processing feature. | |
| setSourceLoader | back to summary |
|---|---|
| public void setSourceLoader(SourceLoader loader) Defines an external SourceLoader to provide the compiler with documents referenced in xsl:include/import
| |
| setStylesheet | back to summary |
|---|---|
| public void setStylesheet(Stylesheet stylesheet) Set the top-level stylesheet | |
| setTemplateInlining | back to summary |
|---|---|
| public void setTemplateInlining(boolean templateInlining) Set a flag indicating if templates are to be inlined or not. The default is to do inlining, but this causes problems when the stylesheets have a large number of templates (e.g. branch targets exceeding 64K or a length of a method exceeding 64K). | |
| setXMLReader | back to summary |
|---|---|
| public void setXMLReader(XMLReader reader) Set the XMLReader to use for parsing the next input stylesheet
| |