public class JSRoyaleBasicMXMLDescriptorEmitter extends MXMLSubEmitter implements ISubEmitter<MXMLDescriptorSpecifier>
| Constructor and Description |
|---|
JSRoyaleBasicMXMLDescriptorEmitter(IMXMLJSEmitter emitter) |
| Modifier and Type | Method and Description |
|---|---|
void |
emit(MXMLDescriptorSpecifier root)
The main emitter will call this method of the sub emitter with the
correct generic type implemented.
|
void |
outputEventSpecifier(MXMLEventSpecifier specifier,
boolean writeNewline) |
protected void |
writeDelimiter(boolean writeNewline) |
protected void |
writeSimpleDescriptor(String name,
String type,
String value,
boolean writeNewline) |
endMapping, getEmitter, getMXMLWalker, getProject, indentPop, indentPush, startMapping, startMapping, startMapping, write, write, writeNewline, writeNewline, writeNewline, writeNewline, writeNewline, writeToken, writeTokenpublic JSRoyaleBasicMXMLDescriptorEmitter(IMXMLJSEmitter emitter)
public void emit(MXMLDescriptorSpecifier root)
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<MXMLDescriptorSpecifier>root - The current IASNode being emitted by the
IEmitter.protected void writeSimpleDescriptor(String name, String type, String value, boolean writeNewline)
protected void writeDelimiter(boolean writeNewline)
public void outputEventSpecifier(MXMLEventSpecifier specifier, boolean writeNewline)
Copyright © 2021 The Apache Software Foundation. All rights reserved.