public class StyleModuleCompilationUnit extends CompilationUnitBase
ICompilationUnit.Operation, ICompilationUnit.UnitType
abc, DEFAULT_DO_ABC_TAG_NAME, fileScopeRequest, problems, syntaxTreeRequest
Constructor and Description |
---|
StyleModuleCompilationUnit(CompilerProject project,
IFileSpecification cssFile,
DefinitionPriority.BasePriority basePriority)
Create a
StyleModuleCompilationUnit . |
Modifier and Type | Method and Description |
---|---|
ICompilationUnit.UnitType |
getCompilationUnitType() |
protected IABCBytesRequestResult |
handleABCBytesRequest()
Get the ABC byte code generated from the CSS file.
|
protected IFileScopeRequestResult |
handleFileScopeRequest()
Synthesize a file scope with a public definition of module main class.
|
protected IOutgoingDependenciesRequestResult |
handleOutgoingDependenciesRequest()
Collect CSS semantic problems.
|
protected ISWFTagsRequestResult |
handleSWFTagsRequest()
Get a
DoABCTag that contains the generated ABC byte code. |
protected ISyntaxTreeRequestResult |
handleSyntaxTreeRequest()
StyleModuleCompilationUnit does not provide an AST, unless we
decided to start CMP-879. |
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 StyleModuleCompilationUnit(CompilerProject project, IFileSpecification cssFile, DefinitionPriority.BasePriority basePriority)
StyleModuleCompilationUnit
.project
- Owner project.cssFile
- Path to the source file.basePriority
- Base priority.public ICompilationUnit.UnitType getCompilationUnitType()
protected ISyntaxTreeRequestResult handleSyntaxTreeRequest() throws InterruptedException
StyleModuleCompilationUnit
does not provide an AST, unless we
decided to start CMP-879. However, the return value will contain the CSS
syntax errors in IRequestResult.getProblems()
.handleSyntaxTreeRequest
in class CompilationUnitBase
ISyntaxTreeRequestResult
for this compilation unit.InterruptedException
protected IFileScopeRequestResult handleFileScopeRequest() throws InterruptedException
handleFileScopeRequest
in class CompilationUnitBase
IFileScopeRequestResult
for this compilation unit.InterruptedException
protected IABCBytesRequestResult handleABCBytesRequest() throws InterruptedException
This request depends on handleOutgoingDependenciesRequest()
.
handleABCBytesRequest
in class CompilationUnitBase
InterruptedException
protected ISWFTagsRequestResult handleSWFTagsRequest() throws InterruptedException
DoABCTag
that contains the generated ABC byte code.handleSWFTagsRequest
in class CompilationUnitBase
InterruptedException
protected IOutgoingDependenciesRequestResult handleOutgoingDependenciesRequest() throws InterruptedException
This request depends on handleSyntaxTreeRequest()
.
handleOutgoingDependenciesRequest
in class CompilationUnitBase
InterruptedException
Copyright © 2016 The Apache Software Foundation. All rights reserved.