class IssueLogger extends IssuesCollection
Issue management class that holds Issues for each metadata file and tracks when they change to allow clients to be more selective when pulling issues.
Note: To support virtual filesystem testing then we need to have *Internal methods that pass a PathLike, the public API methods use strings for simplicity.
- Alphabetic
- By Inheritance
- IssueLogger
- IssuesCollection
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def add(issue: Issue): Unit
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clear(): Unit
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val externalPathFilter: Option[(PathLike) => Boolean]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def getDiagnostics(path: PathLike): List[Diagnostic]
- def hasErrors: Boolean
- def hasUpdatedIssues(): Array[String]
Array of metadata file paths whose issues have changed since they were last retrieved from this collection.
Array of metadata file paths whose issues have changed since they were last retrieved from this collection.
- Definition Classes
- IssueLogger → IssuesCollection
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def ignoreUpdatedIssues(path: String): Unit
Reset the issue update handling for a metadata file.
Reset the issue update handling for a metadata file. This will cause the file not to be returned from the next call to hasUpdatedIssues() unless new issues are reported.
- Definition Classes
- IssueLogger → IssuesCollection
- def ignoreUpdatedIssuesInternal(path: PathLike): Unit
- def isEmpty: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def issues: ArraySeq[Issue]
Get all issues as an ArraySeq, compatible with CatchingLogger.issues
- def issuesForFile(path: String): Array[io.github.apexdevtools.api.Issue]
Array of current Issues for the metadata file path.
Array of current Issues for the metadata file path. Returns an empty array if there are none. Resets the updated issues tracking when called.
- Definition Classes
- IssueLogger → IssuesCollection
- def issuesForFileInternal(path: PathLike): Seq[Issue]
- def issuesForFileLocation(path: String, location: IssueLocation): Array[io.github.apexdevtools.api.Issue]
This is specialised accessor to aid PMD integration.
This is specialised accessor to aid PMD integration.
- Definition Classes
- IssueLogger → IssuesCollection
- def issuesForFileLocationInternal(path: PathLike, location: IssueLocation): Array[io.github.apexdevtools.api.Issue]
- def issuesForFiles(paths: Array[String], includeWarnings: Boolean, maxIssuesPerFile: Int): Array[io.github.apexdevtools.api.Issue]
Array of current Issues for multiple metadata files.
Array of current Issues for multiple metadata files. If paths is empty or null then this will return issues for all metadata files which have them. When includeWarnings is true, issues of any category will be returned otherwise only errors will be returned. The argument maxErrorsPerFile limits the number of Issues returned to the first 'n' on each file, if it is <1 all Issues will be returned for each metadata file. Resets the updated issues tracking when called for all files processed.
- Definition Classes
- IssueLogger → IssuesCollection
- def issuesForFilesInternal(paths: Array[PathLike], includeWarnings: Boolean = true, maxIssuesPerFile: Int = 0): Seq[Issue]
- def log(issue: Issue): Unit
- def logAll(issues: ArraySeq[Issue]): Unit
- def logAndGet[T](andIssues: IssuesAnd[T]): T
- def logError(path: PathLike, location: Location, message: String): Unit
- def logWarning(path: PathLike, location: Location, message: String): Unit
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nonEmpty: Boolean
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def pop(path: PathLike): List[Issue]
- def push(path: PathLike, issues: List[Issue]): Unit
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)