public class ServicesXMLCompilationUnit extends ASCompilationUnit
ICompilationUnit.Operation, ICompilationUnit.UnitType
abc, DEFAULT_DO_ABC_TAG_NAME, fileScopeRequest, problems, syntaxTreeRequest
Constructor and Description |
---|
ServicesXMLCompilationUnit(CompilerProject project,
String path,
String contextRoot)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
clean(Map<ICompilerProject,Set<File>> invalidatedSWCFiles,
Map<ICompilerProject,Set<ICompilationUnit>> cusToUpdate,
boolean clearFileScope)
Removes all data created during a compile Clients should not call this
method directly, as it can potentially leave the ICompilationUnit in an
invalid state.
|
static String |
getQname(String path)
Get the Qname of a ServciesXMLCompilation unit based on path of the
services-config.xml file.
|
protected IFileSpecification |
getRootFileSpecification() |
addProblemsToProject, createFileNode, createMainCompilationUnitForASC, getCompilationUnitType, getRootClassName, handleABCBytesRequest, handleFileScopeRequest, handleOutgoingDependenciesRequest, handleSWFTagsRequest, handleSyntaxTreeRequest, removeAST
addScopeToProjectScope, clearIncludedFilesFromWorkspace, clearProject, getABCBytesRequest, getAbsoluteFilename, getDefinitionPriority, getDefinitionPromises, getEmbeddedFilenames, getEncodedDebugFiles, getFilenameNoPath, getFileScopeRequest, getFileSpecificationGetter, getName, getOutgoingDependenciesRequest, getProject, getQualifiedNames, getShortNames, getSWFTagsRequest, getSyntaxTreeRequest, handleClean, isInvisible, makeInvisible, operationsCompleted, setFileSpecificationGetter, startBuildAsync, startParsingImports, startProfile, stopProfile, toString, updateEmbedCompilationUnitDependencies, updateStyleCompilationUnitDependencies, verifyAST, waitForBuildFinish
public ServicesXMLCompilationUnit(CompilerProject project, String path, String contextRoot)
project
- the project.path
- the absolute path of the services configuration file.contextRoot
- the string to substitute for "{content.root}" in
the services configuration file.public static String getQname(String path)
path
- the absolute path of the services-config.xml file.protected final IFileSpecification getRootFileSpecification()
getRootFileSpecification
in class CompilationUnitBase
public boolean clean(Map<ICompilerProject,Set<File>> invalidatedSWCFiles, Map<ICompilerProject,Set<ICompilationUnit>> cusToUpdate, boolean clearFileScope)
ICompilationUnit
clean
in interface ICompilationUnit
clean
in class CompilationUnitBase
invalidatedSWCFiles
- Map of SWC filenames and depending projects
which have been invalidated by this callcusToUpdate
- Map
from ICompilerProject
to
Set
of ICompilationUnit
s in the project whose externally
visible symbols need to be re-registered with the symbol table of the
containing ICompilerProject
when cleaning is complete.clearFileScope
- Whether to clear the file scopeCopyright © 2016 The Apache Software Foundation. All rights reserved.