public class MXMLRoyaleEmitter extends MXMLEmitter implements IMXMLRoyaleEmitter, IMXMLJSEmitter
IMappingEmitter.SourceMapMapping| Modifier and Type | Field and Description |
|---|---|
protected Map<org.apache.royale.compiler.tree.mxml.IMXMLNode,Integer> |
nodeToIndexMap
This keeps track of the entries in our temporary array of
DeferredInstanceFromFunction objects that we CG to help with
State override CG.
|
walker| Constructor and Description |
|---|
MXMLRoyaleEmitter(FilterWriter out) |
emitClass, emitDatabinding, emitDocumentFooter, emitDocumentHeader, emitEmbed, emitPropertySpecifiers, emitVector, getMXMLWalker, isMXMLContentNode, setMXMLWalkerflushBuilder, getBuilder, getCurrentColumn, getCurrentIndent, getCurrentLine, getProblems, getWalker, indentPop, indentPush, isBufferWrite, setWalker, stringifyNode, write, write, writeNewline, writeNewline, writeNewline, writeNewline, writeNewline, writeSymbol, writeToken, writeTokenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitemitClass, emitDatabinding, emitDocumentFooter, emitDocumentHeader, emitEmbed, emitPropertySpecifiers, emitVector, getMXMLWalker, setMXMLWalkerindentPop, indentPush, stringifyNode, write, write, writeNewline, writeNewline, writeNewline, writeNewline, writeNewline, writeToken, writeTokenprotected Map<org.apache.royale.compiler.tree.mxml.IMXMLNode,Integer> nodeToIndexMap
public MXMLRoyaleEmitter(FilterWriter out)
public List<IMappingEmitter.SourceMapMapping> getSourceMapMappings()
getSourceMapMappings in interface IMappingEmitterpublic String postProcess(String output)
postProcess in interface IMXMLEmitterpostProcess in class MXMLEmitterpublic void startMapping(ISourceLocation node)
IMappingEmitterstartMapping in interface IMappingEmitterpublic void startMapping(ISourceLocation node, int line, int column)
IMappingEmitterstartMapping in interface IMappingEmitterpublic void startMapping(ISourceLocation node, ISourceLocation afterNode)
IMappingEmitterstartMapping in interface IMappingEmitterpublic void endMapping(ISourceLocation node)
IMappingEmitterendMapping in interface IMappingEmitterprotected void addLineToMappings(int lineIndex)
lineIndex - protected void removeLineFromMappings(int lineIndex)
lineIndex - public void emitDeclarations(org.apache.royale.compiler.tree.mxml.IMXMLDeclarationsNode node)
emitDeclarations in interface IMXMLEmitteremitDeclarations in class MXMLEmitterpublic void emitDocument(org.apache.royale.compiler.tree.mxml.IMXMLDocumentNode node)
emitDocument in interface IMXMLRoyaleEmitterpublic void emitDeclarationVariables()
public void emitSubDocument(org.apache.royale.compiler.tree.mxml.IMXMLComponentNode node)
public void emitMetadata(org.apache.royale.compiler.tree.mxml.IMXMLMetadataNode node)
emitMetadata in interface IMXMLEmitteremitMetadata in class MXMLEmitterpublic void emitSourceMapDirective(ITypeNode node)
protected void emitClassDeclStart(String cname, String baseClassName, boolean indent)
protected void emitMetaData(IClassDefinition cdef)
protected void emitPropertyDecls()
protected void emitBindingData(String cname, IClassDefinition cdef)
protected void emitScripts()
protected void emitEvents(String cname)
protected void emitPropertyGetterSetters(String cname)
protected void emitMXMLDescriptorFuncs(String cname)
public void emitEventSpecifier(org.apache.royale.compiler.tree.mxml.IMXMLEventSpecifierNode node)
emitEventSpecifier in interface IMXMLEmitteremitEventSpecifier in class MXMLEmitterpublic void emitInstance(org.apache.royale.compiler.tree.mxml.IMXMLInstanceNode node)
emitInstance in interface IMXMLEmitteremitInstance in class MXMLEmitterpublic void emitPropertyOverride(org.apache.royale.compiler.tree.mxml.IMXMLPropertySpecifierNode propertyNode)
public void emitInstanceOverride(org.apache.royale.compiler.tree.mxml.IMXMLInstanceNode instanceNode, org.apache.royale.compiler.tree.mxml.IMXMLStateNode state)
protected boolean inStateOrStateGroup(String name, org.apache.royale.compiler.tree.mxml.IMXMLStateNode state)
protected boolean isStateDependent(IASNode node, org.apache.royale.compiler.tree.mxml.IMXMLStateNode currentState, boolean includeGroups)
protected boolean isStateDependentInstance(IASNode node, org.apache.royale.compiler.tree.mxml.IMXMLStateNode currentState, boolean includeGroups)
public static boolean isDataBindingNode(IASNode node)
protected static boolean isDataboundProp(org.apache.royale.compiler.tree.mxml.IMXMLPropertySpecifierNode propertyNode)
public void emitPropertySpecifier(org.apache.royale.compiler.tree.mxml.IMXMLPropertySpecifierNode node)
emitPropertySpecifier in interface IMXMLEmitteremitPropertySpecifier in class MXMLEmitterpublic void emitScript(org.apache.royale.compiler.tree.mxml.IMXMLScriptNode node)
emitScript in interface IMXMLEmitteremitScript in class MXMLEmitterpublic void emitStyleSpecifier(org.apache.royale.compiler.tree.mxml.IMXMLStyleSpecifierNode node)
emitStyleSpecifier in interface IMXMLEmitteremitStyleSpecifier in class MXMLEmitterpublic void emitObject(org.apache.royale.compiler.tree.mxml.IMXMLObjectNode node)
emitObject in interface IMXMLEmitteremitObject in class MXMLEmitterpublic void emitArray(org.apache.royale.compiler.tree.mxml.IMXMLArrayNode node)
emitArray in interface IMXMLEmitteremitArray in class MXMLEmitterpublic void emitBoolean(org.apache.royale.compiler.tree.mxml.IMXMLBooleanNode node)
emitBoolean in interface IMXMLEmitteremitBoolean in class MXMLEmitterpublic void emitNumber(org.apache.royale.compiler.tree.mxml.IMXMLNumberNode node)
emitNumber in interface IMXMLEmitteremitNumber in class MXMLEmitterpublic void emitInt(org.apache.royale.compiler.tree.mxml.IMXMLIntNode node)
emitInt in interface IMXMLEmitteremitInt in class MXMLEmitterpublic void emitUint(org.apache.royale.compiler.tree.mxml.IMXMLUintNode node)
emitUint in interface IMXMLEmitteremitUint in class MXMLEmitterpublic void emitString(org.apache.royale.compiler.tree.mxml.IMXMLStringNode node)
emitString in interface IMXMLEmitteremitString in class MXMLEmitterpublic void emitMXMLClass(org.apache.royale.compiler.tree.mxml.IMXMLClassNode node)
emitMXMLClass in interface IMXMLEmitteremitMXMLClass in class MXMLEmitterpublic void emitLiteral(org.apache.royale.compiler.tree.mxml.IMXMLLiteralNode node)
emitLiteral in interface IMXMLEmitteremitLiteral in class MXMLEmitterpublic void emitFactory(org.apache.royale.compiler.tree.mxml.IMXMLFactoryNode node)
emitFactory in interface IMXMLEmitteremitFactory in class MXMLEmitterpublic void emitComponent(org.apache.royale.compiler.tree.mxml.IMXMLComponentNode node)
emitComponent in interface IMXMLEmitteremitComponent in class MXMLEmitterprotected void setBufferWrite(boolean value)
setBufferWrite in class Emitterprotected void emitAttributeValue(IASNode node)
emitAttributeValue in class MXMLEmitterprotected void moveDown(boolean byPass,
MXMLDescriptorSpecifier currentInstance,
MXMLDescriptorSpecifier currentPropertySpecifier)
protected void moveUp(boolean byPass,
boolean isInstance)
public void emitComplexStaticInitializers(IASNode node)
public void emitImplements(org.apache.royale.compiler.tree.mxml.IMXMLImplementsNode node)
emitImplements in interface IMXMLEmitteremitImplements in class MXMLEmitterpublic void emitRemoteObjectMethod(org.apache.royale.compiler.tree.mxml.IMXMLRemoteObjectMethodNode node)
emitRemoteObjectMethod in interface IMXMLEmitteremitRemoteObjectMethod in class MXMLEmitterpublic void emitRemoteObject(org.apache.royale.compiler.tree.mxml.IMXMLRemoteObjectNode node)
emitRemoteObject in interface IMXMLEmitteremitRemoteObject in class MXMLEmitterpublic void emitWebServiceMethod(org.apache.royale.compiler.tree.mxml.IMXMLWebServiceOperationNode node)
emitWebServiceMethod in interface IMXMLEmitteremitWebServiceMethod in class MXMLEmitterpublic void emitWebService(org.apache.royale.compiler.tree.mxml.IMXMLWebServiceNode node)
emitWebService in interface IMXMLEmitteremitWebService in class MXMLEmitterCopyright © 2021 The Apache Software Foundation. All rights reserved.