EGF Engine
Release 0.1.0

org.eclipse.egf.pattern.ecore.condition
Interface IPatternCondition

All Known Implementing Classes:
AbstractPatternCondition

public interface IPatternCondition

Pattern condition interface.
Defines a static condition that the pattern parameters should meet so as to select elements for pattern matching.
The parameters instances that meet this condition at runtime are selected as potential entries for the pattern matching.
Internal purpose only.
The pattern framework automatically creates a new Java class implementing this interface for each new pattern that requires a condition between its parameters. The pattern developer is then asked to fill the generated 'check' method content for the condition definition. The framework automatically generates the content of the check(Object...) method, pointing to the check method filled by the developer.
Eventually, there is to be a merge when pattern parameters have changed between existing check code and new check method signature.


Method Summary
 boolean check(Object... parameters_p)
          Check that given parameters meet the pattern condition.
 void setContext(org.eclipse.egf.core.context.ProductionContext context_p)
          Set production context available for this condition.
 

Method Detail

check

boolean check(Object... parameters_p)
Check that given parameters meet the pattern condition.
The pattern condition is not supposed to be accessed from the Java code.
Instead use the pattern ui to get full details about the condition.

Parameters:
parameters_p -
Returns:

setContext

void setContext(org.eclipse.egf.core.context.ProductionContext context_p)
Set production context available for this condition.

Parameters:
context_p - the context to use as available one. null if none.

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.