public class ASCProject extends CompilerProject implements IASCProject
dependencyGraph, problems, targets
Constructor and Description |
---|
ASCProject(Workspace w,
boolean useAS3) |
Modifier and Type | Method and Description |
---|---|
void |
collectProblems(Collection<ICompilerProblem> problems)
Gets project level
ICompilerProblem 's target are not specific to any
one target created by the project. |
boolean |
handleAddedFile(File addedFile)
Called by
Workspace.fileAdded(org.apache.flex.compiler.filespecs.IFileSpecification)
for each project in the workspace. |
boolean |
isAssetEmbeddingSupported()
Test whether the project supports the embedding of assets.
|
void |
setCompilationUnits(Collection<ICompilationUnit> units)
Removes all
ICompilationUnit 's that are currently in the project
and adds the ICompilationUnit 's in the specified collection to
the project. |
addCompilationUnit, addCompilationUnits, addCompilationUnitsAndUpdateDefinitions, addConfigVariable, addConfigVariables, addDependency, addDependency, addDependency, addEmbedCompilationUnit, addGlobalUsedNamespacesToNamespaceSet, addToASTCache, addUnfoundDefinitionDependency, addUnfoundReferencedSourceFileDependency, clean, clearScopeCacheForCompilationUnit, collectConfigProblems, createSWFTarget, delete, doubleCheckAmbiguousDefinition, getActualPackageName, getBuiltinType, getCacheForScope, getCompilationUnit, getCompilationUnits, getCompilationUnits, getDependencies, getDependenciesOnDefinition, getDependenciesOnUnfoundDefinition, getDependenciesOnUnfoundReferencedSourceFile, getDependencyGraph, getDirectDependencies, getDirectReverseDependencies, getFatalProblems, getIncludingCompilationUnits, getProblems, getProjectConfigVariables, getReachableCompilationUnitsInSWFOrder, getScope, getUndefinedValue, getUseParallelCodeGeneration, getWorkspace, initProjectScope, isCompatibleOverrideReturnType, isInliningEnabled, isValidTypeConversion, removeAnyUnfoundDependencies, removeCompilationUnit, removeCompilationUnits, removeDependencies, resetScopeCacheForCompilationUnit, resolveQNameToCompilationUnit, resolveQNameToDefinition, setEnableInlining, setProblems, setUseParallelCodeGeneration, unitTestingEntryPointForRemovingCompilationUnit, updatePublicAndInternalDefinitions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clean, createSWFTarget, delete, doubleCheckAmbiguousDefinition, getActualPackageName, getBuiltinType, getCompilationUnits, getCompilationUnits, getDirectDependencies, getDirectReverseDependencies, getIncludingCompilationUnits, getProblems, getReachableCompilationUnitsInSWFOrder, getScope, getUndefinedValue, getWorkspace, isCompatibleOverrideReturnType, isInliningEnabled, isValidTypeConversion, resolveQNameToCompilationUnit, resolveQNameToDefinition, setProblems, setUseParallelCodeGeneration
public ASCProject(Workspace w, boolean useAS3)
public void setCompilationUnits(Collection<ICompilationUnit> units) throws InterruptedException
ICompilationUnit
's that are currently in the project
and adds the ICompilationUnit
's in the specified collection to
the project.
This method will request the scopes for each compilation unit such that the externally visible definitions in each compilation unit can be added to the project's scope.
units
- Collection of ICompilationUnit
's to put in this
project.InterruptedException
public void collectProblems(Collection<ICompilerProblem> problems)
CompilerProject
ICompilerProblem
's target are not specific to any
one target created by the project.collectProblems
in class CompilerProject
public boolean handleAddedFile(File addedFile)
CompilerProject
Workspace.fileAdded(org.apache.flex.compiler.filespecs.IFileSpecification)
for each project in the workspace. Each subclass of this class must
decide when an added file is interesting or should be ignored.handleAddedFile
in class CompilerProject
addedFile
- File that was added.public boolean isAssetEmbeddingSupported()
ICompilerProject
isAssetEmbeddingSupported
in interface ICompilerProject
Copyright © 2016 The Apache Software Foundation. All rights reserved.