Class CodeProcessorImpl
java.lang.Object
org.tquadrat.foundation.javacomposer.internal.CodeProcessorImpl
- All Implemented Interfaces:
StringTemplate.ProcessorPREVIEW<CodeBlock,,JavaComposerException> CodeProcessorPREVIEW
@ClassVersion(sourceVersion="$Id: CodeProcessorImpl.java 1079 2023-10-22 17:44:34Z tquadrat $")
@API(status=INTERNAL,
since="0.3.0")
public final class CodeProcessorImpl
extends Object
implements CodeProcessorPREVIEW
CodeProcessorImpl relies on preview features of the Java platform:
CodeProcessorImplrefers to one or more preview APIs:StringTemplate.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
An implementation of
CodeProcessorPREVIEW
that creates an instance of
CodeBlock
from the given String template.- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: CodeProcessorImpl.java 1079 2023-10-22 17:44:34Z tquadrat $
- Since:
- 0.3.0
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.javacomposer.internal.CodeProcessorImpl"
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.lang.StringTemplate.ProcessorPREVIEW
StringTemplate.Processor.LinkagePREVIEW -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JavaComposerThe instance ofJavaComposerthat is used to create theCodeBlockinstances. -
Constructor Summary
ConstructorsConstructorDescriptionCodeProcessorImpl(JavaComposer composer) Creates a new instance ofCodeProcessor. -
Method Summary
-
Field Details
-
m_Composer
The instance ofJavaComposerthat is used to create theCodeBlockinstances.
-
-
Constructor Details
-
CodeProcessorImpl
Creates a new instance ofCodeProcessor.- Parameters:
composer- The instance ofJavaComposerthat is used to create theCodeBlockinstances.
-
-
Method Details
-
process
- Specified by:
processin interfaceCodeProcessorPREVIEW- Specified by:
processin interfaceStringTemplate.ProcessorPREVIEW<CodeBlock,JavaComposerException>
-

CodeProcessorImplwhen preview features are enabled.