org.eclipse.xtext.xbase.jvmmodel
Interface IJvmModelInferrer

All Known Implementing Classes:
IJvmModelInferrer.NullImpl, Xtend2JvmModelInferrer

public interface IJvmModelInferrer

The model inferrer adapts a given source object with a JvmDeclaredType that mimics the interface of the source object and its children.

Implementors have to traverse the given source object in inferJvmModel(EObject) and decide which types to create according to the state of the model.

Author:
Jan Koehnlein - Initial contribution and API
See Also:
IJvmModelAssociations, IJvmModelAssociator

Nested Class Summary
static class IJvmModelInferrer.NullImpl
          A null-implementation.
 
Method Summary
 java.util.List<? extends JvmDeclaredType> inferJvmModel(org.eclipse.emf.ecore.EObject sourceObject)
          Returns the list of inferred declared types for a given source object.
 

Method Detail

inferJvmModel

java.util.List<? extends JvmDeclaredType> inferJvmModel(org.eclipse.emf.ecore.EObject sourceObject)
Returns the list of inferred declared types for a given source object.

Returns:
the list of inferred types. May not be null.