ContextRoot class abstract

Information about the root directory associated with an analysis context.

Clients may not extend, implement or mix-in this class.

Constructors

ContextRoot()

Properties

excluded List<Resource>
A list of the files and directories within the root directory that should not be analyzed.
no setter
excludedPaths Iterable<String>
A collection of the absolute, normalized paths of files and directories within the root directory that should not be analyzed.
no setter
hashCode int
The hash code for this object.
no setterinherited
included List<Resource>
A list of the files and directories within the root directory that should be analyzed. If all of the files in the root directory (other than those that are explicitly excluded) should be analyzed, then this list will contain the root directory.
no setter
includedPaths Iterable<String>
A collection of the absolute, normalized paths of files within the root directory that should be analyzed. If all of the files in the root directory (other than those that are explicitly excluded) should be analyzed, then this collection will contain the path of the root directory.
no setter
optionsFile File?
The analysis options file that should be used when analyzing the files within this context root, or null if there is no options file.
no setter
packagesFile File?
The packages file that should be used when analyzing the files within this context root, or null if there is no packages file.
no setter
resourceProvider ResourceProvider
The resource provider used to access the file system.
no setter
root Folder
The root directory containing the files to be analyzed.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
workspace → Workspace
Return the workspace that contains this context root.
no setter

Methods

analyzedFiles() Iterable<String>
Return the absolute, normalized paths of all of the files that are contained in this context. These are all of the files that are included directly or indirectly by one or more of the includedPaths and that are not excluded by any of the excludedPaths.
isAnalyzed(String path) bool
Return true if the file or directory with the given path will be analyzed in this context. A file (or directory) will be analyzed if it is either the same as or contained in one of the includedPaths and, if it is contained in one of the includedPaths, is not the same as or contained in one of the excludedPaths.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited