public class JSAMDEmitter extends JSEmitter implements IJSAMDEmitter
IJSEmitter.SourceMapMappingblockCloseEmitter, 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 |
|---|
JSAMDEmitter(FilterWriter out) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
emitAccessor(String kind,
IAccessorDefinition definition) |
void |
emitArguments(IContainerNode node) |
void |
emitClass(IClassNode node)
Emit a Class.
|
void |
emitField(IVariableNode node)
Emit a full Class field member.
|
void |
emitFunctionBlockHeader(IFunctionNode node)
Emit a header at the start of a function block.
|
void |
emitFunctionCall(IFunctionCallNode node)
Emit a function call like
new Foo() or foo(42). |
void |
emitGetAccessor(IGetterNode node)
Emit a full Class getter member.
|
void |
emitIdentifier(IIdentifierNode node) |
void |
emitInterface(IInterfaceNode node)
Emit an Interface.
|
void |
emitLanguageIdentifier(ILanguageIdentifierNode node) |
void |
emitMemberAccessExpression(IMemberAccessExpressionNode node) |
void |
emitMethod(IFunctionNode node)
Emit a full Class or Interface method member.
|
void |
emitPackageContents(IPackageDefinition definition) |
void |
emitPackageFooter(IPackageDefinition definition) |
void |
emitPackageHeader(IPackageDefinition definition) |
void |
emitPackageHeaderContents(IPackageDefinition definition) |
void |
emitParameter(IParameterNode node) |
void |
emitSetAccessor(ISetterNode node)
Emit a full Class setter member.
|
protected void |
emitType(IExpressionNode node) |
addLineToMappings, emitBlockClose, emitBlockOpen, emitCatch, emitClosureEnd, emitClosureStart, emitDoLoop, emitDynamicAccess, emitForLoop, emitFunctionObject, emitIf, emitIterationFlow, emitLiteralContainer, emitLocalNamedFunction, emitMemberKeyword, emitNumericLiteral, emitObjectLiteralValuePair, emitParameters, emitReturn, emitSourceMapDirective, emitStatement, emitSwitch, emitTernaryOperator, emitThrow, emitTry, emitTypedExpression, emitUnaryOperator, emitWhileLoop, emitWith, endMapping, formatQualifiedName, getModel, getSourceMapMappings, popSourceMapName, pushSourceMapName, removeLineFromMappings, startMapping, startMapping, startMappingemitAccessorKeyword, emitAsOperator, emitAssignedValue, emitBinaryOperator, emitContainer, emitDeclarationName, emitE4XFilter, emitFieldDocumentation, emitForEachLoop, emitFunctionScope, emitGetAccessorDocumentation, emitImport, emitIsOperator, emitKeyword, emitLabelStatement, emitLiteral, emitMemberName, emitMetaTag, emitMethodDocumentation, emitMethodScope, emitModifiers, emitNamespace, emitNamespaceAccessExpression, emitNamespaceIdentifier, emitSetAccessorDocumentation, emitUseNamespace, emitVarDeclaration, emitVariableExpression, findType, findTypeNode, flushBuilder, getBuilder, getConstructor, getCurrentColumn, getCurrentIndent, getCurrentLine, getDocEmitter, 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, formatQualifiedName, getModel, getSourceMapMappings, popSourceMapName, pushSourceMapName, startMapping, startMapping, startMappingemitAsOperator, emitBinaryOperator, emitBlockClose, emitBlockOpen, emitCatch, emitContainer, emitDoLoop, emitDynamicAccess, emitE4XFilter, emitFieldDocumentation, emitForEachLoop, emitForLoop, emitFunctionObject, emitGetAccessorDocumentation, emitIf, emitImport, emitIsOperator, emitIterationFlow, emitKeyword, emitLabelStatement, emitLiteral, emitLiteralContainer, emitLocalNamedFunction, emitMetaTag, emitMethodDocumentation, emitNamespace, emitNamespaceAccessExpression, emitNumericLiteral, emitObjectLiteralValuePair, emitReturn, emitSetAccessorDocumentation, emitStatement, emitSwitch, emitTernaryOperator, emitThrow, emitTry, emitTypedExpression, emitUnaryOperator, emitUseNamespace, emitVarDeclaration, emitVariableExpression, emitWhileLoop, emitWith, getDocEmitter, getWalker, postProcess, setDocEmitter, setWalkerindentPop, indentPush, stringifyNode, write, write, writeNewline, writeNewline, writeNewline, writeNewline, writeNewline, writeToken, writeTokenpublic JSAMDEmitter(FilterWriter out)
public 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 emitInterface(IInterfaceNode node)
IASEmitteremitInterface in interface IASEmitteremitInterface in class ASEmitternode - The IInterfaceNode class.public void emitClass(IClassNode node)
IASEmitteremitClass in interface IASEmitteremitClass in class ASEmitternode - The IClassNode class.public void emitField(IVariableNode node)
IASEmitteremitField in interface IASEmitteremitField in class ASEmitternode - The IVariableNode class field member.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.protected void emitAccessor(String kind, IAccessorDefinition definition)
public void emitMethod(IFunctionNode node)
IASEmitteremitMethod in interface IASEmitteremitMethod in class ASEmitternode - The IFunctionNode class method member.public void emitFunctionBlockHeader(IFunctionNode node)
IASEmitteremitFunctionBlockHeader in interface IASEmitteremitFunctionBlockHeader in class ASEmitternode - The IFunctionNode node.public void emitParameter(IParameterNode node)
emitParameter in interface IASEmitteremitParameter in class JSEmitterpublic void emitMemberAccessExpression(IMemberAccessExpressionNode node)
emitMemberAccessExpression in interface IASEmitteremitMemberAccessExpression in class ASEmitterpublic void emitFunctionCall(IFunctionCallNode node)
IASEmitternew Foo() or foo(42).emitFunctionCall in interface IASEmitteremitFunctionCall in class ASEmitternode - The IFunctionCallNode node.public void emitArguments(IContainerNode node)
emitArguments in interface IASEmitteremitArguments in class JSEmitterpublic void emitIdentifier(IIdentifierNode node)
emitIdentifier in interface IASEmitteremitIdentifier in class ASEmitterprotected void emitType(IExpressionNode node)
public void emitLanguageIdentifier(ILanguageIdentifierNode node)
emitLanguageIdentifier in interface IASEmitteremitLanguageIdentifier in class JSEmitterCopyright © 2016 The Apache Software Foundation. All rights reserved.