public final class TransformationSupport extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
TransformationSupport.Transformer
Transformer callback which is called for each occurrence during processing
of
#performTransformation(java.lang.String, org.netbeans.spi.java.hints.support.JackpotSupport.Transformer, java.util.concurrent.atomic.AtomicBoolean) |
Modifier and Type | Method and Description |
---|---|
static TransformationSupport |
create(String jackpotPattern)
Creates new TransformationSupport representing given jackpotPattern.
|
static TransformationSupport |
create(String inputJackpotPattern,
TransformationSupport.Transformer t)
Creates new TransformationSupport representing given jackpotPattern with custom Transformer.
|
Collection<? extends ModificationResult> |
processAllProjects()
Run current transformation on all projects and collect results.
|
TransformationSupport |
setCancel(AtomicBoolean cancel)
Option to cancel query.
|
void |
transformTreePath(WorkingCopy workingCopy,
TreePath treePath)
Process current transformation on given treePath and performs rewrite on
workingCopy.
|
@NonNull public static TransformationSupport create(@NonNull String jackpotPattern)
jackpotPattern
- @NonNull public static TransformationSupport create(@NonNull String inputJackpotPattern, @NonNull TransformationSupport.Transformer t)
inputJackpotPattern
- t
- TransformationSupport.Transformer
@NonNull public TransformationSupport setCancel(@NonNull AtomicBoolean cancel)
cancel
- @NonNull public Collection<? extends ModificationResult> processAllProjects()
ModificationResult
public void transformTreePath(@NonNull WorkingCopy workingCopy, @NonNull TreePath treePath)
workingCopy
- treePath
-