com.togethersoft.sca.core.plugin.audit
Class AutoFix

java.lang.Object
  |
  +--com.togethersoft.sca.core.plugin.audit.AutoFix

public abstract class AutoFix
extends java.lang.Object

Provides interface for fixing problems found in the source.


Constructor Summary
AutoFix()
           
 
Method Summary
static AutoFix[] decodeAutoFixes(java.lang.String s)
          Creates an array of autofixes from String representation returned by #encodeautoFixes.
static java.lang.String encodeAutoFixes(AutoFix[] fixes)
          Returns a String in which the given autofixes are encoded.
abstract  boolean fix()
          Modifies the Ast model to fix the problem if it is feasible.
abstract  boolean fix(java.io.InputStream in, java.io.OutputStream out)
          Modifies the source code to fix the problem if it is feasible.
abstract  java.lang.String getName()
          Returns description for this fix.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoFix

public AutoFix()
Method Detail

decodeAutoFixes

public static AutoFix[] decodeAutoFixes(java.lang.String s)
Creates an array of autofixes from String representation returned by #encodeautoFixes. Returns an empty array, if no autofixes are encoded.

encodeAutoFixes

public static java.lang.String encodeAutoFixes(AutoFix[] fixes)
Returns a String in which the given autofixes are encoded. Returns null if no autofixes are provided.

fix

public abstract boolean fix()
Modifies the Ast model to fix the problem if it is feasible.

fix

public abstract boolean fix(java.io.InputStream in,
                            java.io.OutputStream out)
Modifies the source code to fix the problem if it is feasible.

getName

public abstract java.lang.String getName()
Returns description for this fix.