public class JSGoogEmitter extends JSEmitter implements IJSGoogEmitter
IJSEmitter.SourceMapMapping| Modifier and Type | Field and Description |
|---|---|
ICompilerProject |
project |
protected List<String> |
propertyNames |
blockCloseEmitter, 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 |
|---|
JSGoogEmitter(FilterWriter out) |
addLineToMappings, emitArguments, emitBlockClose, emitBlockOpen, emitCatch, emitClosureEnd, emitClosureStart, emitDoLoop, emitDynamicAccess, emitForLoop, emitFunctionObject, emitIf, emitIterationFlow, emitLanguageIdentifier, emitLiteralContainer, emitLocalNamedFunction, emitMemberKeyword, emitNumericLiteral, emitObjectLiteralValuePair, emitParameters, emitReturn, emitSourceMapDirective, emitStatement, emitSwitch, emitTernaryOperator, emitThrow, emitTry, emitTypedExpression, emitUnaryOperator, emitWhileLoop, emitWith, endMapping, getModel, getSourceMapMappings, popSourceMapName, pushSourceMapName, removeLineFromMappings, startMapping, startMapping, startMappingemitAccessorKeyword, emitContainer, emitDeclarationName, emitE4XFilter, emitFieldDocumentation, emitFunctionScope, emitGetAccessorDocumentation, emitImport, emitKeyword, emitLabelStatement, emitLiteral, emitMemberAccessExpression, emitMemberName, emitMetaTag, emitMethodDocumentation, emitMethodScope, emitModifiers, emitNamespace, emitNamespaceIdentifier, emitSetAccessorDocumentation, emitType, emitUseNamespace, emitVariableExpression, findType, findTypeNode, flushBuilder, getBuilder, getConstructor, getCurrentColumn, getCurrentIndent, getCurrentLine, getIndent, getProblems, getWalker, indentPop, indentPush, isBufferWrite, isImplicit, isLastStatement, postProcess, setBufferWrite, setBuilder, setDocEmitter, setWalker, stringifyNode, visitForBody, write, write, writeIndent, writeNewline, writeNewline, writeNewline, writeNewline, writeNewline, writeSymbol, writeToken, writeTokenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitemitClosureEnd, emitClosureStart, emitSourceMapDirective, endMapping, getModel, getSourceMapMappings, popSourceMapName, pushSourceMapName, startMapping, startMapping, startMappingemitArguments, emitBlockClose, emitBlockOpen, emitCatch, emitContainer, emitDoLoop, emitDynamicAccess, emitE4XFilter, emitFieldDocumentation, emitForLoop, emitFunctionObject, emitGetAccessorDocumentation, emitIf, emitImport, emitIterationFlow, emitKeyword, emitLabelStatement, emitLanguageIdentifier, emitLiteral, emitLiteralContainer, emitLocalNamedFunction, emitMemberAccessExpression, emitMetaTag, emitMethodDocumentation, emitNamespace, emitNumericLiteral, emitObjectLiteralValuePair, emitReturn, emitSetAccessorDocumentation, emitStatement, emitSwitch, emitTernaryOperator, emitThrow, emitTry, emitTypedExpression, emitUnaryOperator, emitUseNamespace, emitVariableExpression, emitWhileLoop, emitWith, getWalker, postProcess, setDocEmitter, setWalkerindentPop, indentPush, stringifyNode, write, write, writeNewline, writeNewline, writeNewline, writeNewline, writeNewline, writeToken, writeTokenpublic ICompilerProject project
public JSGoogEmitter(FilterWriter out)
public IJSGoogDocEmitter getDocEmitter()
getDocEmitter in interface IASEmittergetDocEmitter in class ASEmitterpublic String formatQualifiedName(String name)
formatQualifiedName in interface IJSEmitterformatQualifiedName in class JSEmitterpublic void emitPackageHeader(IPackageDefinition definition)
emitPackageHeader in interface IASEmitteremitPackageHeader in class ASEmitterpublic void emitPackageHeaderContents(IPackageDefinition definition)
emitPackageHeaderContents in interface IASEmitteremitPackageHeaderContents in class ASEmitterpublic void emitPackageContents(IPackageDefinition definition)
emitPackageContents in interface IASEmitteremitPackageContents in class ASEmitterpublic void emitPackageFooter(IPackageDefinition definition)
emitPackageFooter in interface IASEmitteremitPackageFooter in class ASEmitterpublic void emitClass(IClassNode node)
IASEmitteremitClass in interface IASEmitteremitClass in class ASEmitternode - The IClassNode class.public void emitInterface(IInterfaceNode node)
IASEmitteremitInterface in interface IASEmitteremitInterface in class ASEmitternode - The IInterfaceNode class.public void emitField(IVariableNode node)
IASEmitteremitField in interface IASEmitteremitField in class ASEmitternode - The IVariableNode class field member.public void emitVarDeclaration(IVariableNode node)
IASEmitteremitVarDeclaration in interface IASEmitteremitVarDeclaration in class ASEmitternode - The IVariableNode or chain of variable nodes.public void emitAccessors(IAccessorNode node)
public void emitGetAccessor(IGetterNode node)
IASEmitteremitGetAccessor in interface IASEmitteremitGetAccessor in class ASEmitternode - The IVariableNode class getter member.public void emitSetAccessor(ISetterNode node)
IASEmitteremitSetAccessor in interface IASEmitteremitSetAccessor in class ASEmitternode - The ISetterNode class setter member.public void emitMethod(IFunctionNode node)
IASEmitteremitMethod in interface IASEmitteremitMethod in class ASEmitternode - The IFunctionNode class method member.public void emitFunctionCall(IFunctionCallNode node)
IASEmitternew Foo() or foo(42).emitFunctionCall in interface IASEmitteremitFunctionCall in class ASEmitternode - The IFunctionCallNode node.public void emitIdentifier(IIdentifierNode node)
emitIdentifier in interface IASEmitteremitIdentifier in class ASEmitterpublic void emitFunctionBlockHeader(IFunctionNode node)
IASEmitteremitFunctionBlockHeader in interface IASEmitteremitFunctionBlockHeader in class ASEmitternode - The IFunctionNode node.protected void emitSelfReference(IFunctionNode node)
protected void emitDefaultParameterCodeBlock(IFunctionNode node)
protected void emitRestParameterCodeBlock(IFunctionNode node)
public void emitParameter(IParameterNode node)
emitParameter in interface IASEmitteremitParameter in class JSEmitterpublic void emitAssignedValue(IExpressionNode node)
emitAssignedValue in class ASEmitterpublic void emitForEachLoop(IForLoopNode node)
IASEmitterfor each statement.emitForEachLoop in interface IASEmitteremitForEachLoop in class ASEmitternode - The IForLoopNode node.protected void emitObjectDefineProperty(IAccessorNode node)
protected void emitDefinePropertyFunction(IAccessorNode node)
public void emitNamespaceAccessExpression(INamespaceAccessExpressionNode node)
emitNamespaceAccessExpression in interface IASEmitteremitNamespaceAccessExpression in class ASEmitterpublic void emitAsOperator(IBinaryOperatorNode node)
emitAsOperator in interface IASEmitteremitAsOperator in class ASEmitterpublic void emitIsOperator(IBinaryOperatorNode node)
emitIsOperator in interface IASEmitteremitIsOperator in class ASEmitterpublic void emitBinaryOperator(IBinaryOperatorNode node)
IASEmitteremitBinaryOperator in interface IASEmitteremitBinaryOperator in class ASEmitternode - The IBinaryOperatorNode or chain of variable nodes.protected void emitClosureStart(FunctionNode node)
protected void emitClosureEnd(FunctionNode node, IDefinition nodeDef)
Copyright © 2016 The Apache Software Foundation. All rights reserved.