org.netbeans.api.jackpot
Interface Transformer
- All Superinterfaces:
- Query
- All Known Implementing Classes:
- TreePathTransformer
public interface Transformer
- extends Query
A Transformer is applied to a a set of source files (defined by a
JavaSource instance) to transform query matches into new source code.
|
Method Summary |
org.netbeans.api.java.source.WorkingCopy |
getWorkingCopy()
Returns the WorkingCopy attached to this transformation. |
void |
transformationFailure(String message)
Called by a transformer when it discovers code it cannot transform, such
as an unmapped method when converting one class to another. |
getWorkingCopy
org.netbeans.api.java.source.WorkingCopy getWorkingCopy()
- Returns the WorkingCopy attached to this transformation.
- Returns:
- the WorkingCopy instance, or null if not attached.
transformationFailure
void transformationFailure(String message)
- Called by a transformer when it discovers code it cannot transform, such
as an unmapped method when converting one class to another. This is
different than QueryException, which is thrown when the query or
transformer cannot continue.
- Parameters:
message - a description of the translation failure.