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
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.xtext.xbase.jvmmodel.IJvmModelInferrer
org.eclipse.xtext.xbase.jvmmodel.IJvmModelInferrer.NullImpl
-
Field Summary
Fields inherited from class org.openhab.core.model.script.jvmmodel.ScriptJvmModelInferrer
VAR_INPUT, VAR_NEW_STATE, VAR_NEW_STATUS, VAR_PREVIOUS_STATE, VAR_PREVIOUS_STATUS, VAR_PRIVATE_CACHE, VAR_RECEIVED_COMMAND, VAR_RECEIVED_EVENT, VAR_SHARED_CACHE, VAR_TRIGGERING_CHANNEL, VAR_TRIGGERING_GROUP, VAR_TRIGGERING_GROUP_NAME, VAR_TRIGGERING_ITEM, VAR_TRIGGERING_ITEM_NAME, VAR_TRIGGERING_THING
Fields inherited from class org.eclipse.xtext.xbase.jvmmodel.AbstractModelInferrer
_annotationTypesBuilder, _typeReferenceBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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.void
infer
(org.eclipse.emf.ecore.EObject ruleModel, org.eclipse.xtext.xbase.jvmmodel.IJvmDeclaredTypeAcceptor acceptor, boolean isPreIndexingPhase) Methods inherited from class org.openhab.core.model.script.jvmmodel.ScriptJvmModelInferrer
_infer
Methods inherited from class org.eclipse.xtext.xbase.jvmmodel.AbstractModelInferrer
_infer
-
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 istrue
-
infer
public void infer(org.eclipse.emf.ecore.EObject ruleModel, org.eclipse.xtext.xbase.jvmmodel.IJvmDeclaredTypeAcceptor acceptor, boolean isPreIndexingPhase) - Specified by:
infer
in interfaceorg.eclipse.xtext.xbase.jvmmodel.IJvmModelInferrer
- Overrides:
infer
in classScriptJvmModelInferrer
-