io.sarl.sre.janus.internal
Class TypeHierarchyDictionary
@org.eclipse.xtext.xbase.lib.XbaseGenerated
final class TypeHierarchyDictionary
extends java.lang.Object
Dictionary of types in the hierarchy of a type.

This class is thread-safe.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Since:
0.14
Action Summary
Modifier and type Action and description
static java.lang.Iterable<T> exploreTypeHierarchy(Class<T>)
Explore the type hierarchy of the given type
static com.google.common.collect.ImmutableSet<E> getFlattenHierarchy(Class<T>)
Flattens a class's type hierarchy into a set of Class objects including all super-classes (transitively) and all interfaces implemented by these super-classes.
static com.google.common.collect.ImmutableSet<E> getFlattenHierarchy(Class<T>,Class<T>)
Flattens a class's type hierarchy into a set of Class objects including all super-classes (transitively) and all interfaces implemented by these super-classes.
Action Details
exploreTypeHierarchy(Class<T>)
def exploreTypeHierarchy(Class<T>) : java.lang.Iterable<T>
Explore the type hierarchy of the given type
Parameters:
concreteClass - the type to explore.
Returns:
the collection of super types.
getFlattenHierarchy(Class<T>)
def getFlattenHierarchy(Class<T>) : com.google.common.collect.ImmutableSet<E>
Flattens a class's type hierarchy into a set of Class objects including all super-classes (transitively) and all interfaces implemented by these super-classes.
Parameters:
concreteClass - the class you find the hierarchy
Returns:
the set of class in the hierarchy of the specified class
getFlattenHierarchy(Class<T>,Class<T>)
def getFlattenHierarchy(Class<T>,Class<T>) : com.google.common.collect.ImmutableSet<E>

with T

Flattens a class's type hierarchy into a set of Class objects including all super-classes (transitively) and all interfaces implemented by these super-classes.
Parameters:
concreteClass - the class you find the hierarchy
expectedType - the expected type that is used as the root type in the hierarchy.
Returns:
the set of class in the hierarchy of the specified class