public class ASCompilationUnit extends CompilationUnitBase
ICompilationUnit.Operation, ICompilationUnit.UnitTypeabc, DEFAULT_DO_ABC_TAG_NAME, fileScopeRequest, problems, syntaxTreeRequest| Constructor and Description |
|---|
ASCompilationUnit(CompilerProject project,
String path,
DefinitionPriority.BasePriority basePriority) |
ASCompilationUnit(CompilerProject project,
String path,
DefinitionPriority.BasePriority basePriority,
int order) |
ASCompilationUnit(CompilerProject project,
String path,
DefinitionPriority.BasePriority basePriority,
int order,
String qname) |
addScopeToProjectScope, 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, startBuildAsync, startParsingImports, startProfile, stopProfile, toString, updateEmbedCompilationUnitDependencies, updateStyleCompilationUnitDependencies, verifyAST, waitForBuildFinishpublic ASCompilationUnit(CompilerProject project, String path, DefinitionPriority.BasePriority basePriority)
public ASCompilationUnit(CompilerProject project, String path, DefinitionPriority.BasePriority basePriority, int order)
public ASCompilationUnit(CompilerProject project, String path, DefinitionPriority.BasePriority basePriority, int order, String qname)
public static ASCompilationUnit createMainCompilationUnitForASC(CompilerProject project, IFileSpecification mainFile, ASC asc)
-in option onto the
tokenizer.
Using this factory method so that we don't have to expose
ASCompilationUnit#setIncludedFiles(List), because it is specific
to ASC only.
project - Compiler project.mainFile - Main source file.asc - ASC client instance.public ICompilationUnit.UnitType getCompilationUnitType()
protected FileNode createFileNode(IFileSpecification specification)
specification - the IFileSpecification for the given fileFileNodeprotected ISyntaxTreeRequestResult handleSyntaxTreeRequest() throws InterruptedException
CompilationUnitBaseISyntaxTreeRequestResult. In many cases the ISyntaxTreeRequestResult
is built by parsing a source file into a syntax tree.
Called 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.
handleSyntaxTreeRequest in class CompilationUnitBaseISyntaxTreeRequestResult for this compilation unit.InterruptedExceptionprotected IFileScopeRequestResult handleFileScopeRequest() throws InterruptedException
CompilationUnitBaseIFileScopeRequestResult. In many cases the
IFileScopeRequestResult is built by walking an AST produced by a parser.
Called 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.
handleFileScopeRequest in class CompilationUnitBaseIFileScopeRequestResult for this compilation unit.InterruptedExceptionprotected void addProblemsToProject(ASFileScopeRequestResult result)
protected IABCBytesRequestResult handleABCBytesRequest() 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.
handleABCBytesRequest in class CompilationUnitBaseInterruptedExceptionprotected ISWFTagsRequestResult handleSWFTagsRequest() 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.
handleSWFTagsRequest in class CompilationUnitBaseInterruptedExceptionprotected 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 CompilationUnitBaseInterruptedExceptionprotected void removeAST()
removeAST in class CompilationUnitBasepublic String getRootClassName() throws InterruptedException
InterruptedExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.