|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.msv.reader.State
com.sun.msv.reader.SimpleState
com.sun.msv.reader.trex.DefineState
public abstract class DefineState
parses <define> declaration.
Field Summary | |
---|---|
protected Expression |
exp
expression object that is being created. |
Fields inherited from class com.sun.msv.reader.State |
---|
baseURI, location, parentState, reader, startTag |
Constructor Summary | |
---|---|
DefineState()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.sun.msv.reader.SimpleState |
---|
endDocument, endElement, isGrammarElement, startElement |
Methods inherited from class com.sun.msv.reader.State |
---|
_assert, callInterceptExpression, characters, endPrefixMapping, getBaseURI, getLocation, getParentState, getStartTag, ignorableWhitespace, init, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Expression exp
#castPattern
and #annealPattern
methods
for how will a pattern be created.
Constructor Detail |
---|
public DefineState()
Method Detail |
---|
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
startSelf
in class 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |