public class JSRoyaleEmitter extends JSGoogEmitter implements IJSRoyaleEmitter
IMappingEmitter.SourceMapMapping| Modifier and Type | Field and Description |
|---|---|
AccessorEmitter |
accessorEmitter |
MethodEmitter |
methodEmitter |
MXMLRoyaleEmitter |
mxmlEmitter |
PackageFooterEmitter |
packageFooterEmitter |
ArrayList<String> |
staticUsedNames |
ArrayList<String> |
usedNames |
VarDeclarationEmitter |
varDeclarationEmitter |
project, propertyNamesblockCloseEmitter, blockOpenEmitter, catchEmitter, doWhileLoopEmitter, dynamicAccessEmitter, forLoopEmitter, functionCallArgumentsEmitter, ifEmitter, interationFlowEmitter, languageIdentifierEmitter, literalContainerEmitter, memberKeywordEmitter, numericLiteralEmitter, objectLiteralValuePairEmitter, parameterEmitter, parametersEmitter, returnEmitter, sourceMapDirectiveEmitter, statementEmitter, switchEmitter, ternaryOperatorEmitter, throwEmitter, tryEmitter, unaryOperatorEmitter, whileLoopEmitter, withEmitter| Constructor and Description |
|---|
JSRoyaleEmitter(FilterWriter out) |
emitAsOperator, emitAssignedValue, emitClosureEnd, emitClosureStart, emitContainer, emitDefaultParameterCodeBlock, emitIsOperator, emitPackageContents, emitRestParameterCodeBlockaddLineToMappings, emitBlockClose, emitBlockOpen, emitCatch, emitDoLoop, emitDynamicAccess, emitForLoop, emitIf, emitImport, emitIterationFlow, emitLanguageIdentifier, emitLiteralContainer, emitMemberKeyword, emitNumericLiteral, emitObjectLiteralValuePair, emitParameter, emitParameters, emitReturn, emitSourceMapDirective, emitSwitch, emitTernaryOperator, emitThrow, emitTry, emitWhileLoop, emitWith, endMapping, formatPrivateName, formatPrivateName, getModel, getSourceMapMappings, removeLineFromMappings, startMapping, startMapping, startMappingemitAccessorKeyword, emitDeclarationName, emitFieldDocumentation, emitFunctionScope, emitGetAccessorDocumentation, emitKeyword, emitMetaTag, emitMethodDocumentation, emitMethodScope, emitModifiers, emitNamespaceIdentifier, emitSetAccessorDocumentation, emitType, emitVariableExpression, findType, findTypeNode, flushBuilder, getBuilder, getConstructor, getCurrentColumn, getCurrentIndent, getCurrentLine, getParentEmitter, getProblems, getWalker, indentPop, indentPush, isBufferWrite, isImplicit, isLastStatement, setBufferWrite, setBuilder, setDocEmitter, setParentEmitter, setWalker, stringifyNode, visitForBody, write, write, writeNewline, writeNewline, writeNewline, writeNewline, writeNewline, writeSymbol, writeToken, writeTokenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitemitSourceMapDirective, formatPrivateName, formatPrivateName, getModelemitAsOperator, emitBlockClose, emitBlockOpen, emitCatch, emitContainer, emitDoLoop, emitDynamicAccess, emitFieldDocumentation, emitForLoop, emitGetAccessorDocumentation, emitIf, emitImport, emitIsOperator, emitIterationFlow, emitKeyword, emitLanguageIdentifier, emitLiteralContainer, emitMetaTag, emitMethodDocumentation, emitNumericLiteral, emitObjectLiteralValuePair, emitPackageContents, emitParameter, emitReturn, emitSetAccessorDocumentation, emitSwitch, emitTernaryOperator, emitThrow, emitTry, emitVariableExpression, emitWhileLoop, emitWith, getWalker, setDocEmitter, setWalkergetParentEmitter, setParentEmitterindentPop, indentPush, stringifyNode, write, write, writeNewline, writeNewline, writeNewline, writeNewline, writeNewline, writeToken, writeTokenendMapping, getSourceMapMappings, startMapping, startMapping, startMappingpublic PackageFooterEmitter packageFooterEmitter
public VarDeclarationEmitter varDeclarationEmitter
public AccessorEmitter accessorEmitter
public MethodEmitter methodEmitter
public MXMLRoyaleEmitter mxmlEmitter
public JSRoyaleEmitter(FilterWriter out)
public String postProcess(String output)
postProcess in interface IASEmitterpostProcess in class ASEmitterpublic BindableEmitter getBindableEmitter()
public FieldEmitter getFieldEmitter()
public ClassEmitter getClassEmitter()
public AccessorEmitter getAccessorEmitter()
public PackageFooterEmitter getPackageFooterEmitter()
public IJSGoogDocEmitter getDocEmitter()
getDocEmitter in interface IASEmittergetDocEmitter in class JSGoogEmitterprotected void writeIndent()
writeIndent in class ASEmitterpublic void emitLocalNamedFunction(IFunctionNode node)
IASEmitterIFunctionNode.emitLocalNamedFunction in interface IASEmitteremitLocalNamedFunction in class JSEmitternode - The local named function IFunctionNode.public Boolean isEmittingHoistedNodes(IFunctionNode node)
protected void setEmittingHoistedNodes(IFunctionNode node, boolean emit)
public void emitFunctionBlockHeader(IFunctionNode node)
IASEmitteremitFunctionBlockHeader in interface IASEmitteremitFunctionBlockHeader in class JSGoogEmitternode - The IFunctionNode node.protected void emitHoistedFunctionsCodeBlock(IFunctionNode node)
protected void emitHoistedVariablesCodeBlock(IFunctionNode node)
public void emitFunctionObject(IFunctionObjectNode node)
IASEmitterIFunctionObjectNode.emitFunctionObject in interface IASEmitteremitFunctionObject in class JSEmitternode - The anonymous IFunctionObjectNode.public void emitNamespace(INamespaceNode node)
IASEmitteremitNamespace in interface IASEmitteremitNamespace in class ASEmitternode - The INamespaceNode class member.public void emitUseNamespace(IUseNamespaceNode node)
emitUseNamespace in interface IASEmitteremitUseNamespace in class ASEmitterpublic boolean isCustomNamespace(org.apache.royale.compiler.internal.tree.as.FunctionNode node)
public boolean isCustomNamespace(org.apache.royale.compiler.internal.definitions.FunctionDefinition def)
public void emitMemberName(IDefinitionNode node)
emitMemberName in class ASEmitterpublic static String formatNamespacedProperty(String s, String propName, boolean access)
public String formatQualifiedName(String name)
formatQualifiedName in interface IJSEmitterformatQualifiedName in class JSGoogEmitterpublic void emitPackageHeader(IPackageDefinition definition)
emitPackageHeader in interface IASEmitteremitPackageHeader in class JSGoogEmitterpublic void emitPackageHeaderContents(IPackageDefinition definition)
emitPackageHeaderContents in interface IASEmitteremitPackageHeaderContents in class JSGoogEmitterpublic void emitPackageFooter(IPackageDefinition definition)
emitPackageFooter in interface IASEmitteremitPackageFooter in class JSGoogEmitterpublic void emitClass(IClassNode node)
IASEmitteremitClass in interface IASEmitteremitClass in class JSGoogEmitternode - The IClassNode class.public void emitInterface(IInterfaceNode node)
IASEmitteremitInterface in interface IASEmitteremitInterface in class JSGoogEmitternode - The IInterfaceNode class.public void emitField(IVariableNode node)
IASEmitteremitField in interface IASEmitteremitField in class JSGoogEmitternode - The IVariableNode class field member.public void emitVarDeclaration(IVariableNode node)
IASEmitteremitVarDeclaration in interface IASEmitteremitVarDeclaration in class JSGoogEmitternode - The IVariableNode or chain of variable nodes.public void emitAccessors(IAccessorNode node)
emitAccessors in class JSGoogEmitterpublic void emitGetAccessor(IGetterNode node)
IASEmitteremitGetAccessor in interface IASEmitteremitGetAccessor in class JSGoogEmitternode - The IVariableNode class getter member.public void emitSetAccessor(ISetterNode node)
IASEmitteremitSetAccessor in interface IASEmitteremitSetAccessor in class JSGoogEmitternode - The ISetterNode class setter member.public void emitMethod(IFunctionNode node)
IASEmitteremitMethod in interface IASEmitteremitMethod in class JSGoogEmitternode - The IFunctionNode class method member.public void emitComplexInitializers(IClassNode node)
public void emitFunctionCall(IFunctionCallNode node)
IASEmitternew Foo() or foo(42).emitFunctionCall in interface IASEmitteremitFunctionCall in class JSGoogEmitternode - The IFunctionCallNode node.public void emitForEachLoop(IForLoopNode node)
IASEmitterfor each statement.emitForEachLoop in interface IASEmitteremitForEachLoop in class JSGoogEmitternode - The IForLoopNode node.public void emitSuperCall(IASNode node, String type)
emitSuperCall in class JSGoogEmitterpublic void emitMemberAccessExpression(IMemberAccessExpressionNode node)
emitMemberAccessExpression in interface IASEmitteremitMemberAccessExpression in class ASEmitterpublic void emitArguments(IContainerNode node)
emitArguments in interface IASEmitteremitArguments in class JSEmitterpublic void emitE4XFilter(IMemberAccessExpressionNode node)
emitE4XFilter in interface IASEmitteremitE4XFilter in class ASEmitterpublic void emitE4XDefaultNamespaceDirective(IDefaultXMLNamespaceNode node)
emitE4XDefaultNamespaceDirective in interface IASEmitteremitE4XDefaultNamespaceDirective in class ASEmitterpublic void emitBinaryOperator(IBinaryOperatorNode node)
IASEmitteremitBinaryOperator in interface IASEmitteremitBinaryOperator in class JSGoogEmitternode - The IBinaryOperatorNode or chain of variable nodes.public void emitIdentifier(IIdentifierNode node)
emitIdentifier in interface IASEmitteremitIdentifier in class JSGoogEmitterpublic void emitLiteral(ILiteralNode node)
emitLiteral in interface IASEmitteremitLiteral in class ASEmitterpublic void emitEmbed(IEmbedNode node)
emitEmbed in interface IASEmitteremitEmbed in class ASEmitterpublic void emitIsAs(IExpressionNode node, IExpressionNode left, IExpressionNode right, ASTNodeID id, boolean coercion)
protected void emitSelfReference(IFunctionNode node)
emitSelfReference in class JSGoogEmitterprotected void emitObjectDefineProperty(IAccessorNode node)
emitObjectDefineProperty in class JSGoogEmitterpublic void emitDefinePropertyFunction(IAccessorNode node)
emitDefinePropertyFunction in class JSGoogEmitterpublic String stringifyDefineProperties(IClassDefinition cdef)
public void emitClosureStart()
emitClosureStart in interface IJSEmitteremitClosureStart in class JSEmitterpublic void emitClosureEnd(IASNode node, IDefinition nodeDef)
emitClosureEnd in interface IJSEmitteremitClosureEnd in class JSEmitterpublic void emitStatement(IASNode node)
IASEmitterIBlockNode.emitStatement in interface IASEmitteremitStatement in class JSEmitternode - The IASNode statement.public void emitUnaryOperator(IUnaryOperatorNode node)
emitUnaryOperator in interface IASEmitteremitUnaryOperator in class JSEmitterpublic boolean isXMLList(IMemberAccessExpressionNode obj)
obj - public boolean isLeftNodeXMLish(IExpressionNode leftNode)
public boolean isProxy(IExpressionNode obj)
obj - public boolean isDateProperty(IExpressionNode obj, boolean writeAccess)
obj - public boolean isXMLish(IExpressionNode obj)
obj - public org.apache.royale.compiler.internal.tree.as.MemberAccessExpressionNode getLastMAEInChain(org.apache.royale.compiler.internal.tree.as.MemberAccessExpressionNode node)
public void emitLabelStatement(org.apache.royale.compiler.internal.tree.as.LabeledStatementNode node)
IASEmitterfoo:{} statement.emitLabelStatement in interface IASEmitteremitLabelStatement in class ASEmitternode - The LabeledStatementNode node.public void emitTypedExpression(ITypedExpressionNode node)
emitTypedExpression in interface IASEmitteremitTypedExpression in class JSEmitterpublic void emitAssignmentCoercion(IExpressionNode assignedNode, IDefinition definition)
emitAssignmentCoercion in interface IJSEmitteremitAssignmentCoercion in class JSEmitterpublic void emitNamespaceAccessExpression(INamespaceAccessExpressionNode node)
emitNamespaceAccessExpression in interface IASEmitteremitNamespaceAccessExpression in class JSGoogEmitterpublic void processBindableSupport(IClassDefinition type, ArrayList<String> requiresList)
public org.apache.royale.compiler.internal.tree.as.BinaryOperatorNodeBase getGeneratedTypeCheck(org.apache.royale.compiler.internal.tree.as.ExpressionNodeBase leftOperand, org.apache.royale.compiler.internal.tree.as.ExpressionNodeBase rightOperand)
getGeneratedTypeCheck in interface IJSEmittergetGeneratedTypeCheck in class JSEmitterCopyright © 2023 The Apache Software Foundation. All rights reserved.