public class JSBackend extends Object implements IJSBackend
IBackend
API where the
ASBlockWalker
is used to traverse the IFileNode
AST.Constructor and Description |
---|
JSBackend() |
Modifier and Type | Method and Description |
---|---|
Configurator |
createConfigurator()
Creates a
Configurator for the specific compile session. |
IDocEmitter |
createDocEmitter(IASEmitter emitter) |
IASEmitter |
createEmitter(FilterWriter out) |
IMXMLEmitter |
createMXMLEmitter(FilterWriter out) |
IMXMLBlockWalker |
createMXMLWalker(IASProject project,
List<ICompilerProblem> errors,
IMXMLEmitter mxmlEmitter,
IASEmitter asEmitter,
IBlockWalker asBlockWalker)
Creates an AST walker capable of traversing MXML AST and calling back to
the
IASBlockWalker for ActionScript source code production. |
IJSWriter |
createMXMLWriter(IASProject project,
List<ICompilerProblem> problems,
ICompilationUnit compilationUnit,
boolean enableDebug) |
IPublisher |
createPublisher(IASProject project,
List<ICompilerProblem> errors,
Configuration config) |
ISourceMapEmitter |
createSourceMapEmitter(IJSEmitter emitter) |
JSTarget |
createTarget(IASProject project,
ITargetSettings settings,
ITargetProgressMonitor monitor)
Creates a javascript target that will be used to build the compiled
javascript source file.
|
IASBlockWalker |
createWalker(IASProject project,
List<ICompilerProblem> errors,
IASEmitter emitter) |
IJSWriter |
createWriter(IASProject project,
List<ICompilerProblem> problems,
ICompilationUnit compilationUnit,
boolean enableDebug) |
JSFilterWriter |
createWriterBuffer(IASProject project) |
String |
getOutputExtension()
Returns the
File extension used when saving compiled code. |
ISourceFileHandler |
getSourceFileHandlerInstance()
Returns the instance that is used to manage what type of
ICompilationUnit is created during parsing. |
public String getOutputExtension()
IBackend
File
extension used when saving compiled code.getOutputExtension
in interface IBackend
public ISourceFileHandler getSourceFileHandlerInstance()
IBackend
ICompilationUnit
is created during parsing.getSourceFileHandlerInstance
in interface IBackend
ISourceFileHandler
.public Configurator createConfigurator()
IBackend
Configurator
for the specific compile session.createConfigurator
in interface IBackend
public JSTarget createTarget(IASProject project, ITargetSettings settings, ITargetProgressMonitor monitor)
IBackend
createTarget
in interface IBackend
project
- The current ICompilerProject
.settings
- The target's custom settings.monitor
- The compilation monitor used during asynchronous parsing
of ICompilationUnit
s.JSTarget
used during compilation.public IASBlockWalker createWalker(IASProject project, List<ICompilerProblem> errors, IASEmitter emitter)
createWalker
in interface IBackend
public IMXMLBlockWalker createMXMLWalker(IASProject project, List<ICompilerProblem> errors, IMXMLEmitter mxmlEmitter, IASEmitter asEmitter, IBlockWalker asBlockWalker)
IBackend
IASBlockWalker
for ActionScript source code production.
Use the #createWalker(IASProject, List, ASFilterWriter)
method
first and pass that instance into this method's walker
parameter.
createMXMLWalker
in interface IBackend
project
- The current IASProject
.errors
- The current ICompilerProblem
list.public JSFilterWriter createWriterBuffer(IASProject project)
createWriterBuffer
in interface IBackend
public IJSWriter createWriter(IASProject project, List<ICompilerProblem> problems, ICompilationUnit compilationUnit, boolean enableDebug)
createWriter
in interface IBackend
public IJSWriter createMXMLWriter(IASProject project, List<ICompilerProblem> problems, ICompilationUnit compilationUnit, boolean enableDebug)
createMXMLWriter
in interface IBackend
public ISourceMapEmitter createSourceMapEmitter(IJSEmitter emitter)
createSourceMapEmitter
in interface IJSBackend
public IDocEmitter createDocEmitter(IASEmitter emitter)
createDocEmitter
in interface IBackend
public IASEmitter createEmitter(FilterWriter out)
createEmitter
in interface IBackend
public IMXMLEmitter createMXMLEmitter(FilterWriter out)
createMXMLEmitter
in interface IBackend
public IPublisher createPublisher(IASProject project, List<ICompilerProblem> errors, Configuration config)
createPublisher
in interface IBackend
Copyright © 2016 The Apache Software Foundation. All rights reserved.