Class RulesJvmModelInferrer

java.lang.Object
org.eclipse.xtext.xbase.jvmmodel.AbstractModelInferrer
org.openhab.core.model.script.jvmmodel.ScriptJvmModelInferrer
org.openhab.core.model.rule.jvmmodel.RulesJvmModelInferrer
All Implemented Interfaces:
org.eclipse.xtext.xbase.jvmmodel.IJvmModelInferrer

public class RulesJvmModelInferrer extends ScriptJvmModelInferrer

Infers a JVM model from the source model.

The JVM model should contain all elements that would appear in the Java code which is generated from the source model. Other models link against the JVM model rather than the source model.

Author:
Oliver Libutzki - Xtext 2.5.0 migration
  • Constructor Details

    • RulesJvmModelInferrer

      public RulesJvmModelInferrer()
  • Method Details

    • _infer

      protected void _infer(RuleModel ruleModel, org.eclipse.xtext.xbase.jvmmodel.IJvmDeclaredTypeAcceptor acceptor, boolean isPreIndexingPhase)
      Is called for each instance of the first argument's type contained in a resource.
      Parameters:
      ruleModel - the model to create one or more JvmDeclaredTypes from.
      acceptor - each created JvmDeclaredType without a container should be passed to the acceptor in order get attached to the current resource.
      isPreIndexingPhase - whether the method is called in a pre linking phase, i.e. when the global index isn't fully updated. You must not rely on linking using the index if isPreIndexingPhase is true
    • infer

      public void infer(org.eclipse.emf.ecore.EObject ruleModel, org.eclipse.xtext.xbase.jvmmodel.IJvmDeclaredTypeAcceptor acceptor, boolean isPreIndexingPhase)
      Specified by:
      infer in interface org.eclipse.xtext.xbase.jvmmodel.IJvmModelInferrer
      Overrides:
      infer in class ScriptJvmModelInferrer