public final class ComplexAcceptor extends ComplexAcceptorBaseImpl
Modifier and Type | Field and Description |
---|---|
ElementExp[] |
owners
each item of this array should be considered as read-only.
|
contents
docDecl, ignoreUndeclaredAttributes
STRING_IGNORE, STRING_PROHIBITED, STRING_STRICT
Constructor and Description |
---|
ComplexAcceptor(REDocumentDeclaration docDecl,
Expression combined,
ElementExp[] primitives) |
ComplexAcceptor(REDocumentDeclaration docDecl,
Expression combined,
Expression[] contentModels,
ElementExp[] owners) |
Modifier and Type | Method and Description |
---|---|
Acceptor |
createClone()
clones this acceptor.
|
private static Expression[] |
createDefaultContentModels(ElementExp[] owners,
ExpressionPool pool) |
ElementExp[] |
getSatisfiedOwners()
collects satisfied ElementExps.
|
onAttribute, onEndAttributes, onText2, stepForward
createAcceptor, getOwnerType
createChildAcceptor, diagnoseUncompletedContent, getExpression, getStringCareLevel, isAcceptState, onAttribute, onAttribute2, onText, stepForward, stepForwardByContinuation
public final ElementExp[] owners
public ComplexAcceptor(REDocumentDeclaration docDecl, Expression combined, ElementExp[] primitives)
public ComplexAcceptor(REDocumentDeclaration docDecl, Expression combined, Expression[] contentModels, ElementExp[] owners)
private static Expression[] createDefaultContentModels(ElementExp[] owners, ExpressionPool pool)
public Acceptor createClone()
Acceptor
You can keep a "bookmark" of the acceptor by cloning it. This is useful when you are trying to perform "partial validation".
Cloned acceptor will behave in exactly the same way as the original one.
public final ElementExp[] getSatisfiedOwners()