public class JSCompilationUnit extends ASCompilationUnit
JSCompilationUnit is derived from ASCompilationUnit and overrides the parts that generate the code.
ICompilationUnit.Operation, ICompilationUnit.UnitTypeabc, DEFAULT_DO_ABC_TAG_NAME, fileScopeRequest, problems, syntaxTreeRequest| Constructor and Description |
|---|
JSCompilationUnit(CompilerProject project,
String path)
Create a compilation unit from an ABC file.
|
JSCompilationUnit(CompilerProject project,
String path,
DefinitionPriority.BasePriority basePriority) |
JSCompilationUnit(CompilerProject project,
String path,
DefinitionPriority.BasePriority basePriority,
String qname) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
addDependency(String className,
DependencyType dt) |
protected IOutgoingDependenciesRequestResult |
handleOutgoingDependenciesRequest()
Builds a IOutgoingDependenciesRequestResult.
|
void |
startBuildAsync(ITarget.TargetType targetType)
This method starts to build the compilation unit asynchronously.
|
void |
waitForBuildFinish(Collection<ICompilerProblem> problems,
ITarget.TargetType targetType)
Wait till the compilation unit finishes building, and collect compiler
problems.
|
addProblemsToProject, createFileNode, createMainCompilationUnitForASC, getCompilationUnitType, getRootClassName, handleABCBytesRequest, handleFileScopeRequest, handleSWFTagsRequest, handleSyntaxTreeRequest, removeASTaddScopeToProjectScope, clean, clearIncludedFilesFromWorkspace, clearProject, getABCBytesRequest, getAbsoluteFilename, getDefinitionPriority, getDefinitionPromises, getEmbeddedFilenames, getEncodedDebugFiles, getFilenameNoPath, getFileScopeRequest, getFileSpecificationGetter, getName, getOutgoingDependenciesRequest, getProject, getQualifiedNames, getRootFileSpecification, getShortNames, getSWFTagsRequest, getSyntaxTreeRequest, handleClean, isInvisible, makeInvisible, operationsCompleted, setFileSpecificationGetter, startParsingImports, startProfile, stopProfile, toString, updateEmbedCompilationUnitDependencies, updateStyleCompilationUnitDependencies, verifyASTpublic JSCompilationUnit(CompilerProject project, String path) throws IOException
project - compiler projectpath - ABC file pathIOException - errorpublic JSCompilationUnit(CompilerProject project, String path, DefinitionPriority.BasePriority basePriority)
public JSCompilationUnit(CompilerProject project, String path, DefinitionPriority.BasePriority basePriority, String qname)
protected IOutgoingDependenciesRequestResult handleOutgoingDependenciesRequest() throws InterruptedException
CompilationUnitBaseCalled by this class from potentially any thread. This class guarantees that this method will only be entered from one thread at a time for a given instance of this class, so implementations do not need to make this a synchronized method.
handleOutgoingDependenciesRequest in class ASCompilationUnitInterruptedExceptionpublic Boolean addDependency(String className, DependencyType dt)
public void startBuildAsync(ITarget.TargetType targetType)
ICompilationUnitstartBuildAsync in interface ICompilationUnitstartBuildAsync in class CompilationUnitBasetargetType - type of the active Targetpublic void waitForBuildFinish(Collection<ICompilerProblem> problems, ITarget.TargetType targetType) throws InterruptedException
ICompilationUnitwaitForBuildFinish in interface ICompilationUnitwaitForBuildFinish in class CompilationUnitBaseproblems - Problems from executing the requests.targetType - type of the active TargetInterruptedException - Concurrency error.ICompilationUnit.startBuildAsync(org.apache.flex.compiler.targets.ITarget.TargetType)Copyright © 2016 The Apache Software Foundation. All rights reserved.