public class BuildContext
extends org.eclipse.wst.jsdt.internal.core.builder.ValidationParticipantResult
This class is not intended to be instanciated or subclassed by clients.
Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.Constructor and Description |
---|
BuildContext(org.eclipse.wst.jsdt.internal.core.builder.SourceFile sourceFile)
Creates a build context for the given source file.
|
Modifier and Type | Method and Description |
---|---|
char[] |
getContents()
Returns the contents of the javaScript unit.
|
IFile |
getFile()
Returns the
IFile representing the javaScript unit. |
void |
recordAddedGeneratedFiles(IFile[] addedGeneratedFiles)
Record the added/changed generated files that need to be compiled.
|
void |
recordDeletedGeneratedFiles(IFile[] deletedGeneratedFiles)
Record the generated files that need to be deleted.
|
void |
recordDependencies(java.lang.String[] typeNameDependencies)
Record the fully-qualified type names of any new dependencies, each name is of the form "p1.p2.A.B".
|
void |
recordNewProblems(CategorizedProblem[] newProblems)
Record new problems to report against this compilationUnit.
|
public BuildContext(org.eclipse.wst.jsdt.internal.core.builder.SourceFile sourceFile)
This constructor is not intended to be called by clients.
sourceFile
- the source file being builtpublic char[] getContents()
public IFile getFile()
IFile
representing the javaScript unit.IFile
representing the javaScript unitpublic void recordAddedGeneratedFiles(IFile[] addedGeneratedFiles)
addedGeneratedFiles
- the added/changed filespublic void recordDeletedGeneratedFiles(IFile[] deletedGeneratedFiles)
deletedGeneratedFiles
- the files that need to be deletedpublic void recordDependencies(java.lang.String[] typeNameDependencies)
typeNameDependencies
- the fully-qualified type names of new dependenciespublic void recordNewProblems(CategorizedProblem[] newProblems)
newProblems
- the problems to reportCopyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.