public class ABCCompilationUnit extends CompilationUnitBase
ICompilationUnit.Operation, ICompilationUnit.UnitType
abc, DEFAULT_DO_ABC_TAG_NAME, fileScopeRequest, problems, syntaxTreeRequest
Constructor and Description |
---|
ABCCompilationUnit(CompilerProject project,
String path)
Create a compilation unit from an ABC file.
|
Modifier and Type | Method and Description |
---|---|
protected byte[] |
getABCBytes(Collection<ICompilerProblem> problems) |
ICompilationUnit.UnitType |
getCompilationUnitType() |
protected IABCBytesRequestResult |
handleABCBytesRequest()
Builds a IABCBytesRequestResult.
|
protected IFileScopeRequestResult |
handleFileScopeRequest()
Builds a
IFileScopeRequestResult . |
protected IOutgoingDependenciesRequestResult |
handleOutgoingDependenciesRequest()
Builds a IOutgoingDependenciesRequestResult.
|
protected ISWFTagsRequestResult |
handleSWFTagsRequest()
Builds a ISWFTagsRequestResult.
|
protected ISyntaxTreeRequestResult |
handleSyntaxTreeRequest()
Builds a
ISyntaxTreeRequestResult . |
ICompilationUnit.Operation[] |
notifyDependencyOperationResultsInvalid(ICompilationUnit dependency,
ICompilationUnit.Operation[] invalidatedOperations) |
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, removeAST, setFileSpecificationGetter, startBuildAsync, startParsingImports, startProfile, stopProfile, toString, updateEmbedCompilationUnitDependencies, updateStyleCompilationUnitDependencies, verifyAST, waitForBuildFinish
public ABCCompilationUnit(CompilerProject project, String path)
project
- compiler projectpath
- ABC file pathpublic ICompilationUnit.UnitType getCompilationUnitType()
public ICompilationUnit.Operation[] notifyDependencyOperationResultsInvalid(ICompilationUnit dependency, ICompilationUnit.Operation[] invalidatedOperations)
protected ISyntaxTreeRequestResult handleSyntaxTreeRequest() throws InterruptedException
CompilationUnitBase
ISyntaxTreeRequestResult
. 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 CompilationUnitBase
ISyntaxTreeRequestResult
for this compilation unit.InterruptedException
protected IFileScopeRequestResult handleFileScopeRequest() throws InterruptedException
CompilationUnitBase
IFileScopeRequestResult
. 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 CompilationUnitBase
IFileScopeRequestResult
for this compilation unit.InterruptedException
protected IABCBytesRequestResult handleABCBytesRequest() throws InterruptedException
CompilationUnitBase
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.
handleABCBytesRequest
in class CompilationUnitBase
InterruptedException
protected ISWFTagsRequestResult handleSWFTagsRequest() throws InterruptedException
CompilationUnitBase
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.
handleSWFTagsRequest
in class CompilationUnitBase
InterruptedException
protected IOutgoingDependenciesRequestResult handleOutgoingDependenciesRequest() throws InterruptedException
CompilationUnitBase
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.
handleOutgoingDependenciesRequest
in class CompilationUnitBase
InterruptedException
protected byte[] getABCBytes(Collection<ICompilerProblem> problems)
Copyright © 2016 The Apache Software Foundation. All rights reserved.