congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
IncQueryEngine
Code IndexAdd Tabnine to your IDE (free)

How to use
IncQueryEngine
in
org.eclipse.incquery.runtime.api

Best Java code snippets using org.eclipse.incquery.runtime.api.IncQueryEngine (Showing top 4 results out of 315)

origin: org.eclipse.viatra/org.eclipse.viatra.emf.runtime

public EventDrivenTransformationBuilder setScope(EMFScope scope) throws IncQueryException {
  this.engine = IncQueryEngine.on(scope);
  return this;
}
origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage.emf

/**
 * Initializes the pattern matcher within an existing EMF-IncQuery engine.
 * If the pattern matcher is already constructed in the engine, only a
 * light-weight reference is returned. The match set will be incrementally
 * refreshed upon updates.
 * 
 * @param engine
 *            the existing EMF-IncQuery engine in which this matcher will be
 *            created.
 * @param querySpecification
 *            the query specification for which the matcher is to be
 *            constructed.
 * @throws IncQueryException
 *             if an error occurs during pattern matcher creation
 */
public static GenericPatternMatcher on(IncQueryEngine engine,
    GenericQuerySpecification querySpecification)
    throws IncQueryException {
  // check if matcher already exists
  GenericPatternMatcher matcher = engine
      .getExistingMatcher(querySpecification);
  if (matcher == null) {
    matcher = new GenericPatternMatcher(engine, querySpecification);
    // do not have to "put" it into engine.matchers,
    // reportMatcherInitialized() will take care of it
  }
  return matcher;
}
origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage.emf

/**
 * Initializes a pattern-specification mapping with the contents of an existing {@link IncQueryEngine}. </p>
 * <p>
 * <strong>Warning</strong> It is assumed that each query specification in the engine has a unique fqn - if the
 * assumption fails, the resulting map is unspecified.
 * 
 * @param engine
 */
public NameToSpecificationMap(IncQueryEngine engine) {
  this();
  for (IncQueryMatcher<?> matcher : engine.getCurrentMatchers()) {
    IQuerySpecification<?> specification = matcher.getSpecification();
    map.put(specification.getFullyQualifiedName(), specification);
  }
}

origin: org.eclipse.viatra/org.eclipse.viatra.emf.runtime

public static EventDrivenTransformationBuilder forScope(EMFScope scope) throws IncQueryException {
  return forEngine(IncQueryEngine.on(scope));
}

org.eclipse.incquery.runtime.apiIncQueryEngine

Most used methods

  • getCurrentMatchers
  • getExistingMatcher
  • on

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now