Class ExpressionState

  • All Implemented Interfaces:
    org.xml.sax.ContentHandler
    Direct Known Subclasses:
    AttributeState, DataState, DivInGrammarState, ExpressionWithChildState, ExpressionWithoutChildState, InlineElementState

    public abstract class ExpressionState
    extends SimpleState
    Base implementation for those states who read tags representing an expression.

    Responsibility of derived classes are:

    1. if necessary, implement startSelf method to do something.
    2. implement createChildState method, which is mandated by SimpleState.
    3. implement makeExpression method to create Expression object as the outcome of parsing. This method is called at endElement.
    • Constructor Detail

      • ExpressionState

        public ExpressionState()
    • Method Detail

      • endSelf

        protected void endSelf()
        Description copied from class: SimpleState
        this method is called in endElement method when the state is about to be removed. derived-class should perform any wrap-up job
        Overrides:
        endSelf in class SimpleState
      • makeExpression

        protected abstract Expression makeExpression()
        This method is called from endElement method. Implementation has to provide Expression object that represents the content of this element.