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, startMapping
emitAccessorKeyword, 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, writeToken
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
emitClosureEnd, emitClosureStart, emitSourceMapDirective, endMapping, getModel, getSourceMapMappings, popSourceMapName, pushSourceMapName, startMapping, startMapping, startMapping
emitArguments, 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, setWalker
indentPop, indentPush, stringifyNode, write, write, writeNewline, writeNewline, writeNewline, writeNewline, writeNewline, writeToken, writeToken
public ICompilerProject project
public JSGoogEmitter(FilterWriter out)
public IJSGoogDocEmitter getDocEmitter()
getDocEmitter
in interface IASEmitter
getDocEmitter
in class ASEmitter
public String formatQualifiedName(String name)
formatQualifiedName
in interface IJSEmitter
formatQualifiedName
in class JSEmitter
public void emitPackageHeader(IPackageDefinition definition)
emitPackageHeader
in interface IASEmitter
emitPackageHeader
in class ASEmitter
public void emitPackageHeaderContents(IPackageDefinition definition)
emitPackageHeaderContents
in interface IASEmitter
emitPackageHeaderContents
in class ASEmitter
public void emitPackageContents(IPackageDefinition definition)
emitPackageContents
in interface IASEmitter
emitPackageContents
in class ASEmitter
public void emitPackageFooter(IPackageDefinition definition)
emitPackageFooter
in interface IASEmitter
emitPackageFooter
in class ASEmitter
public void emitClass(IClassNode node)
IASEmitter
emitClass
in interface IASEmitter
emitClass
in class ASEmitter
node
- The IClassNode
class.public void emitInterface(IInterfaceNode node)
IASEmitter
emitInterface
in interface IASEmitter
emitInterface
in class ASEmitter
node
- The IInterfaceNode
class.public void emitField(IVariableNode node)
IASEmitter
emitField
in interface IASEmitter
emitField
in class ASEmitter
node
- The IVariableNode
class field member.public void emitVarDeclaration(IVariableNode node)
IASEmitter
emitVarDeclaration
in interface IASEmitter
emitVarDeclaration
in class ASEmitter
node
- The IVariableNode
or chain of variable nodes.public void emitAccessors(IAccessorNode node)
public void emitGetAccessor(IGetterNode node)
IASEmitter
emitGetAccessor
in interface IASEmitter
emitGetAccessor
in class ASEmitter
node
- The IVariableNode
class getter member.public void emitSetAccessor(ISetterNode node)
IASEmitter
emitSetAccessor
in interface IASEmitter
emitSetAccessor
in class ASEmitter
node
- The ISetterNode
class setter member.public void emitMethod(IFunctionNode node)
IASEmitter
emitMethod
in interface IASEmitter
emitMethod
in class ASEmitter
node
- The IFunctionNode
class method member.public void emitFunctionCall(IFunctionCallNode node)
IASEmitter
new Foo()
or foo(42)
.emitFunctionCall
in interface IASEmitter
emitFunctionCall
in class ASEmitter
node
- The IFunctionCallNode
node.public void emitIdentifier(IIdentifierNode node)
emitIdentifier
in interface IASEmitter
emitIdentifier
in class ASEmitter
public void emitFunctionBlockHeader(IFunctionNode node)
IASEmitter
emitFunctionBlockHeader
in interface IASEmitter
emitFunctionBlockHeader
in class ASEmitter
node
- 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 IASEmitter
emitParameter
in class JSEmitter
public void emitAssignedValue(IExpressionNode node)
emitAssignedValue
in class ASEmitter
public void emitForEachLoop(IForLoopNode node)
IASEmitter
for each
statement.emitForEachLoop
in interface IASEmitter
emitForEachLoop
in class ASEmitter
node
- The IForLoopNode
node.protected void emitObjectDefineProperty(IAccessorNode node)
protected void emitDefinePropertyFunction(IAccessorNode node)
public void emitNamespaceAccessExpression(INamespaceAccessExpressionNode node)
emitNamespaceAccessExpression
in interface IASEmitter
emitNamespaceAccessExpression
in class ASEmitter
public void emitAsOperator(IBinaryOperatorNode node)
emitAsOperator
in interface IASEmitter
emitAsOperator
in class ASEmitter
public void emitIsOperator(IBinaryOperatorNode node)
emitIsOperator
in interface IASEmitter
emitIsOperator
in class ASEmitter
public void emitBinaryOperator(IBinaryOperatorNode node)
IASEmitter
emitBinaryOperator
in interface IASEmitter
emitBinaryOperator
in class ASEmitter
node
- 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.