Top Description Constructors Methods
com.sun.msv.reader

public abstract Class ExpressionState

extends SimpleState
Class Inheritance
Known Direct Subclasses
com.sun.msv.reader.ExpressionWithChildState, com.sun.msv.reader.ExpressionWithoutChildState, com.sun.msv.reader.relax.core.AttributeState, com.sun.msv.reader.relax.core.InlineElementState, com.sun.msv.reader.trex.DivInGrammarState, com.sun.msv.reader.trex.ng.DataState
Imports
com.sun.msv.grammar.Expression

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.
Author
Kohsuke KAWAGUCHI

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
endSelf()

Overrides com.sun.msv.reader.SimpleState.endSelf.

this method is called in endElement method when the state is about to be removed.
protected abstract Expression
makeExpression()

This method is called from endElement method.

Inherited from com.sun.msv.reader.SimpleState:
createChildStateendDocumentendElementisGrammarElementstartElement

Constructor Detail

ExpressionStateback to summary
public ExpressionState()

Method Detail

endSelfback to summary
protected void endSelf()

Overrides com.sun.msv.reader.SimpleState.endSelf.

Doc from com.sun.msv.reader.SimpleState.endSelf.

this method is called in endElement method when the state is about to be removed. derived-class should perform any wrap-up job

makeExpressionback to summary
protected abstract Expression makeExpression()

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