public interface IASProject extends ICompilerProject
| Modifier and Type | Method and Description |
|---|---|
void |
addIncludeSourceFile(File file)
Adds a new include source file to the project.
|
void |
addIncludeSourceFile(File file,
boolean overrideSourcePath)
Adds a new include source file to the project.
|
void |
addProjectDependeny(IASProject project,
String swcFilename)
Adds a new project dependency to this project.
|
void |
attachExternalLibrarySourcePath(File library,
File sourceDir)
Attach the source directory to an external SWC library.
|
void |
attachInternalLibrarySourcePath(File library,
File sourceDir)
Attach the source directory to a SWC library.
|
IInvisibleCompilationUnit |
createInvisibleCompilationUnit(String absoluteFileName,
IFileSpecificationGetter fileSpecGetter)
Creates an
IInvisibleCompilationUnit for the specified absolute
file name. |
IInvisibleCompilationUnit |
createInvisibleCompilationUnit(String rootSourceFile,
IFileSpecificationGetter fileSpecGetter,
String qName)
Creates an
IInvisibleCompilationUnit for the specified absolute
file name, specifying a qualified name. |
String |
getAttachedSourceDirectory(String libraryFilename)
Get the Directory for the specified library.
|
Integer |
getCompatibilityVersion()
Returns the compatibility version encoded as an integer.
|
String |
getCompatibilityVersionString()
Returns the compatibility version encoded as a string.
|
Set<IASProject> |
getDependingProjects() |
List<ISWC> |
getLibraries()
The libraries available to compiler source in this project.
|
String |
getSourceFileFromSourcePath(String file)
Iterate through the source path list looking for the specified file.
|
List<File> |
getSourcePath()
Get the list of source paths set.
|
boolean |
invalidateLibraries(Collection<File> swcFiles)
Removes any calculated data related to a collection of libraries.
|
void |
invalidateLibrary(ISWC swc)
Removes any calculated data related to a SWC.
|
boolean |
isSupportedSourceFileType(String fileExtension)
Determines if the specified file extension ( without the dot eg:
as, not .as ) corresponds to a source file type that this
project can create ICompilationUnits for. |
void |
removeIncludeSourceFile(File file)
Removes an include source file to the project.
|
void |
removeProjectDependeny(IASProject project)
Removes a project dependency from this project.
|
void |
setDependencies(Map<IASProject,String> dependencies)
Resets the set of projects that this project depends on.
|
void |
setIncludeSources(File[] files)
Sets the include sources list for the project.
|
void |
setLibraries(List<File> libraries)
The libraries used to compile source files in a project.
|
void |
setSourcePath(List<File> path)
Sets the source path for the project.
|
clean, createSWFTarget, delete, doubleCheckAmbiguousDefinition, getActualPackageName, getBuiltinType, getCompilationUnits, getCompilationUnits, getDirectDependencies, getDirectReverseDependencies, getIncludingCompilationUnits, getProblems, getReachableCompilationUnitsInSWFOrder, getScope, getUndefinedValue, getWorkspace, isAssetEmbeddingSupported, isCompatibleOverrideReturnType, isInliningEnabled, isValidTypeConversion, resolveQNameToCompilationUnit, resolveQNameToDefinition, setProblems, setUseParallelCodeGenerationvoid setSourcePath(List<File> path)
path - List of directories that should be searched for source files.List<File> getSourcePath()
void setIncludeSources(File[] files) throws InterruptedException
files - InterruptedExceptionvoid addIncludeSourceFile(File file) throws InterruptedException
file - File to add.InterruptedExceptionvoid addIncludeSourceFile(File file, boolean overrideSourcePath) throws InterruptedException
file - File to add.overrideSourcePath - Set to true to add the file to the source list
even if it exists on the source path.InterruptedExceptionvoid removeIncludeSourceFile(File file) throws InterruptedException
file - File to remove.InterruptedExceptionaddIncludeSourceFile(File)void attachInternalLibrarySourcePath(File library, File sourceDir)
library - SWC librarysourceDir - directory that contains the source for the SWC libraryvoid attachExternalLibrarySourcePath(File library, File sourceDir)
library - SWC librarysourceDir - directory that contains the source for the SWC libraryString getAttachedSourceDirectory(String libraryFilename)
boolean invalidateLibraries(Collection<File> swcFiles)
swcFiles - Collection of SWC files to invalidate.void invalidateLibrary(ISWC swc)
swc - ISWC to invalidateSet<IASProject> getDependingProjects()
void addProjectDependeny(IASProject project, String swcFilename)
project - IASProject dependency to add to this project.swcFilename - The SWC filename the project dependency generatesvoid removeProjectDependeny(IASProject project)
project - IASProject to remove from this projects dependencies.void setDependencies(Map<IASProject,String> dependencies)
dependencies - The new map of IASProjects that
this project depends on. The value to the map is the SWC filename the
IASProject generates.void setLibraries(List<File> libraries)
libraries - The libraries in priority order, may not be null.List<ISWC> getLibraries()
Integer getCompatibilityVersion()
String getCompatibilityVersionString()
IInvisibleCompilationUnit createInvisibleCompilationUnit(String absoluteFileName, IFileSpecificationGetter fileSpecGetter)
IInvisibleCompilationUnit for the specified absolute
file name.absoluteFileName - The name of the file to create an
IInvisibleCompilationUnit for.fileSpecGetter - A IFileSpecificationGetter that can be used
by the new IInvisibleCompilationUnit to open files.IInvisibleCompilationUnit or null if the specified.
file name is not found on the current source path of this
IASProject.IInvisibleCompilationUnit createInvisibleCompilationUnit(String rootSourceFile, IFileSpecificationGetter fileSpecGetter, String qName)
IInvisibleCompilationUnit for the specified absolute
file name, specifying a qualified name.
This version of createInvisibleCompilationUnit() is called when creating a
IInvisibleCompilationUnit for a source file which isn't contained
within the source path, as the qualified name of the IInvisibleCompilationUnit
to be created can't be computed automatically. This happens when creating a
IInvisibleCompilationUnit for an external file.rootSourceFile - The name of the file to create an
IInvisibleCompilationUnit for.fileSpecGetter - A IFileSpecificationGetter that can be used
by the new IInvisibleCompilationUnit to open files.qName - The qualified name of the IInvisibleCompilationUnitIInvisibleCompilationUnit or null if the specified.
file name is not found on the current source path of this
IASProject.boolean isSupportedSourceFileType(String fileExtension)
as, not .as ) corresponds to a source file type that this
project can create ICompilationUnits for.fileExtension - The file extension to check without a dot, for
example mxml.Copyright © 2016 The Apache Software Foundation. All rights reserved.