public class JSVF2JSEmitter extends JSGoogEmitter implements IJSVF2JSEmitter
IJSEmitter.SourceMapMapping
project, 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 |
---|
JSVF2JSEmitter(FilterWriter out) |
emitAsOperator, emitAssignedValue, emitClosureEnd, emitClosureStart, emitDefinePropertyFunction, emitGetAccessor, emitIsOperator, emitNamespaceAccessExpression, emitPackageContents, emitParameter, emitRestParameterCodeBlock, emitSetAccessor, formatQualifiedName
addLineToMappings, emitArguments, emitBlockClose, emitBlockOpen, emitCatch, emitClosureEnd, emitClosureStart, emitDoLoop, emitDynamicAccess, emitForLoop, emitFunctionObject, emitIf, emitIterationFlow, emitLanguageIdentifier, emitLiteralContainer, emitLocalNamedFunction, emitNumericLiteral, emitObjectLiteralValuePair, emitParameters, emitReturn, emitSourceMapDirective, emitStatement, emitSwitch, emitTernaryOperator, emitThrow, emitTry, emitUnaryOperator, emitWhileLoop, emitWith, endMapping, getModel, getSourceMapMappings, popSourceMapName, pushSourceMapName, removeLineFromMappings, startMapping, startMapping, startMapping
emitAccessorKeyword, emitDeclarationName, emitFieldDocumentation, emitFunctionScope, emitGetAccessorDocumentation, emitImport, emitKeyword, emitLabelStatement, emitMetaTag, emitMethodDocumentation, emitMethodScope, emitModifiers, emitNamespace, emitNamespaceIdentifier, emitSetAccessorDocumentation, emitType, emitUseNamespace, emitVariableExpression, findType, findTypeNode, flushBuilder, getBuilder, getConstructor, getCurrentColumn, getCurrentIndent, getCurrentLine, 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, formatQualifiedName, getModel, getSourceMapMappings, popSourceMapName, pushSourceMapName, startMapping, startMapping, startMapping
emitArguments, emitAsOperator, emitBlockClose, emitBlockOpen, emitCatch, emitDoLoop, emitDynamicAccess, emitFieldDocumentation, emitForLoop, emitFunctionObject, emitGetAccessor, emitGetAccessorDocumentation, emitIf, emitImport, emitIsOperator, emitIterationFlow, emitKeyword, emitLabelStatement, emitLanguageIdentifier, emitLiteralContainer, emitLocalNamedFunction, emitMetaTag, emitMethodDocumentation, emitNamespace, emitNamespaceAccessExpression, emitNumericLiteral, emitObjectLiteralValuePair, emitPackageContents, emitParameter, emitReturn, emitSetAccessor, emitSetAccessorDocumentation, emitStatement, emitSwitch, emitTernaryOperator, emitThrow, emitTry, emitUnaryOperator, emitUseNamespace, emitVariableExpression, emitWhileLoop, emitWith, getWalker, postProcess, setDocEmitter, setWalker
indentPop, indentPush, stringifyNode, write, write, writeNewline, writeNewline, writeNewline, writeNewline, writeNewline, writeToken, writeToken
public JSVF2JSEmitter(FilterWriter out)
protected void emitMemberName(IDefinitionNode node)
emitMemberName
in class ASEmitter
public void emitClass(IClassNode node)
IASEmitter
emitClass
in interface IASEmitter
emitClass
in class JSGoogEmitter
node
- The IClassNode
class.public void emitInterface(IInterfaceNode node)
IASEmitter
emitInterface
in interface IASEmitter
emitInterface
in class JSGoogEmitter
node
- The IInterfaceNode
class.public void emitFunctionBlockHeader(IFunctionNode node)
IASEmitter
emitFunctionBlockHeader
in interface IASEmitter
emitFunctionBlockHeader
in class JSGoogEmitter
node
- The IFunctionNode
node.public void emitVarDeclaration(IVariableNode node)
IASEmitter
emitVarDeclaration
in interface IASEmitter
emitVarDeclaration
in class JSGoogEmitter
node
- The IVariableNode
or chain of variable nodes.public void emitMemberKeyword(IDefinitionNode node)
emitMemberKeyword
in class JSEmitter
public void emitField(IVariableNode node)
IASEmitter
emitField
in interface IASEmitter
emitField
in class JSGoogEmitter
node
- The IVariableNode
class field member.public void emitAccessors(IAccessorNode node)
emitAccessors
in class JSGoogEmitter
public void emitMethod(IFunctionNode node)
IASEmitter
emitMethod
in interface IASEmitter
emitMethod
in class JSGoogEmitter
node
- The IFunctionNode
class method member.protected boolean hasSuperClass(IDefinitionNode node)
public void emitFunctionCall(IFunctionCallNode node)
IASEmitter
new Foo()
or foo(42)
.emitFunctionCall
in interface IASEmitter
emitFunctionCall
in class JSGoogEmitter
node
- The IFunctionCallNode
node.protected void emitSelfReference(IFunctionNode node)
emitSelfReference
in class JSGoogEmitter
public void emitIdentifier(IIdentifierNode node)
emitIdentifier
in interface IASEmitter
emitIdentifier
in class JSGoogEmitter
protected void emitSuperCall(IASNode node, String type)
emitSuperCall
in class JSGoogEmitter
protected void emitDefaultParameterCodeBlock(IFunctionNode node)
emitDefaultParameterCodeBlock
in class JSGoogEmitter
public void emitBinaryOperator(IBinaryOperatorNode node)
IASEmitter
emitBinaryOperator
in interface IASEmitter
emitBinaryOperator
in class JSGoogEmitter
node
- The IBinaryOperatorNode
or chain of variable nodes.public void emitMemberAccessExpression(IMemberAccessExpressionNode node)
emitMemberAccessExpression
in interface IASEmitter
emitMemberAccessExpression
in class ASEmitter
protected void emitObjectDefineProperty(IAccessorNode node)
emitObjectDefineProperty
in class JSGoogEmitter
public IJSGoogDocEmitter getDocEmitter()
getDocEmitter
in interface IASEmitter
getDocEmitter
in class JSGoogEmitter
public void emitPackageHeader(IPackageDefinition definition)
emitPackageHeader
in interface IASEmitter
emitPackageHeader
in class JSGoogEmitter
public void emitPackageHeaderContents(IPackageDefinition definition)
emitPackageHeaderContents
in interface IASEmitter
emitPackageHeaderContents
in class JSGoogEmitter
public void emitPackageFooter(IPackageDefinition definition)
emitPackageFooter
in interface IASEmitter
emitPackageFooter
in class JSGoogEmitter
public void emitForEachLoop(IForLoopNode node)
IASEmitter
for each
statement.emitForEachLoop
in interface IASEmitter
emitForEachLoop
in class JSGoogEmitter
node
- The IForLoopNode
node.public void emitTypedExpression(ITypedExpressionNode node)
emitTypedExpression
in interface IASEmitter
emitTypedExpression
in class JSEmitter
public void emitLiteral(ILiteralNode node)
emitLiteral
in interface IASEmitter
emitLiteral
in class ASEmitter
public void emitE4XFilter(IMemberAccessExpressionNode node)
emitE4XFilter
in interface IASEmitter
emitE4XFilter
in class ASEmitter
public void emitContainer(IContainerNode node)
emitContainer
in interface IASEmitter
emitContainer
in class ASEmitter
Copyright © 2016 The Apache Software Foundation. All rights reserved.