Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 61e315e5a3cc05f2611b9563a4bd0844002178c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package headless.util;

import headless.EPackageMatch;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.incquery.runtime.api.IMatchProcessor;

/**
 * A match processor tailored for the headless.ePackage pattern.
 * 
 * Clients should derive an (anonymous) class that implements the abstract process().
 * 
 */
@SuppressWarnings("all")
public abstract class EPackageProcessor implements IMatchProcessor<EPackageMatch> {
  /**
   * Defines the action that is to be executed on each match.
   * @param pP the value of pattern parameter p in the currently processed match
   * 
   */
  public abstract void process(final EPackage pP);
  
  @Override
  public void process(final EPackageMatch match) {
    process(match.getP());
    
  }
}

Back to the top