EGF Engine
Release 0.1.0

org.eclipse.egf.pattern.execution
Class PatternExecutionHelper

java.lang.Object
  extended by org.eclipse.egf.pattern.execution.PatternExecutionHelper

public class PatternExecutionHelper
extends Object


Nested Class Summary
static class PatternExecutionHelper.ArgumentKey
          Argument key.
 
Constructor Summary
PatternExecutionHelper()
           
 
Method Summary
static Object doRunPattern(String patternFullId_p, Object arguments_p)
          Do run identified pattern with given arguments_p.
static org.eclipse.egf.core.context.ProductionContext getContext(Object argument_p)
          Get production context from pattern argument.
static IPatternExecutionReporter getExecutionReporter(Object argument_p)
          Get execution reporter.
static Resource getResource(Object argument_p)
          Get EMF resource from pattern argument.
static Object invokePattern(String patternFullId_p, Object arguments_p)
          Invoke identified pattern with given arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternExecutionHelper

public PatternExecutionHelper()
Method Detail

getResource

public static Resource getResource(Object argument_p)
Get EMF resource from pattern argument.

Parameters:
argument_p -
Returns:

getContext

public static org.eclipse.egf.core.context.ProductionContext getContext(Object argument_p)
Get production context from pattern argument.

Parameters:
argument_p -
Returns:

getExecutionReporter

public static IPatternExecutionReporter getExecutionReporter(Object argument_p)
Get execution reporter.

Parameters:
argument_p -
Returns:

invokePattern

public static Object invokePattern(String patternFullId_p,
                                   Object arguments_p)
Invoke identified pattern with given arguments.

Parameters:
patternFullId_p - the pattern full id.
arguments_p - a set of arguments, compatible with the pattern kind.
Returns:
The resulting content of the pattern invocation.

doRunPattern

public static Object doRunPattern(String patternFullId_p,
                                  Object arguments_p)
                           throws Exception
Do run identified pattern with given arguments_p.

Parameters:
patternFullId_p - the pattern full id.
arguments_p - a set of arguments, compatible with the pattern kind.
Returns:
The resulting content of the pattern execution.
Throws:
Exception - run failed.

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.