com.sun.msv.verifier.regexp

Class SimpleAcceptor

public class SimpleAcceptor extends ContentModelAcceptor

Acceptor that will be used when only one ElementExp matches the start tag.

Author: Kohsuke KAWAGUCHI

Field Summary
Expressioncontinuation
the expression that should be used by the parent acceptor once if this acceptor is satisfied.
ElementExpowner
ElementExp that accepted the start tag.
Constructor Summary
SimpleAcceptor(REDocumentDeclaration docDecl, Expression combined, ElementExp owner, Expression continuation)
Method Summary
AcceptorcreateClone()
ObjectgetOwnerType()

Field Detail

continuation

public final Expression continuation
the expression that should be used by the parent acceptor once if this acceptor is satisfied. This field can be null. In that case, the continuation has to be computed.

owner

public final ElementExp owner
ElementExp that accepted the start tag. This acceptor is verifying the content model of this ElementExp. This value is usually non-null, but can be null when Verifier is recovering from eariler errors. null owner means this acceptor is "synthesized" just for proper error recovery, therefor there is no owner element expression.

Constructor Detail

SimpleAcceptor

public SimpleAcceptor(REDocumentDeclaration docDecl, Expression combined, ElementExp owner, Expression continuation)

Method Detail

createClone

public Acceptor createClone()

getOwnerType

public final Object getOwnerType()