com.ibm.pdp.rpp.micropattern
Class AbstractGlobalMicroPatternHandler

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

public abstract class AbstractGlobalMicroPatternHandler
extends AbstractBaseMicroPatternHandler
implements IMicroPatternHandler

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


Field Summary
static java.lang.String copyright
           
 
Constructor Summary
AbstractGlobalMicroPatternHandler()
           
 
Method Summary
 java.lang.String getBeginFragmentDeclaration(IMicroPattern microPattern, java.lang.String type)
          Returns the formated begin fragment declaration.
 java.lang.String getEndFragmentDeclaration(IMicroPattern microPattern)
          Returns the formated end fragment declaration.
 void process(IMicroPattern microPattern, IGenInfoBuilder genInfoBuilder)
          Called once per Micro Pattern having same ID and Namespace found in the source code
abstract  java.lang.String process(IMicroPattern microPattern, IGenInfoBuilder genInfoBuilder, 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

AbstractGlobalMicroPatternHandler

public AbstractGlobalMicroPatternHandler()
Method Detail

getBeginFragmentDeclaration

public final java.lang.String getBeginFragmentDeclaration(IMicroPattern microPattern,
                                                          java.lang.String type)
Returns the formated begin fragment declaration.

Parameters:
microPattern - The micro pattern.
type - The type of the fragment.
Returns:
The begin fragment declaration.

getEndFragmentDeclaration

public java.lang.String getEndFragmentDeclaration(IMicroPattern microPattern)
Returns the formated end fragment declaration.

Parameters:
microPattern - The micro pattern.
Returns:
The end fragment declaration.

process

public final void process(IMicroPattern microPattern,
                          IGenInfoBuilder genInfoBuilder)
Description copied from interface: IMicroPatternHandler
Called once per Micro Pattern having same ID and Namespace found in the source code

Specified by:
process in interface IMicroPatternHandler

process

public abstract java.lang.String process(IMicroPattern microPattern,
                                         IGenInfoBuilder genInfoBuilder,
                                         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
genInfoBuilder - The GenInfo Builder
radicalElement - The radical element source of the generation