com.ibm.pdp.rpp.micropattern
Class AbstractSimpleMicroPatternHandler

java.lang.Object
  extended by com.ibm.pdp.rpp.micropattern.AbstractBaseMicroPatternHandler
      extended by com.ibm.pdp.rpp.micropattern.AbstractSimpleMicroPatternHandler
All Implemented Interfaces:
ICommonMicroPatternHandler, ISimpleMicroPatternHandler

public abstract class AbstractSimpleMicroPatternHandler
extends AbstractBaseMicroPatternHandler
implements ISimpleMicroPatternHandler

Abstract class for simple micro patterns. All user must extends this class


Field Summary
static java.lang.String copyright
           
 
Constructor Summary
AbstractSimpleMicroPatternHandler()
           
 
Method Summary
 java.lang.String process(IMicroPattern microPattern)
          Called once per Micro Pattern having same ID and Namespace found in the source code
abstract  java.lang.String process(IMicroPattern microPattern, com.ibm.pdp.maf.rpp.kernel.RadicalElement radicalElement)
          Called once per Micro Pattern having same ID and name space found in the source code.
 
Methods inherited from class com.ibm.pdp.rpp.micropattern.AbstractBaseMicroPatternHandler
getId, getNamespace, init, registerReference
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.pdp.engine.ICommonMicroPatternHandler
getId, getNamespace, init
 

Field Detail

copyright

public static final java.lang.String copyright
See Also:
Constant Field Values
Constructor Detail

AbstractSimpleMicroPatternHandler

public AbstractSimpleMicroPatternHandler()
Method Detail

process

public final java.lang.String process(IMicroPattern microPattern)
Description copied from interface: ISimpleMicroPatternHandler
Called once per Micro Pattern having same ID and Namespace found in the source code

Specified by:
process in interface ISimpleMicroPatternHandler
Returns:
a String to replace the current Micro Pattern in the source

process

public abstract java.lang.String process(IMicroPattern microPattern,
                                         com.ibm.pdp.maf.rpp.kernel.RadicalElement radicalElement)
Called once per Micro Pattern having same ID and name space found in the source code.

Parameters:
microPattern - The Micro Pattern.
radicalElement - The radical element source of the generation.
Returns:
a String to replace the current Micro Pattern code in the source.