Package | Description |
---|---|
bayou.jtype |
Representations of Java types.
|
bayou.od |
A simple library for Service Locator pattern.
|
Modifier and Type | Field and Description |
---|---|
static ClassType<Object> |
ClassType.OBJECT
The
java.lang.Object type. |
Modifier and Type | Method and Description |
---|---|
static ClassType<?> |
TypeMath.diamondInfer(ClassType<?> targetType,
Class<?> genericClass)
Do diamond inference.
|
static <T1,T2> ClassType<T2> |
TypeMath.doCaptureConversion(ClassType<T1> type)
Perform capture conversion.
|
static ClassType<?> |
TypeMath.getSuperType(ClassType<?> type,
Class<?> superClass)
Get the supertype of `type` at the specified `superClass`.
|
static <C,T extends C> ClassType<T> |
ClassType.of(Class<C> clazz,
Class<?>... typeArgs)
Create a ClassType with the class and type arguments.
|
static <C,T extends C> ClassType<T> |
ClassType.of(Class<C> clazz,
TypeArg... typeArgs)
Create a ClassType with the class and type arguments.
|
static <T> ClassType<T> |
ClassType.of(Class<T> clazz)
Create a ClassType representing the class.
|
static <C> ClassType<? extends C> |
ClassType.withTypeVars(Class<C> clazz)
Create a ClassType, using type variables as type arguments.
|
Modifier and Type | Method and Description |
---|---|
static ClassType<?> |
TypeMath.diamondInfer(ClassType<?> targetType,
Class<?> genericClass)
Do diamond inference.
|
static <T1,T2> ClassType<T2> |
TypeMath.doCaptureConversion(ClassType<T1> type)
Perform capture conversion.
|
static ClassType<?> |
TypeMath.getSuperType(ClassType<?> type,
Class<?> superClass)
Get the supertype of `type` at the specified `superClass`.
|
Modifier and Type | Method and Description |
---|---|
ClassType<?> |
OD.NotFoundException.getType()
The `type` in
OD.get(type,tags) . |
Modifier and Type | Method and Description |
---|---|
static <T> OD.BindingBuilder<T> |
OD.bind(ClassType<T> type)
To add a global binding.
|
static <T> OD.BindingBuilder<T> |
OD.Local.bind(ClassType<T> type)
To add a local binding.
|
static <T> T |
OD.get(ClassType<T> type,
Object... tags)
Lookup an object by (type,tags).
|
<T> OD.Supplier<? extends T> |
OD.Binding.map(ClassType<T> type,
Object... tags)
Map (type,tags) to a supplier.
|