org.apache.cocoon.template.expression
Class StringTemplateParser

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.template.expression.StringTemplateParser
All Implemented Interfaces:
Disposable, LogEnabled, Serviceable, ThreadSafe
Direct Known Subclasses:
DefaultStringTemplateParser, JXTGStringTemplateParser

public abstract class StringTemplateParser
extends AbstractLogEnabled
implements Serviceable, Disposable, ThreadSafe


Field Summary
static String ROLE
           
 
Constructor Summary
StringTemplateParser()
           
 
Method Summary
protected  JXTExpression compile(String expression)
           
protected  JXTExpression compile(String expression, String language)
           
 JXTExpression compileBoolean(String val, String msg, Locator location)
           
 JXTExpression compileExpr(String inStr, String errorPrefix, Locator location)
           
 JXTExpression compileInt(String val, String msg, Locator location)
           
 void dispose()
           
abstract  List parseSubstitutions(Reader in)
           
 List parseSubstitutions(Reader in, String errorPrefix, Locator location)
          Parse a set of expressions spaced with literals
 void service(ServiceManager manager)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROLE

public static String ROLE
Constructor Detail

StringTemplateParser

public StringTemplateParser()
Method Detail

service

public void service(ServiceManager manager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException

dispose

public void dispose()
Specified by:
dispose in interface Disposable

compile

protected JXTExpression compile(String expression)
                         throws Exception
Throws:
Exception

compile

protected JXTExpression compile(String expression,
                                String language)
                         throws Exception
Throws:
Exception

compileBoolean

public JXTExpression compileBoolean(String val,
                                    String msg,
                                    Locator location)
                             throws SAXException
Throws:
SAXException

compileInt

public JXTExpression compileInt(String val,
                                String msg,
                                Locator location)
                         throws SAXException
Throws:
SAXException

compileExpr

public JXTExpression compileExpr(String inStr,
                                 String errorPrefix,
                                 Locator location)
                          throws SAXParseException
Throws:
SAXParseException

parseSubstitutions

public List parseSubstitutions(Reader in,
                               String errorPrefix,
                               Locator location)
                        throws SAXParseException
Parse a set of expressions spaced with literals

Throws:
SAXParseException

parseSubstitutions

public abstract List parseSubstitutions(Reader in)
                                 throws Exception
Throws:
Exception


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.