Package org.netbeans.api.jackpot
This package defines the API used by queries and transformers when
executed by the Jackpot module.
See:
Description
|
Interface Summary |
| Query |
A Query is applied to a a set of source files (defined by a
JavaSource instance) and reports any matching results. |
| QueryContext |
A QueryContext is the environment that a Query is executed in, which
provides methods for communicating with the user through query results,
status bar and log messages, and errors. |
| Transformer |
A Transformer is applied to a a set of source files (defined by a
JavaSource instance) to transform query matches into new source code. |
|
Class Summary |
| ConversionOperations |
Utility methods for creating and simplifying trees using techniques such
as constant-folding and dead-code analysis. |
| QueryOperations |
Utility methods for common query tasks. |
| TreeMatcher |
Determines whether two trees deeply match each other, using a
fast-fail algorithm. |
| TreePathQuery<R,P> |
An abstract Query which extends TreePathScanner to visit the project's AST
nodes using the visitor pattern. |
| TreePathTransformer<R,P> |
An abstract Transformer which extends TreePathScanner to visit the project's
AST nodes using the visitor pattern. |
|
Exception Summary |
| QueryException |
Returns an Exception or Error thrown during Query or Transformer execution. |
Package org.netbeans.api.jackpot Description
This package defines the API used by queries and transformers when
executed by the Jackpot module. A query is an action which scans one
or more projects' Java source files, usually scanning its abstract
syntax trees (ASTs), and returns a list of matched source references.
A transformer extends this to propose modifications to the source files.