public abstract class DefineState extends SimpleState implements ExpressionOwner
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
exp
expression object that is being created.
|
| 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,
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, startPrefixMappingprotected Expression exp
#castPattern and #annealPattern methods
for how will a pattern be created.public final ReferenceExp getRef()
ReferenceExp that represents the target
pattern block.public final void onEndChild(Expression child)
onEndChild in interface ExpressionOwnerprotected void startSelf()
Stateprotected void endSelf()
SimpleStateendSelf in class SimpleStateprotected State createChildState(StartTagInfo tag)
SimpleStatecreateChildState in class SimpleStateprotected ReferenceExp getReference()
protected abstract Expression doCombine(ReferenceExp baseExp, Expression newExp, String combine)
Copyright © 2016 Oracle Corporation. All Rights Reserved.