org.eclipse.xtext.xtext
Class CurrentTypeFinder

java.lang.Object
  extended by org.eclipse.xtext.xtext.CurrentTypeFinder

public class CurrentTypeFinder
extends java.lang.Object

Author:
Sebastian Zarnekow - Initial contribution and API

Nested Class Summary
static class CurrentTypeFinder.Implementation
           
 
Constructor Summary
CurrentTypeFinder()
           
 
Method Summary
 org.eclipse.emf.ecore.EClassifier findCurrentTypeAfter(AbstractElement element)
          Find the type of the current variable after an AbstractElement was consumed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrentTypeFinder

public CurrentTypeFinder()
Method Detail

findCurrentTypeAfter

public org.eclipse.emf.ecore.EClassifier findCurrentTypeAfter(AbstractElement element)
Find the type of the current variable after an AbstractElement was consumed. If the AbstractElement will instantiate a new type (e.g. is an Action), the instantiated type will be returned. If the element may occur in a path that leads to an unassigned current element, null may be returned. If the element is optional and changes the type, this method will return the changed type as if the element were consumed.