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()
IBackendFile extension used when saving compiled code.getOutputExtension in interface IBackendpublic ISourceFileHandler getSourceFileHandlerInstance()
IBackendICompilationUnit is created during parsing.getSourceFileHandlerInstance in interface IBackendISourceFileHandler.public Configurator createConfigurator()
IBackendConfigurator for the specific compile session.createConfigurator in interface IBackendpublic JSTarget createTarget(IASProject project, ITargetSettings settings, ITargetProgressMonitor monitor)
IBackendcreateTarget in interface IBackendproject - The current ICompilerProject.settings - The target's custom settings.monitor - The compilation monitor used during asynchronous parsing
of ICompilationUnits.JSTarget used during compilation.public IASBlockWalker createWalker(IASProject project, List<ICompilerProblem> errors, IASEmitter emitter)
createWalker in interface IBackendpublic IMXMLBlockWalker createMXMLWalker(IASProject project, List<ICompilerProblem> errors, IMXMLEmitter mxmlEmitter, IASEmitter asEmitter, IBlockWalker asBlockWalker)
IBackendIASBlockWalker 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 IBackendproject - The current IASProject.errors - The current ICompilerProblem list.public JSFilterWriter createWriterBuffer(IASProject project)
createWriterBuffer in interface IBackendpublic IJSWriter createWriter(IASProject project, List<ICompilerProblem> problems, ICompilationUnit compilationUnit, boolean enableDebug)
createWriter in interface IBackendpublic IJSWriter createMXMLWriter(IASProject project, List<ICompilerProblem> problems, ICompilationUnit compilationUnit, boolean enableDebug)
createMXMLWriter in interface IBackendpublic ISourceMapEmitter createSourceMapEmitter(IJSEmitter emitter)
createSourceMapEmitter in interface IJSBackendpublic IDocEmitter createDocEmitter(IASEmitter emitter)
createDocEmitter in interface IBackendpublic IASEmitter createEmitter(FilterWriter out)
createEmitter in interface IBackendpublic IMXMLEmitter createMXMLEmitter(FilterWriter out)
createMXMLEmitter in interface IBackendpublic IPublisher createPublisher(IASProject project, List<ICompilerProblem> errors, Configuration config)
createPublisher in interface IBackendCopyright © 2016 The Apache Software Foundation. All rights reserved.