public class PatternLanguageJvmModelInferrer
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 |
---|
PatternLanguageJvmModelInferrer() |
Modifier and Type | Method and Description |
---|---|
protected void |
_infer(PatternModel element,
org.eclipse.xtext.util.IAcceptor<org.eclipse.xtext.common.types.JvmDeclaredType> acceptor,
boolean isPrelinkingPhase)
Is called for each instance of the first argument's type contained in a resource.
|
void |
infer(org.eclipse.emf.ecore.EObject element,
org.eclipse.xtext.xbase.jvmmodel.IJvmDeclaredTypeAcceptor acceptor,
boolean isPrelinkingPhase) |
protected void _infer(PatternModel element, org.eclipse.xtext.util.IAcceptor<org.eclipse.xtext.common.types.JvmDeclaredType> acceptor, boolean isPrelinkingPhase)
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
public void infer(org.eclipse.emf.ecore.EObject element, org.eclipse.xtext.xbase.jvmmodel.IJvmDeclaredTypeAcceptor acceptor, boolean isPrelinkingPhase)
infer
in interface org.eclipse.xtext.xbase.jvmmodel.IJvmModelInferrer
infer
in class org.eclipse.xtext.xbase.jvmmodel.AbstractModelInferrer