Skip navigation links
A B C D E G H I J M N O P R S T U W 

A

ArrayType<T> - Class in bayou.jtype
Array type.
ArrayType(JavaType<?>) - Constructor for class bayou.jtype.ArrayType
Create an array type for the component type.

B

bayou.jtype - package bayou.jtype
Representations of Java types.
bayou.od - package bayou.od
A simple library for Service Locator pattern.
bind(Class<T>) - Static method in class bayou.od.OD
To add a global binding.
bind(ClassType<T>) - Static method in class bayou.od.OD
To add a global binding.
bind(OD.Binding) - Static method in class bayou.od.OD
Add the binding to the global binding list.
bind(Class<T>) - Static method in class bayou.od.OD.Local
To add a local binding.
bind(ClassType<T>) - Static method in class bayou.od.OD.Local
To add a local binding.
bind(OD.Binding) - Static method in class bayou.od.OD.Local
Add the binding to the local binding list of the current thread.

C

ClassType<T> - Class in bayou.jtype
Class or interface type.
ClassType() - Constructor for class bayou.jtype.ClassType
For anonymous subclass to create type literal.
convertFrom(Type) - Static method in class bayou.jtype.JavaType

D

diamondInfer(ClassType<?>, Class<?>) - Static method in class bayou.jtype.TypeMath
Do diamond inference.
doCaptureConversion(ClassType<T1>) - Static method in class bayou.jtype.TypeMath
Perform capture conversion.

E

equals(Object) - Method in class bayou.jtype.ClassType
Whether this type is equal to another type.
equals(Object) - Method in class bayou.jtype.JavaType
Whether this type is equal to another type.
equals(Object) - Method in class bayou.jtype.NullType
Return true iff `obj` is also NullType.
equals(Object) - Method in class bayou.jtype.Wildcard
Whether this wildcard is equal to another wildcard.
extends_(Class<?>) - Static method in class bayou.jtype.Wildcard
Create a wildcard with an upper bound.
extends_(ReferenceType<?>) - Static method in class bayou.jtype.Wildcard
Create a wildcard with an upper bound.

G

get(Class<T>, Object...) - Static method in class bayou.od.OD
Lookup an object by (type,tags).
get(ClassType<T>, Object...) - Static method in class bayou.od.OD
Lookup an object by (type,tags).
get() - Method in interface bayou.od.OD.Supplier
 
getApplicableClasses() - Method in interface bayou.od.OD.Binding
Get all classes this Binding may apply to.
getBindings() - Static method in class bayou.od.OD.Local
Get the local binding list of the current thread.
getComponentType() - Method in class bayou.jtype.ArrayType
Get the component type of the array.
getDeclaringSite() - Method in class bayou.jtype.TypeVar
Where the type variable is declared.
getLowerBound() - Method in class bayou.jtype.TypeVar
The lower bound of the type variable.
getLowerBound() - Method in class bayou.jtype.Wildcard
Get the lower bound.
getMessage() - Method in exception bayou.od.OD.NotFoundException
 
getName() - Method in class bayou.jtype.TypeVar
Get the name of the type variable.
getSuperType(ClassType<?>, Class<?>) - Static method in class bayou.jtype.TypeMath
Get the supertype of `type` at the specified `superClass`.
getSuperTypes() - Method in class bayou.jtype.IntersectionType
Get the super types of the intersection.
getTags() - Method in exception bayou.od.OD.NotFoundException
The `tags` in OD.get(type,tags).
getTheClass() - Method in class bayou.jtype.ClassType
Get the class or interface of this type.
getTheClass() - Method in class bayou.jtype.PrimitiveType
The Class representing the primitive type, for example `boolean.class`.
getType() - Method in exception bayou.od.OD.NotFoundException
The `type` in OD.get(type,tags).
getTypeArgs() - Method in class bayou.jtype.ClassType
Get the type arguments.
getTypeVars() - Method in class bayou.jtype.ClassType
Get the type variables of the class/interface definition.
getUpperBound() - Method in class bayou.jtype.TypeVar
The upper bound of the type variable.
getUpperBound() - Method in class bayou.jtype.Wildcard
Get the upper bound.

H

hashCode() - Method in class bayou.jtype.ClassType
 
hashCode() - Method in class bayou.jtype.JavaType
 
hashCode() - Method in class bayou.jtype.Wildcard
 
hasWildcard() - Method in class bayou.jtype.ClassType
Whether any type argument is a wildcard.

I

INSTANCE - Static variable in class bayou.jtype.NullType
The singleton of NullType.
IntersectionType<T> - Class in bayou.jtype
Intersection type.
IntersectionType(ReferenceType<?>...) - Constructor for class bayou.jtype.IntersectionType
Create an intersection type.
isRawType() - Method in class bayou.jtype.ClassType
Whether this is a raw type.
isSubType(ReferenceType<?>, ReferenceType<?>) - Static method in class bayou.jtype.TypeMath
Test whether `typeA` is a subtype of `typeB`.

J

JavaType<T> - Class in bayou.jtype
Any Java type.

M

map(ClassType<T>, Object...) - Method in interface bayou.od.OD.Binding
Map (type,tags) to a supplier.

N

NullType - Class in bayou.jtype
The null type.

O

OBJECT - Static variable in class bayou.jtype.ClassType
The java.lang.Object type.
OD - Class in bayou.od
A Service Locator library.
OD.Binding - Interface in bayou.od
Binding of (type,tags)->supplier.
OD.BindingBuilder<T> - Class in bayou.od
Builder for creating bindings.
OD.Local - Class in bayou.od
Thread-local bindings.
OD.NotFoundException - Exception in bayou.od
Binding is not found for (type,tags).
OD.Predicate<T> - Interface in bayou.od
Similar to Predicate in Java 8.
OD.Supplier<T> - Interface in bayou.od
Similar to Supplier in Java 8.
of(Class<C>, TypeArg...) - Static method in class bayou.jtype.ClassType
Create a ClassType with the class and type arguments.
of(Class<C>, Class<?>...) - Static method in class bayou.jtype.ClassType
Create a ClassType with the class and type arguments.
of(Class<T>) - Static method in class bayou.jtype.ClassType
Create a ClassType representing the class.
of(Class<T>) - Static method in class bayou.jtype.PrimitiveType
Return the PrimitiveType representing the primitive type.

P

PrimitiveType<T> - Class in bayou.jtype
Primitive type.

R

ReferenceType<T> - Class in bayou.jtype
Reference type.

S

setBindings(List<OD.Binding>) - Static method in class bayou.od.OD.Local
Set the local binding list for the current thread.
super_(Class<?>) - Static method in class bayou.jtype.Wildcard
Create a wildcard with a lower bound.
super_(ReferenceType<?>) - Static method in class bayou.jtype.Wildcard
Create a wildcard with a lower bound.

T

tags(Object...) - Method in class bayou.od.OD.BindingBuilder
Specify exact-matching tags.
tagsMatch(OD.Predicate<Object[]>) - Method in class bayou.od.OD.BindingBuilder
Specify how tags will be matched.
test(T) - Method in interface bayou.od.OD.Predicate
 
to(T) - Method in class bayou.od.OD.BindingBuilder
Create a Binding to a single instance.
to(OD.Supplier<? extends T>) - Method in class bayou.od.OD.BindingBuilder
Create a Binding to a supplier of T.
to(Class<? extends T>) - Method in class bayou.od.OD.BindingBuilder
Create a Binding to an implementation class of T.
toString(boolean) - Method in class bayou.jtype.ArrayType
A textual description of the array type.
toString(boolean) - Method in class bayou.jtype.ClassType
 
toString(boolean) - Method in class bayou.jtype.IntersectionType
A textual description of the type.
toString(boolean) - Method in class bayou.jtype.JavaType
A textual description of the type.
toString() - Method in class bayou.jtype.JavaType
A textual description of the type.
toString(boolean) - Method in class bayou.jtype.NullType
Return "Null".
toString(boolean) - Method in class bayou.jtype.PrimitiveType
A textual description of the type.
toString(boolean) - Method in interface bayou.jtype.TypeArg
A textual description of the type argument.
toString(boolean) - Method in class bayou.jtype.Wildcard
A textual description of the wildcard.
toString() - Method in class bayou.jtype.Wildcard
A textual description of the wildcard.
TypeArg - Interface in bayou.jtype
Type argument.
TypeMath - Class in bayou.jtype
Containing some algorithms of Java types.
TypeVar<T> - Class in bayou.jtype
Type variable.

U

unbounded() - Static method in class bayou.jtype.Wildcard
Create an unbounded wildcard.

W

Wildcard - Class in bayou.jtype
Wildcard.
Wildcard(ReferenceType<?>, ReferenceType<?>) - Constructor for class bayou.jtype.Wildcard
Create a wildcard with bounds.
withTypeVars(Class<C>) - Static method in class bayou.jtype.ClassType
Create a ClassType, using type variables as type arguments.
A B C D E G H I J M N O P R S T U W 
Skip navigation links