public interface IJSEmitter extends IASEmitter
IJSEmitter
interface allows abstraction between the
IASNodeStrategy
and the current output buffer Writer
.Modifier and Type | Interface and Description |
---|---|
static class |
IJSEmitter.SourceMapMapping |
Modifier and Type | Method and Description |
---|---|
void |
emitClosureEnd(IASNode node,
IDefinition nodeDef) |
void |
emitClosureStart() |
void |
emitSourceMapDirective(ITypeNode node) |
void |
endMapping(ISourceLocation node)
Commits a mapping to the source map.
|
String |
formatQualifiedName(String name) |
JSSessionModel |
getModel() |
List<IJSEmitter.SourceMapMapping> |
getSourceMapMappings() |
void |
popSourceMapName() |
void |
pushSourceMapName(ISourceLocation node) |
void |
startMapping(ISourceLocation node)
Adds a node to the source map.
|
void |
startMapping(ISourceLocation node,
int line,
int column)
Adds a node to the source map using custom line and column values,
instead of the node's own line and column.
|
void |
startMapping(ISourceLocation node,
ISourceLocation afterNode)
Adds a node to the source map after a particular node instead using the
node's own line and column.
|
emitArguments, emitAsOperator, emitBinaryOperator, emitBlockClose, emitBlockOpen, emitCatch, emitClass, emitContainer, emitDoLoop, emitDynamicAccess, emitE4XFilter, emitField, emitFieldDocumentation, emitForEachLoop, emitForLoop, emitFunctionBlockHeader, emitFunctionCall, emitFunctionObject, emitGetAccessor, emitGetAccessorDocumentation, emitIdentifier, emitIf, emitImport, emitInterface, emitIsOperator, emitIterationFlow, emitKeyword, emitLabelStatement, emitLanguageIdentifier, emitLiteral, emitLiteralContainer, emitLocalNamedFunction, emitMemberAccessExpression, emitMetaTag, emitMethod, emitMethodDocumentation, emitNamespace, emitNamespaceAccessExpression, emitNumericLiteral, emitObjectLiteralValuePair, emitPackageContents, emitPackageFooter, emitPackageHeader, emitPackageHeaderContents, emitParameter, emitReturn, emitSetAccessor, 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
JSSessionModel getModel()
List<IJSEmitter.SourceMapMapping> getSourceMapMappings()
void startMapping(ISourceLocation node)
void startMapping(ISourceLocation node, int line, int column)
void startMapping(ISourceLocation node, ISourceLocation afterNode)
void endMapping(ISourceLocation node)
void pushSourceMapName(ISourceLocation node)
void popSourceMapName()
void emitSourceMapDirective(ITypeNode node)
void emitClosureStart()
void emitClosureEnd(IASNode node, IDefinition nodeDef)
Copyright © 2016 The Apache Software Foundation. All rights reserved.