| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private transient String | _accessExternalStylesheet
protocols allowed for external references set by the stylesheet processing instruction, Import and Include element. |
| private transient Map | _auxClasses
Contains the list of auxiliary class definitions. |
| private byte[][] | _bytecodes
Contains the actual class definition for the translet class and any auxiliary classes. |
| private Class | _class
Contains the translet class definition(s). |
| private int | _indentNumber
Number of spaces to add for output indentation. |
| private String | _name
Name of the main class or default name if unknown. |
| private Properties | _outputProperties
Output properties of this translet. |
| private transient boolean | _overrideDefaultParser
A flag to determine whether the system-default parser may be overridden |
| private transient ThreadLocal | _sdom
Cache the DTM for the stylesheet in a thread local variable, which is used by the document('') function. |
| private transient TransformerFactoryImpl | _tfactory
A reference to the transformer factory that this templates object belongs to. |
| private int | _transletIndex
The index of the main translet class in the arrays _class[] and _bytecodes. |
| private transient URIResolver | _uriResolver
This URIResolver is passed to all Transformers. |
| private static String | ABSTRACT_TRANSLET
Name of the superclass of all translets. |
| public static final String | |
| private static final ObjectStreamField[] | |
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| protected | TemplatesImpl(byte[][] bytecodes, String transletName, Properties outputProperties, int indentNumber, TransformerFactoryImpl tfactory)
Create an XSLTC template object from the bytecodes. |
| protected | TemplatesImpl(Class<?>[] transletClasses, String transletName, Properties outputProperties, int indentNumber, TransformerFactoryImpl tfactory)
Create an XSLTC template object from the translet class definition(s). |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Module | createModule(ModuleDescriptor descriptor, ClassLoader loader)
Creates a module layer with one module that is defined to the given class loader. |
| private void | |
| public synchronized Properties | getOutputProperties()
Implements javax. Implements JAXP's Templates.getOutputProperties(). |
| public DOM | |
| private synchronized byte[][] | getTransletBytecodes()
Returns the translet bytecodes stored in this template Note: This method is private for security reasons. |
| private synchronized Class | getTransletClasses()
Returns the translet bytecodes stored in this template Note: This method is private for security reasons. |
| public synchronized int | |
| private Translet | getTransletInstance()
This method generates an instance of the translet class that is wrapped inside this Template. |
| protected synchronized String | |
| private void | init(String transletName, Properties outputProperties, int indentNumber, TransformerFactoryImpl tfactory)
|
| public synchronized Transformer | newTransformer()
Implements javax. Implements JAXP's Templates.newTransformer() |
| public boolean | |
| private void | readObject(ObjectInputStream is)
Overrides the default readObject implementation since we decided it would be cleaner not to serialize the entire tranformer factory. |
| public void | |
| private synchronized void | setTransletBytecodes(byte[][] bytecodes)
The TransformerFactory must pass us the translet bytecodes using this method before we can create any translet instances Note: This method is private for security reasons. |
| protected synchronized void | |
| public synchronized void | |
| private void | writeObject(ObjectOutputStream os)
This is to fix bugzilla bug 22438 If the user defined class implements URIResolver and Serializable then we want it to get serialized |
| _accessExternalStylesheet | back to summary |
|---|---|
| private transient String _accessExternalStylesheet protocols allowed for external references set by the stylesheet processing instruction, Import and Include element. | |
| _auxClasses | back to summary |
|---|---|
| private transient Map<String, Class<?>> _auxClasses Contains the list of auxiliary class definitions. | |
| _bytecodes | back to summary |
|---|---|
| private byte[][] _bytecodes Contains the actual class definition for the translet class and any auxiliary classes. | |
| _class | back to summary |
|---|---|
| private Class<?>[] _class Contains the translet class definition(s). These are created when this Templates is created or when it is read back from disk. | |
| _indentNumber | back to summary |
|---|---|
| private int _indentNumber Number of spaces to add for output indentation. | |
| _name | back to summary |
|---|---|
| private String _name Name of the main class or default name if unknown. | |
| _outputProperties | back to summary |
|---|---|
| private Properties _outputProperties Output properties of this translet. | |
| _overrideDefaultParser | back to summary |
|---|---|
| private transient boolean _overrideDefaultParser A flag to determine whether the system-default parser may be overridden | |
| _sdom | back to summary |
|---|---|
| private transient ThreadLocal<DOM> _sdom Cache the DTM for the stylesheet in a thread local variable, which is used by the document('') function. Use ThreadLocal because a DTM cannot be shared between multiple threads. Declaring it transient to fix bug 22438 | |
| _tfactory | back to summary |
|---|---|
| private transient TransformerFactoryImpl _tfactory A reference to the transformer factory that this templates object belongs to. | |
| _transletIndex | back to summary |
|---|---|
| private int _transletIndex The index of the main translet class in the arrays _class[] and _bytecodes. | |
| _uriResolver | back to summary |
|---|---|
| private transient URIResolver _uriResolver This URIResolver is passed to all Transformers. Declaring it transient to fix bug 22438 | |
| ABSTRACT_TRANSLET | back to summary |
|---|---|
| private static String ABSTRACT_TRANSLET Name of the superclass of all translets. This is needed to determine which, among all classes comprising a translet, is the main one. | |
| DESERIALIZE_TRANSLET | back to summary |
|---|---|
| public static final String DESERIALIZE_TRANSLET | |
| serialPersistentFields | back to summary |
|---|---|
private static final ObjectStreamField[] serialPersistentFields
| |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| TemplatesImpl | back to summary |
|---|---|
| protected TemplatesImpl(byte[][] bytecodes, String transletName, Properties outputProperties, int indentNumber, TransformerFactoryImpl tfactory) Create an XSLTC template object from the bytecodes. The bytecodes for the translet and auxiliary classes, plus the name of the main translet class, must be supplied. | |
| TemplatesImpl | back to summary |
|---|---|
| protected TemplatesImpl(Class<?>[] transletClasses, String transletName, Properties outputProperties, int indentNumber, TransformerFactoryImpl tfactory) Create an XSLTC template object from the translet class definition(s). | |
| TemplatesImpl | back to summary |
|---|---|
| public TemplatesImpl() Need for de-serialization, see readObject(). | |
| createModule | back to summary |
|---|---|
| private Module createModule(ModuleDescriptor descriptor, ClassLoader loader) Creates a module layer with one module that is defined to the given class loader. | |
| defineTransletClasses | back to summary |
|---|---|
| private void defineTransletClasses() throws TransformerConfigurationException Defines the translet class and auxiliary classes. Returns a reference to the Class object that defines the main class
| |
| getOutputProperties | back to summary |
|---|---|
| public synchronized Properties getOutputProperties() Implements javax. Implements JAXP's Templates.getOutputProperties(). We need to instanciate a translet to get the output settings, so we might as well just instanciate a Transformer and use its implementation of this method. | |
| getStylesheetDOM | back to summary |
|---|---|
| public DOM getStylesheetDOM() Return the thread local copy of the stylesheet DOM. | |
| getTransletBytecodes | back to summary |
|---|---|
| private synchronized byte[][] getTransletBytecodes() Returns the translet bytecodes stored in this template Note: This method is private for security reasons. See CR 6537898. When merging with Apache, we must ensure that the privateness of this method is maintained (that is why it wasn't removed). | |
| getTransletClasses | back to summary |
|---|---|
| private synchronized Class Returns the translet bytecodes stored in this template Note: This method is private for security reasons. See CR 6537898. When merging with Apache, we must ensure that the privateness of this method is maintained (that is why it wasn't removed). | |
| getTransletIndex | back to summary |
|---|---|
| public synchronized int getTransletIndex() Returns the index of the main class in array of bytecodes | |
| getTransletInstance | back to summary |
|---|---|
| private Translet getTransletInstance() throws TransformerConfigurationException This method generates an instance of the translet class that is wrapped inside this Template. The translet instance will later be wrapped inside a Transformer object. | |
| getTransletName | back to summary |
|---|---|
| protected synchronized String getTransletName() Returns the name of the main translet class stored in this template | |
| init | back to summary |
|---|---|
| private void init(String transletName, Properties outputProperties, int indentNumber, TransformerFactoryImpl tfactory) | |
| newTransformer | back to summary |
|---|---|
| public synchronized Transformer newTransformer() throws TransformerConfigurationException Implements javax. Implements JAXP's Templates.newTransformer()
| |
| overrideDefaultParser | back to summary |
|---|---|
| public boolean overrideDefaultParser() Return the state of the services mechanism feature. | |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream is) throws IOException, ClassNotFoundException Overrides the default readObject implementation since we decided it would be cleaner not to serialize the entire tranformer factory. [ ref bugzilla 12317 ] We need to check if the user defined class for URIResolver also implemented Serializable if yes then we need to deserialize the URIResolver Fix for bugzilla bug 22438 | |
| setStylesheetDOM | back to summary |
|---|---|
| public void setStylesheetDOM(DOM sdom) Set the thread local copy of the stylesheet DOM. | |
| setTransletBytecodes | back to summary |
|---|---|
| private synchronized void setTransletBytecodes(byte[][] bytecodes) The TransformerFactory must pass us the translet bytecodes using this method before we can create any translet instances Note: This method is private for security reasons. See CR 6537898. When merging with Apache, we must ensure that the privateness of this method is maintained (that is why it wasn't removed). | |
| setTransletName | back to summary |
|---|---|
| protected synchronized void setTransletName(String name) The TransformerFactory should call this method to set the translet name | |
| setURIResolver | back to summary |
|---|---|
| public synchronized void setURIResolver(URIResolver resolver) Store URIResolver needed for Transformers. | |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream os) throws IOException This is to fix bugzilla bug 22438 If the user defined class implements URIResolver and Serializable then we want it to get serialized | |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Class | |
| pack-priv Class | |
| public Class | loadClass(String name)
Overrides java. Loads the class with the specified binary name. |
| _loadedExternalExtensionFunctions | back to summary |
|---|---|
| private final Map<String, Class<?>> _loadedExternalExtensionFunctions | |
| TransletClassLoader | back to summary |
|---|---|
| pack-priv TransletClassLoader(ClassLoader parent) | |
| TransletClassLoader | back to summary |
|---|---|
| pack-priv TransletClassLoader(ClassLoader parent, Map<String, Class<?>> mapEF) | |
| defineClass | back to summary |
|---|---|
| pack-priv Class Access to final protected superclass member from outer class. | |
| defineClass | back to summary |
|---|---|
| pack-priv Class | |
| loadClass | back to summary |
|---|---|
| public Class Overrides java. Doc from java. Loads the class with the specified binary name.
This method searches for classes in the same manner as the
| |