| java.lang.Object | |
| ↳ | org.eclipse.sisu.inject.TypeArguments | 
Utility methods for dealing with generic type arguments.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static TypeLiteral[]<?> | get(TypeLiteral<?> typeLiteral) Get all type arguments from a generic type, for example  [Foo,Bar]fromMap<Foo,Bar>. | ||||||||||
| static TypeLiteral<?> | get(TypeLiteral<?> typeLiteral, int index) Get an indexed type argument from a generic type, for example  BarfromMap<Foo,Bar>. | ||||||||||
| static <T> Key<T> | implicitKey(Class<T> clazz) Creates a special binding key for the given implicit type. | ||||||||||
| static boolean | isAssignableFrom(TypeLiteral<?> superLiteral, TypeLiteral<?> subLiteral) Determines if the sub-type can be converted to the generic super-type via an identity or widening conversion. | ||||||||||
| static boolean | isConcrete(Class<?> clazz) Determines if the given raw type represents a concrete type. | ||||||||||
| static boolean | isConcrete(TypeLiteral<?> literal) Determines if the given generic type represents a concrete type. | ||||||||||
| static boolean | isImplicit(TypeLiteral<?> literal) Determines if the given generic type represents an implicit binding. | ||||||||||
| static boolean | isImplicit(Class<?> clazz) Determines if the given raw type represents an implicit binding. | ||||||||||
| [Expand] Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class
  java.lang.Object | |||||||||||
Get all type arguments from a generic type, for example [Foo,Bar] from Map<Foo,Bar>.
| typeLiteral | The generic type | 
|---|
Get an indexed type argument from a generic type, for example Bar from Map<Foo,Bar>.
| typeLiteral | The generic type | 
|---|---|
| index | The argument index | 
TypeLiteral<Object> if the given type is a raw class
Creates a special binding key for the given implicit type.
| clazz | The implicit type | 
|---|
Determines if the sub-type can be converted to the generic super-type via an identity or widening conversion.
| superLiteral | The generic super-type | 
|---|---|
| subLiteral | The generic sub-type | 
true if the sub-type can be converted to the generic super-type; otherwise falseDetermines if the given raw type represents a concrete type.
| clazz | The raw type | 
|---|
true if the raw type is concrete; otherwise false
Determines if the given generic type represents a concrete type.
| literal | The generic type | 
|---|
true if the generic type is concrete; otherwise false
Determines if the given generic type represents an implicit binding.
| literal | The generic type | 
|---|
true if the generic type is implicit; otherwise false
Determines if the given raw type represents an implicit binding.
| clazz | The raw type | 
|---|
true if the raw type is implicit; otherwise false