org.apache.cocoon.template.expression
Class StringTemplateParser
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROLE
public static String ROLE
StringTemplateParser
public StringTemplateParser()
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.