santiagopg    2002/07/21 15:28:01

  Modified:    java/src/org/apache/xalan/xsltc/trax TemplatesImpl.java
  Log:
  Added a few getters to this class.
  
  Revision  Changes    Path
  1.17      +29 -3     
xml-xalan/java/src/org/apache/xalan/xsltc/trax/TemplatesImpl.java
  
  Index: TemplatesImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/trax/TemplatesImpl.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- TemplatesImpl.java        17 Jul 2002 12:59:58 -0000      1.16
  +++ TemplatesImpl.java        21 Jul 2002 22:28:01 -0000      1.17
  @@ -156,8 +156,34 @@
       /**
        * Returns the translet bytecodes stored in this template
        */
  -    protected byte[][] getTransletBytecodes() {
  -     return(_bytecodes);
  +    public byte[][] getTransletBytecodes() {
  +     return _bytecodes;
  +    }
  +
  +    /**
  +     * Returns the translet bytecodes stored in this template
  +     */
  +    public Class[] getTransletClasses() {
  +     try {
  +         if (_class == null) defineTransletClasses();
  +     }
  +     catch (TransformerConfigurationException e) {
  +         // Falls through
  +     }
  +     return _class;
  +    }
  +
  +    /**
  +     * Returns the index of the main class in array of bytecodes
  +     */
  +    public int getTransletIndex() {
  +     try {
  +         if (_class == null) defineTransletClasses();
  +     }
  +     catch (TransformerConfigurationException e) {
  +         // Falls through
  +     }
  +     return _transletIndex;
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to