Class 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 Detail

      • RulesJvmModelInferrer

        public RulesJvmModelInferrer()
    • Method Detail

      • _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:
        element - - 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.
        isPreLinkingPhase - - 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 iPrelinkingPhase 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