public class TryEmitter extends JSSubEmitter implements ISubEmitter<ITryNode>
| Modifier and Type | Field and Description |
|---|---|
static String |
ROYALE_MULTI_CATCH_ERROR_NAME |
| Constructor and Description |
|---|
TryEmitter(IJSEmitter emitter) |
| Modifier and Type | Method and Description |
|---|---|
void |
emit(ITryNode node)
The main emitter will call this method of the sub emitter with the
correct generic type implemented.
|
endMapping, getEmitter, getModel, getProject, getWalker, indentPop, indentPush, startMapping, startMapping, startMapping, write, write, writeNewline, writeNewline, writeNewline, writeNewline, writeNewline, writeToken, writeTokenpublic static final String ROYALE_MULTI_CATCH_ERROR_NAME
public TryEmitter(IJSEmitter emitter)
public void emit(ITryNode node)
ISubEmitterThe main idea here is abstraction. Producing JavaScript can get complicated, the best way to avoid bugs is to avoid as much state and interdependence between emit() calls of the main emitter.
emit in interface ISubEmitter<ITryNode>node - The current IASNode being emitted by the
IEmitter.Copyright © 2023 The Apache Software Foundation. All rights reserved.