DocumentTypeConstraintsTransformer
Given a function annotated with @OnlyForDocumentType
or @NotForDocumentType
which defines constraints about the document type the function supports, these transformer add a DocumentTargetProperty extra property.
See also
Types
Base class for transformers that specify document type constraints to DFunctions, retrieved from annotations in the function declaration. If type constraints are present, the supported document types are stored in the function's extra properties as DocumentTargetProperty.
Given a function annotated with @NotForDocumentType(X)
, this transformer sets the function's constraint to all document types except X
.
Given a function annotated with @OnlyForDocumentType(X)
, this transformer sets the function's constraint to only the document type X
.