ContextRoot class

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.
read-only
excludedPaths Iterable<String>
A collection of the absolute, normalized paths of files and directories within the root directory that should not be analyzed.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
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.
read-only
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.
read-only
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.
read-only
packagesFile File
The packages file that should be used when analyzing the files within this context root, or null if there is no options file.
read-only
resourceProvider ResourceProvider
The resource provider used to access the file system.
read-only
root Folder
The root directory containing the files to be analyzed.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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