org.eclipse.xtext.xbase.jvmmodel
Class JvmModelAssociator.JvmDeclaredTypeAcceptor

java.lang.Object
  extended by org.eclipse.xtext.xbase.jvmmodel.JvmModelAssociator.JvmDeclaredTypeAcceptor
All Implemented Interfaces:
IJvmDeclaredTypeAcceptor, IJvmDeclaredTypeAcceptor.IPostIndexingInitializing<JvmDeclaredType>
Enclosing class:
JvmModelAssociator

public static class JvmModelAssociator.JvmDeclaredTypeAcceptor
extends java.lang.Object
implements IJvmDeclaredTypeAcceptor, IJvmDeclaredTypeAcceptor.IPostIndexingInitializing<JvmDeclaredType>


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.xbase.jvmmodel.IJvmDeclaredTypeAcceptor
IJvmDeclaredTypeAcceptor.IPostIndexingInitializing<T extends JvmDeclaredType>
 
Field Summary
 java.util.List<Pair<JvmDeclaredType,Procedures.Procedure1<? super JvmDeclaredType>>> later
           
 
Constructor Summary
JvmModelAssociator.JvmDeclaredTypeAcceptor(DerivedStateAwareResource resource)
           
 
Method Summary
<T extends JvmDeclaredType>
IJvmDeclaredTypeAcceptor.IPostIndexingInitializing<T>
accept(T type)
          Accepts a JvmDeclaredType with no container, to be added to the contents list of a Resource.
 void initializeLater(Procedures.Procedure1<? super JvmDeclaredType> lateInitialization)
          The passed procedure will be executed only if in post-indexing phase, and it is executed after all JvmDeclaredType are created and attached to the Resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

later

public java.util.List<Pair<JvmDeclaredType,Procedures.Procedure1<? super JvmDeclaredType>>> later
Constructor Detail

JvmModelAssociator.JvmDeclaredTypeAcceptor

public JvmModelAssociator.JvmDeclaredTypeAcceptor(DerivedStateAwareResource resource)
Method Detail

accept

public <T extends JvmDeclaredType> IJvmDeclaredTypeAcceptor.IPostIndexingInitializing<T> accept(T type)
Description copied from interface: IJvmDeclaredTypeAcceptor
Accepts a JvmDeclaredType with no container, to be added to the contents list of a Resource.

Specified by:
accept in interface IJvmDeclaredTypeAcceptor
Returns:
a IJvmDeclaredTypeAcceptor.IPostIndexingInitializing to provide a post-indexing initialization of the given type.

initializeLater

public void initializeLater(Procedures.Procedure1<? super JvmDeclaredType> lateInitialization)
Description copied from interface: IJvmDeclaredTypeAcceptor.IPostIndexingInitializing
The passed procedure will be executed only if in post-indexing phase, and it is executed after all JvmDeclaredType are created and attached to the Resource.

Specified by:
initializeLater in interface IJvmDeclaredTypeAcceptor.IPostIndexingInitializing<JvmDeclaredType>