public class JSAMDEmitter extends JSEmitter implements IJSAMDEmitter
IJSEmitter.SourceMapMapping
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 |
---|
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, startMapping
emitAccessorKeyword, 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, writeToken
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
emitClosureEnd, emitClosureStart, emitSourceMapDirective, endMapping, formatQualifiedName, getModel, getSourceMapMappings, popSourceMapName, pushSourceMapName, startMapping, startMapping, startMapping
emitAsOperator, 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, setWalker
indentPop, indentPush, stringifyNode, write, write, writeNewline, writeNewline, writeNewline, writeNewline, writeNewline, writeToken, writeToken
public JSAMDEmitter(FilterWriter out)
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 emitInterface(IInterfaceNode node)
IASEmitter
emitInterface
in interface IASEmitter
emitInterface
in class ASEmitter
node
- The IInterfaceNode
class.public void emitClass(IClassNode node)
IASEmitter
emitClass
in interface IASEmitter
emitClass
in class ASEmitter
node
- The IClassNode
class.public void emitField(IVariableNode node)
IASEmitter
emitField
in interface IASEmitter
emitField
in class ASEmitter
node
- The IVariableNode
class field member.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.protected void emitAccessor(String kind, IAccessorDefinition definition)
public void emitMethod(IFunctionNode node)
IASEmitter
emitMethod
in interface IASEmitter
emitMethod
in class ASEmitter
node
- The IFunctionNode
class method member.public void emitFunctionBlockHeader(IFunctionNode node)
IASEmitter
emitFunctionBlockHeader
in interface IASEmitter
emitFunctionBlockHeader
in class ASEmitter
node
- The IFunctionNode
node.public void emitParameter(IParameterNode node)
emitParameter
in interface IASEmitter
emitParameter
in class JSEmitter
public void emitMemberAccessExpression(IMemberAccessExpressionNode node)
emitMemberAccessExpression
in interface IASEmitter
emitMemberAccessExpression
in class ASEmitter
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 emitArguments(IContainerNode node)
emitArguments
in interface IASEmitter
emitArguments
in class JSEmitter
public void emitIdentifier(IIdentifierNode node)
emitIdentifier
in interface IASEmitter
emitIdentifier
in class ASEmitter
protected void emitType(IExpressionNode node)
public void emitLanguageIdentifier(ILanguageIdentifierNode node)
emitLanguageIdentifier
in interface IASEmitter
emitLanguageIdentifier
in class JSEmitter
Copyright © 2016 The Apache Software Foundation. All rights reserved.