public class VeplJvmModelInferrer
extends org.eclipse.xtext.xbase.jvmmodel.AbstractModelInferrer
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.
Constructor and Description |
---|
VeplJvmModelInferrer() |
Modifier and Type | Method and Description |
---|---|
protected void |
_infer(EventModel element,
org.eclipse.xtext.xbase.jvmmodel.IJvmDeclaredTypeAcceptor acceptor,
boolean isPreIndexingPhase)
The dispatch method
infer is called for each instance of the
given element's type that is contained in a resource. |
void |
infer(org.eclipse.emf.ecore.EObject element,
org.eclipse.xtext.xbase.jvmmodel.IJvmDeclaredTypeAcceptor acceptor,
boolean isPreIndexingPhase) |
protected void _infer(EventModel element, org.eclipse.xtext.xbase.jvmmodel.IJvmDeclaredTypeAcceptor acceptor, boolean isPreIndexingPhase)
infer
is called for each instance of the
given element's type that is contained in a resource.element
- the model to create one or more
declared
types
from.acceptor
- each created
type
without a container should be passed to the acceptor in order
get attached to the current resource. The acceptor's
accept(..)
method takes the constructed empty type for the
pre-indexing phase. This one is further initialized in the
indexing phase using the closure you pass to the returned
initializeLater(..)
.isPreIndexingPhase
- whether the method is called in a pre-indexing phase, i.e.
when the global index is not yet fully updated. You must not
rely on linking using the index if isPreIndexingPhase is
true
.public void infer(org.eclipse.emf.ecore.EObject element, org.eclipse.xtext.xbase.jvmmodel.IJvmDeclaredTypeAcceptor acceptor, boolean isPreIndexingPhase)
infer
in interface org.eclipse.xtext.xbase.jvmmodel.IJvmModelInferrer
infer
in class org.eclipse.xtext.xbase.jvmmodel.AbstractModelInferrer