Interface CodeProcessor
- All Superinterfaces:
StringTemplate.ProcessorPREVIEW<CodeBlock,
JavaComposerException>
- All Known Implementing Classes:
CodeProcessorImpl
@ClassVersion(sourceVersion="$Id: CodeProcessor.java 1079 2023-10-22 17:44:34Z tquadrat $")
@API(status=STABLE,
since="0.3.0")
public sealed interface CodeProcessor
extends StringTemplate.ProcessorPREVIEW<CodeBlock,JavaComposerException>
permits CodeProcessorImpl
CodeProcessor
relies on preview features of the Java platform:
CodeProcessor
refers to one or more preview APIs:Processor
<R,E extends Throwable>, StringTemplate
.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
An implementation of
StringTemplate.Processor
PREVIEW
that creates an instance of
CodeBlock
from the given String template.- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: CodeProcessor.java 1079 2023-10-22 17:44:34Z tquadrat $
- Since:
- 0.3.0
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.javacomposer.CodeProcessor"
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.lang.StringTemplate.ProcessorPREVIEW
StringTemplate.Processor.LinkagePREVIEW
-
Method Summary
-
Method Details
-
process
- Specified by:
process
in interfaceStringTemplate.ProcessorPREVIEW<CodeBlock,
JavaComposerException>
-
CodeProcessor
when preview features are enabled.