ExpressionOwner
, ContentHandler
DefineState
, DefineState
public abstract class DefineState extends SimpleState implements ExpressionOwner
Modifier and Type | Field | Description |
---|---|---|
protected Expression |
exp |
expression object that is being created.
|
Constructor | Description |
---|---|
DefineState() |
Modifier and Type | Method | 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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.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, String combine)
Copyright © 2019 Oracle Corporation. All rights reserved.