org.eclipse.xtext.common.types.util
Class SuperTypeCollector

java.lang.Object
  extended by org.eclipse.xtext.common.types.util.SuperTypeCollector

public class SuperTypeCollector
extends java.lang.Object

Author:
Sebastian Zarnekow - Initial contribution and API, Sven Efftinge

Nested Class Summary
static class SuperTypeCollector.Implementation
           
static interface SuperTypeCollector.SuperTypeAcceptor
           
 
Constructor Summary
SuperTypeCollector()
           
SuperTypeCollector(TypesFactory factory)
           
 
Method Summary
 java.util.Set<java.lang.String> collectSuperTypeNames(JvmType type)
           
 java.util.Set<java.lang.String> collectSuperTypeNames(JvmTypeReference type)
           
 java.util.Set<JvmTypeReference> collectSuperTypes(JvmType type)
           
 java.util.Set<JvmTypeReference> collectSuperTypes(JvmTypeReference type)
           
 void collectSuperTypes(JvmTypeReference type, SuperTypeCollector.SuperTypeAcceptor acceptor)
           
 java.util.Set<JvmType> collectSuperTypesAsRawTypes(JvmTypeReference type)
           
 void doCollectSupertypeData(JvmTypeReference type, SuperTypeCollector.SuperTypeAcceptor acceptor)
           
 boolean isSuperType(JvmDeclaredType subType, JvmDeclaredType superType)
           
protected  JvmTypeReference newRef(JvmType type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuperTypeCollector

public SuperTypeCollector()

SuperTypeCollector

public SuperTypeCollector(TypesFactory factory)
Method Detail

newRef

protected JvmTypeReference newRef(JvmType type)

collectSuperTypes

public java.util.Set<JvmTypeReference> collectSuperTypes(JvmType type)

collectSuperTypes

public java.util.Set<JvmTypeReference> collectSuperTypes(JvmTypeReference type)

collectSuperTypes

public void collectSuperTypes(JvmTypeReference type,
                              SuperTypeCollector.SuperTypeAcceptor acceptor)

collectSuperTypeNames

public java.util.Set<java.lang.String> collectSuperTypeNames(JvmType type)

collectSuperTypesAsRawTypes

public java.util.Set<JvmType> collectSuperTypesAsRawTypes(JvmTypeReference type)

collectSuperTypeNames

public java.util.Set<java.lang.String> collectSuperTypeNames(JvmTypeReference type)

doCollectSupertypeData

public void doCollectSupertypeData(JvmTypeReference type,
                                   SuperTypeCollector.SuperTypeAcceptor acceptor)

isSuperType

public boolean isSuperType(JvmDeclaredType subType,
                           JvmDeclaredType superType)