public abstract class DefineState extends SimpleState implements ExpressionOwner
Modifier and Type | Field and Description |
---|---|
protected Expression |
exp
expression object that is being created.
|
private ReferenceExp |
ref
Container to which the expression will be assigned.
|
Constructor and Description |
---|
DefineState() |
Modifier and Type | Method and Description |
---|---|
protected State |
createChildState(StartTagInfo tag)
creates appropriate child state object for this element
|
protected abstract Expression |
doCombine(ReferenceExp baseExp,
Expression newExp,
java.lang.String combine)
combines two expressions into one as specified by the combine parameter,
and returns a new expression.
|
protected void |
endSelf()
this method is called in endElement method
when the state is about to be removed.
|
ReferenceExp |
getRef()
Obtains a
ReferenceExp that represents the target
pattern block. |
protected ReferenceExp |
getReference() |
void |
onEndChild(Expression child)
receives a Pattern object that is contained in this element.
|
protected void |
startSelf()
performs a task that should be done before reading any child elements.
|
endDocument, endElement, isGrammarElement, startElement
_assert, callInterceptExpression, characters, endPrefixMapping, getBaseURI, getLocation, getParentState, getStartTag, ignorableWhitespace, init, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
protected Expression exp
#castPattern
and #annealPattern
methods
for how will a pattern be created.private ReferenceExp ref
public final ReferenceExp getRef()
ReferenceExp
that represents the target
pattern block.public final void onEndChild(Expression child)
onEndChild
in interface ExpressionOwner
protected void startSelf()
State
protected void endSelf()
SimpleState
endSelf
in class SimpleState
protected State createChildState(StartTagInfo tag)
SimpleState
createChildState
in class SimpleState
protected ReferenceExp getReference()
protected abstract Expression doCombine(ReferenceExp baseExp, Expression newExp, java.lang.String combine)