public class EMFPatternLanguageJvmModelInferrer
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.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INVALID_PATTERN_MODEL_CODE |
static java.lang.String |
INVALID_TYPEREF_CODE |
static java.lang.String |
SPECIFICATION_BUILDER_CODE |
Constructor and Description |
---|
EMFPatternLanguageJvmModelInferrer() |
Modifier and Type | Method and Description |
---|---|
void |
infer(org.eclipse.emf.ecore.EObject model,
org.eclipse.xtext.xbase.jvmmodel.IJvmDeclaredTypeAcceptor acceptor,
boolean isPrelinkingPhase) |
void |
infer(Pattern pattern,
org.eclipse.xtext.xbase.jvmmodel.IJvmDeclaredTypeAcceptor acceptor,
SpecificationBuilder builder,
boolean isPrelinkingPhase)
Is called for each Pattern instance in a resource.
|
public static final java.lang.String INVALID_PATTERN_MODEL_CODE
public static final java.lang.String INVALID_TYPEREF_CODE
public static final java.lang.String SPECIFICATION_BUILDER_CODE
public void infer(Pattern pattern, org.eclipse.xtext.xbase.jvmmodel.IJvmDeclaredTypeAcceptor acceptor, SpecificationBuilder builder, boolean isPrelinkingPhase)
pattern
- - 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 this is true
public void infer(org.eclipse.emf.ecore.EObject model, 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