org.apache.cocoon.components.language.markup.xsp
Class XSPExpressionParser.State

java.lang.Object
  extended by org.apache.cocoon.components.language.markup.xsp.XSPExpressionParser.State
Direct Known Subclasses:
XSPExpressionParser.QuotedState
Enclosing class:
XSPExpressionParser

protected abstract static class XSPExpressionParser.State
extends Object

Parser state.


Constructor Summary
protected XSPExpressionParser.State()
           
 
Method Summary
abstract  void consume(XSPExpressionParser parser, char ch)
          Consume the next character
 void done(XSPExpressionParser parser)
          Finish processing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSPExpressionParser.State

protected XSPExpressionParser.State()
Method Detail

consume

public abstract void consume(XSPExpressionParser parser,
                             char ch)
                      throws SAXException
Consume the next character

Parameters:
parser - The parser
ch - The character to consume
Throws:
SAXException - If there is an error in the expression

done

public void done(XSPExpressionParser parser)
          throws SAXException
Finish processing. Default behaviour is to throw an expression. States that are legal end states must overwrite this method.

Parameters:
parser - The parser
Throws:
SAXException - It is illegal to finish processing in this state.


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.