public class CodeEmitter extends Object implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
protected com.amazonaws.codegen.internal.Freemarker |
freemarker |
protected IntermediateModel |
model |
| Constructor and Description |
|---|
CodeEmitter(IntermediateModel model,
String outputDirectory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
emit() |
protected void |
emitClientClasses()
Submits a task for client class generation
|
protected void |
emitClientInterfaces()
Submits a task for client interface generation
|
protected void |
emitMarshallerClasses()
Constructs the data model and submits tasks for every generating marshallers for shapes in
the intermediate model.
|
protected void |
emitModelClasses()
Constructs the data model and submits tasks for every generating classes for every shape in
the intermediate model.
|
protected void |
emitUnmarshallerClasses()
Constructs the data model and submits tasks for every generating unmarshallers for shapes in
the intermediate model.
|
protected String |
getMarshallerClassName(ShapeType shapeType,
String shapeName,
Metadata metadata) |
protected final IntermediateModel model
protected final com.amazonaws.codegen.internal.Freemarker freemarker
public CodeEmitter(IntermediateModel model, String outputDirectory)
public void emit()
throws com.fasterxml.jackson.core.JsonGenerationException,
com.fasterxml.jackson.databind.JsonMappingException,
IOException,
InterruptedException,
ExecutionException
com.fasterxml.jackson.core.JsonGenerationExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionInterruptedExceptionExecutionExceptionpublic void close()
close in interface AutoCloseableprotected void emitClientClasses()
throws IOException
IOExceptionprotected void emitClientInterfaces()
throws IOException
IOExceptionprotected void emitModelClasses()
throws IOException
IOExceptionprotected void emitMarshallerClasses()
throws IOException
IOExceptionprotected String getMarshallerClassName(ShapeType shapeType, String shapeName, Metadata metadata)
protected void emitUnmarshallerClasses()
throws IOException
IOExceptionCopyright © 2016. All rights reserved.