FeaturesPluginsDocs & SupportCommunityPartners

org.netbeans.modules.jackpot/2 2 1

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.
 
Methods inherited from interface org.netbeans.api.jackpot.Query
attach, cancel, destroy, getCompilationInfo, getJavaSource, init, release, run
 

Method Detail

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.

org.netbeans.modules.jackpot/2 2 1

Built on April 6 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
Companion
Projects:
MySQL Database Server   Open JDK: an Open SourceJDK   GlassFish Community: an Open Source Application Server    Mobile & Embedded Community    Open Solaris   java.net - The Source for Java Technology Collaboration   Virtual Box - full virtualizer  Open ESB - The Open Enterprise Service Bus Powered by