Index
All Classes and Interfaces|All Packages
A
- actualType(Type<?>) - Method in class org.microbean.type.Type.CdiSemantics
-
Returns
true
if and only if the suppliedType
represents an actual type, which the CDI specification implies, but does not explicitly state, is either a class, a parameterized type or a generic array type. - add(Type) - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.Throws an
UnsupportedOperationException
when invoked. - addAll(Collection<? extends Type>) - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.Throws an
UnsupportedOperationException
when invoked. - anyAssignable(Type, Collection<? extends Type>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing at least one of the types modeled by the suppliedpayloadTypes
is assignable to a reference bearing the type modeled by the suppliedreceiverType
, according to the assignability rules modeled by thisType.Semantics
instance. - anyAssignable(Type, Collection<? extends Type>, boolean) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing at least one of the types modeled by the suppliedpayloadTypes
is assignable to a reference bearing the type modeled by the suppliedreceiverType
, according to the assignability rules modeled by thisType.Semantics
instance. - anyAssignable(Type<X>, Collection<? extends Type<Y>>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing at least one of the types modeled by the suppliedpayloadTypes
is assignable to a reference bearing the type modeled by the suppliedreceiverType
, according to the assignability rules modeled by thisType.Semantics
instance. - arrayType() - Method in class org.microbean.type.Type
- assignable(Type, Type) - Static method in class org.microbean.type.JavaTypes
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadType
is assignable to a reference bearing the type modeled by the suppliedreceiverType
, according to the assignability rules modeled by theType.CovariantSemantics
class. - assignable(Type, Type) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadType
is assignable to a reference bearing the type modeled by the suppliedreceiverType
, according to the assignability rules modeled by thisType.Semantics
instance, and using no autoboxing. - assignable(Type, Type, boolean) - Static method in class org.microbean.type.JavaTypes
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadType
is assignable to a reference bearing the type modeled by the suppliedreceiverType
, according to the assignability rules modeled by theType.CovariantSemantics
class. - assignable(Type, Type, boolean) - Method in class org.microbean.type.Type.CdiSemantics
- assignable(Type, Type, boolean) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadType
is assignable to a reference bearing the type modeled by the suppliedreceiverType
, according to the assignability rules modeled by thisType.Semantics
instance, and using the specified autoboxing semantics. - assignable(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.InvariantSemantics
- assignable(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadType
is assignable to a reference bearing the type modeled by the suppliedreceiverType
, according to the assignability rules modeled by thisType.Semantics
instance.
B
- Bootstraps - Class in org.microbean.type
-
Bootstrap methods for invokedynamic situations.
- box(Type) - Static method in class org.microbean.type.JavaType
- box(Type) - Static method in class org.microbean.type.JavaTypes
-
Returns the supplied
Type
if it is not aClass
or if it is not primitive, or a boxed type representing it. - box(Type<? extends Type>) - Static method in class org.microbean.type.JavaType
-
Returns a boxed version of the supplied
Type
, if appropriate. - boxedTypes - Static variable in class org.microbean.type.JavaTypes
C
- CD_Bootstraps - Static variable in class org.microbean.type.Bootstraps
-
The
ClassDesc
representing this class. - CD_Constructor - Static variable in class org.microbean.type.ConstantDescs
-
A
ClassDesc
representingjava.lang.reflect.Constructor
. - CD_DefaultGenericArrayType - Static variable in class org.microbean.type.ConstantDescs
-
A
ClassDesc
representingorg.microbean.type.DefaultGenericArrayType
. - CD_DefaultParameterizedType - Static variable in class org.microbean.type.ConstantDescs
-
A
ClassDesc
representingorg.microbean.type.DefaultParameterizedType
. - CD_GenericArrayType - Static variable in class org.microbean.type.ConstantDescs
-
A
ClassDesc
representingjava.lang.reflect.GenericArrayType
. - CD_GenericDeclaration - Static variable in class org.microbean.type.ConstantDescs
-
A
ClassDesc
representingjava.lang.reflect.GenericDeclaration
. - CD_JavaType - Static variable in class org.microbean.type.ConstantDescs
-
A
ClassDesc
representingorg.microbean.type.JavaType
. - CD_LowerBoundedWildcardType - Static variable in class org.microbean.type.ConstantDescs
-
A
ClassDesc
representingorg.microbean.type.LowerBoundedWildcardType
. - CD_Member - Static variable in class org.microbean.type.ConstantDescs
-
A
ClassDesc
representingjava.lang.reflect.Member
. - CD_Method - Static variable in class org.microbean.type.ConstantDescs
-
A
ClassDesc
representingjava.lang.reflect.Method
. - CD_ParameterizedType - Static variable in class org.microbean.type.ConstantDescs
-
A
ClassDesc
representingjava.lang.reflect.ParameterizedType
. - CD_Type - Static variable in class org.microbean.type.ConstantDescs
-
A
ClassDesc
representingjava.lang.reflect.Type
. - CD_TypeVariable - Static variable in class org.microbean.type.ConstantDescs
-
A
ClassDesc
representingjava.lang.reflect.TypeVariable
. - CD_UnboundedWildcardType - Static variable in class org.microbean.type.ConstantDescs
-
A
ClassDesc
representingorg.microbean.type.UnboundedWildcardType
. - CD_UpperBoundedWildcardType - Static variable in class org.microbean.type.ConstantDescs
-
A
ClassDesc
representingorg.microbean.type.UpperBoundedWildcardType
. - CD_WildcardType - Static variable in class org.microbean.type.ConstantDescs
-
A
ClassDesc
representingorg.microbean.type.UpperBoundedWildcardType
. - CdiSemantics() - Constructor for class org.microbean.type.Type.CdiSemantics
-
Creates a new
Type.CdiSemantics
. - classIsAssignableFromClass(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadClass
is assignable to a reference bearing the type modeled by the suppliedreceiverClass
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadClass
models a Java class and not any other type, and if and only ifreceiverClass
models a Java class and not any other type. - classIsAssignableFromClass(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.VariantSemantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadClass
is assignable to a reference bearing the type modeled by the suppliedreceiverClass
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadClass
models a Java class and not any other type, and if and only ifreceiverClass
models a Java class and not any other type. - classIsAssignableFromGenericArrayType(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.CovariantSemantics
- classIsAssignableFromGenericArrayType(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadGenericArrayType
is assignable to a reference bearing the type modeled by the suppliedreceiverClass
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadGenericArrayType
models a Java generic array type and not any other type, and if and only ifreceiverClass
models a Java class and not any other type. - classIsAssignableFromParameterizedType(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.CdiSemantics
- classIsAssignableFromParameterizedType(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.CovariantSemantics
- classIsAssignableFromParameterizedType(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadClass
is assignable to a reference bearing the type modeled by the suppliedreceiverClass
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadParameterizedType
models a Java parameterized type and not any other type, and if and only ifreceiverClass
models a Java class and not any other type. - classIsAssignableFromTypeVariable(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.CovariantSemantics
- classIsAssignableFromTypeVariable(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadTypeVariable
is assignable to a reference bearing the type modeled by the suppliedreceiverClass
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadTypeVariable
models a Java type variable and not any other type, and if and only ifreceiverClass
models a Java class and not any other type. - classIsAssignableFromWildcardType(Type<X>, Type<Y>, boolean) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadWildcardType
is assignable to a reference bearing the type modeled by the suppliedreceiverClass
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadWildcardType
models a Java wildcard type and not any other type, and if and only ifreceiverClass
models a Java class and not any other type. - classOrInterfaceType() - Method in class org.microbean.type.Type
-
Returns
true
if and only if thisType
models a class or interface. - clear() - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.Throws an
UnsupportedOperationException
when invoked. - componentType() - Method in class org.microbean.type.JavaType
- componentType() - Method in class org.microbean.type.Type
-
Returns the component type of this
Type
, if there is one, ornull
if there is not. - computeDirectSupertypes() - Method in class org.microbean.type.JavaType
-
Returns an unmodifiable and immutable
List
of the computed direct supertypes of thisJavaType
, or an emptyList
if there are no direct supertypes. - computeDirectSupertypes() - Method in class org.microbean.type.Type
-
Returns an unmodifiable and immutable
List
of the direct supertypes of thisType
, or an emptyList
if there are no direct supertypes, or if thisType
implementation does not distinguish between direct and non-direct supertypes. - computeSupertypes() - Method in class org.microbean.type.Type
- ConstantDescs - Class in org.microbean.type
-
A utility class containing useful
ConstantDesc
s (primarilyClassDesc
s). - contains(Object) - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.
- CovariantSemantics() - Constructor for class org.microbean.type.Type.CovariantSemantics
-
Creates a new
Type.CovariantSemantics
. - customSupertyped() - Method in class org.microbean.type.Type
D
- DefaultGenericArrayType - Class in org.microbean.type
-
A
GenericArrayType
implementation. - DefaultGenericArrayType(Type) - Constructor for class org.microbean.type.DefaultGenericArrayType
-
Creates a new
DefaultGenericArrayType
. - DefaultParameterizedType - Class in org.microbean.type
-
A
ParameterizedType
implementation. - DefaultParameterizedType(ParameterizedType) - Constructor for class org.microbean.type.DefaultParameterizedType
-
Creates a new
DefaultParameterizedType
. - DefaultParameterizedType(Type, Type, Type) - Constructor for class org.microbean.type.DefaultParameterizedType
-
Creates a new
DefaultParameterizedType
. - DefaultParameterizedType(Type, Type, Type...) - Constructor for class org.microbean.type.DefaultParameterizedType
-
Creates a new
DefaultParameterizedType
. - DefaultParameterizedType(Type, Type, Type, Type) - Constructor for class org.microbean.type.DefaultParameterizedType
-
Creates a new
DefaultParameterizedType
. - DefaultParameterizedType(Type, Type, Type, Type, Type) - Constructor for class org.microbean.type.DefaultParameterizedType
-
Creates a new
DefaultParameterizedType
. - DefaultTypeVariable<T extends GenericDeclaration> - Class in org.microbean.type
-
A
TypeVariable
implementation. - DefaultTypeVariable(GenericDeclaration, String) - Constructor for class org.microbean.type.DefaultTypeVariable
-
Creates a new
DefaultTypeVariable
. - DefaultTypeVariable(GenericDeclaration, Predicate<? super TypeVariable<?>>) - Constructor for class org.microbean.type.DefaultTypeVariable
-
Creates a new
DefaultTypeVariable
. - DefaultTypeVariable(TypeVariable<? extends T>) - Constructor for class org.microbean.type.DefaultTypeVariable
-
Creates a new
DefaultTypeVariable
. - describeConstable() - Method in class org.microbean.type.DefaultGenericArrayType
- describeConstable() - Method in class org.microbean.type.DefaultParameterizedType
- describeConstable() - Method in class org.microbean.type.DefaultTypeVariable
- describeConstable() - Method in class org.microbean.type.JavaType
- describeConstable() - Method in class org.microbean.type.LowerBoundedWildcardType
- describeConstable() - Method in class org.microbean.type.UnboundedWildcardType
- describeConstable() - Method in class org.microbean.type.UpperBoundedWildcardType
- describeConstable(Type) - Static method in class org.microbean.type.JavaTypes
-
Returns an
Optional
containing the nominal descriptor in the form of aConstantDesc
for the suppliedType
, or an emptyOptional
if there is no such descriptor. - directSupertypes() - Method in class org.microbean.type.Type
- directSupertypes(Type) - Static method in class org.microbean.type.JavaTypes
-
Returns the direct supertypes of the supplied
Type
, provided that it is either aClass
, aParameterizedType
, aGenericArrayType
or aTypeVariable
. - directSupertypes(Type, Predicate<? super Type>) - Static method in class org.microbean.type.JavaTypes
-
Returns the direct supertypes of the supplied
Type
, provided that it is either aClass
, aParameterizedType
, aGenericArrayType
or aTypeVariable
. - DMHD_REFLECT_AS - Static variable in class org.microbean.type.ConstantDescs
-
A
DirectMethodHandleDesc
representingMethodHandles.reflectAs(Class, MethodHandle)
.
E
- emptyTypeArray() - Static method in class org.microbean.type.JavaTypes
-
Returns a
Type
array with a length of0
. - equals(Object) - Method in class org.microbean.type.LowerBoundedWildcardType
- equals(Object) - Method in class org.microbean.type.DefaultGenericArrayType
- equals(Object) - Method in class org.microbean.type.DefaultParameterizedType
- equals(Object) - Method in class org.microbean.type.DefaultTypeVariable
- equals(Object) - Method in class org.microbean.type.JavaType.Token
- equals(Object) - Method in class org.microbean.type.Type
- equals(Type, Type) - Static method in class org.microbean.type.JavaTypes
-
Tests two
Type
s for equality in a manner that is independent of their implementations. - equals(Type<?>, Type<?>) - Static method in class org.microbean.type.Type
- erase() - Method in class org.microbean.type.JavaType.Token
-
Returns the type erasure of this
JavaType.Token
's modeledType
, ornull
if erasing theType
would result in a non-Class
erasure (in which case the erasure is simply theType
itself), or if an erasure cannot be determined. - erase(Type) - Static method in class org.microbean.type.JavaTypes
-
Returns the type erasure for the supplied
Type
according to the rules of the Java Language Specification, section 4.6.
G
- genericArrayType() - Method in class org.microbean.type.Type
-
Returns
true
if and only if thisType
models a generic array type. - genericArrayTypeIsAssignableFromClass(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.CovariantSemantics
- genericArrayTypeIsAssignableFromClass(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadClass
is assignable to a reference bearing the type modeled by the suppliedreceiverGenericArrayType
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadClass
models a Java class and not any other type, and if and only ifreceiverGenericArrayType
models a generic array type and not any other type. - genericArrayTypeIsAssignableFromGenericArrayType(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadGenericArrayType
is assignable to a reference bearing the type modeled by the suppliedreceiverGenericArrayType
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadGenericArrayType
models a Java generic array type and not any other type, and if and only ifreceiverGenericArrayType
models a generic array type and not any other type. - genericArrayTypeIsAssignableFromGenericArrayType(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.VariantSemantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadGenericArrayType
is assignable to a reference bearing the type modeled by the suppliedreceiverGenericArrayType
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadGenericArrayType
models a generic array type and not any other type, and if and only ifreceiverGenericArrayType
models a generic array type and not any other type. - genericArrayTypeIsAssignableFromParameterizedType(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadParameterizedType
is assignable to a reference bearing the type modeled by the suppliedreceiverGenericArrayType
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadParameterizedType
models a Java parameterized type and not any other type, and if and only ifreceiverGenericArrayType
models a generic array type and not any other type. - genericArrayTypeIsAssignableFromTypeVariable(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadTypeVariable
is assignable to a reference bearing the type modeled by the suppliedreceiverGenericArrayType
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadTypeVariable
models a Java type variable and not any other type, and if and only ifreceiverGenericArrayType
models a generic array type and not any other type. - genericArrayTypeIsAssignableFromWildcardType(Type<X>, Type<Y>, boolean) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadWildcardType
is assignable to a reference bearing the type modeled by the suppliedreceiverGenericArrayType
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadWildcardType
models a Java wildcard type and not any other type, and if and only ifreceiverGenericArrayType
models a generic array type and not any other type. - getActualTypeArguments() - Method in class org.microbean.type.DefaultParameterizedType
- getAnnotatedBounds() - Method in class org.microbean.type.DefaultTypeVariable
- getAnnotation(Class<T>) - Method in class org.microbean.type.DefaultTypeVariable
- getAnnotations() - Method in class org.microbean.type.DefaultTypeVariable
- getAnnotationsByType(Class<T>) - Method in class org.microbean.type.DefaultTypeVariable
- getBounds() - Method in class org.microbean.type.DefaultTypeVariable
- getDeclaredAnnotation(Class<T>) - Method in class org.microbean.type.DefaultTypeVariable
- getDeclaredAnnotations() - Method in class org.microbean.type.DefaultTypeVariable
- getDeclaredAnnotationsByType(Class<T>) - Method in class org.microbean.type.DefaultTypeVariable
- getDelegate() - Method in class org.microbean.type.DefaultTypeVariable
-
Returns the
TypeVariable
thisDefaultTypeVariable
wraps. - getGenericComponentType() - Method in class org.microbean.type.DefaultGenericArrayType
- getGenericDeclaration() - Method in class org.microbean.type.DefaultTypeVariable
- getLowerBound() - Method in class org.microbean.type.LowerBoundedWildcardType
-
Returns the sole lower bound of this
AbstractWildcardType
, if there is one, ornull
. - getLowerBounds() - Method in class org.microbean.type.LowerBoundedWildcardType
- getName() - Method in class org.microbean.type.DefaultTypeVariable
- getOwnerType() - Method in class org.microbean.type.DefaultParameterizedType
- getRawType() - Method in class org.microbean.type.DefaultParameterizedType
- getTypeVariable(GenericDeclaration, String) - Static method in class org.microbean.type.Bootstraps
-
Returns a
TypeVariable
with a name equal to the suppliedname
and that is declared by the suppliedGenericDeclaration
, ornull
if there is no suchTypeVariable
. - getUpperBound() - Method in class org.microbean.type.LowerBoundedWildcardType
-
Returns the sole upper bound of this
AbstractWildcardType
. - getUpperBounds() - Method in class org.microbean.type.LowerBoundedWildcardType
H
- hashCode() - Method in class org.microbean.type.LowerBoundedWildcardType
- hashCode() - Method in class org.microbean.type.DefaultGenericArrayType
- hashCode() - Method in class org.microbean.type.DefaultParameterizedType
- hashCode() - Method in class org.microbean.type.DefaultTypeVariable
- hashCode() - Method in class org.microbean.type.JavaType.Token
- hashCode() - Method in class org.microbean.type.Type
- hashCode(Type) - Static method in class org.microbean.type.JavaTypes
-
Computes and returns a hashcode for the supplied
Type
independent of its implementation. - hashCode(Type<?>) - Static method in class org.microbean.type.Type
-
Returns a hashcode for the supplied
Type
, independent of its particular implementation of theObject.hashCode()
method. - hasParameters() - Method in interface org.microbean.type.Owner
- hasParameters() - Method in class org.microbean.type.Type
-
Returns
false
when invoked sinceType
s don't have parameters (unlikeOwner
s representingexecutables
). - hasTypeArguments() - Method in class org.microbean.type.JavaType
-
Returns
true
if and only if thisType
represents aParameterizedType
by virtue of having type arguments. - hasTypeArguments() - Method in class org.microbean.type.Type
-
Returns
true
if and only if thisType
represents a parameterized type by virtue of having type arguments. - hasTypeParameters() - Method in class org.microbean.type.JavaType
-
Returns
true
if and only if thisJavaType
represents a genericClass
by virtue of having type parameters. - hasTypeParameters() - Method in interface org.microbean.type.Owner
-
Returns
true
if and only if thisOwner
represents a generic class or a generic executable by virtue of having type parameters. - hasTypeParameters() - Method in class org.microbean.type.Type
-
Returns
true
if and only if thisType
represents a generic class by virtue of having type parameters.
I
- INSTANCE - Static variable in class org.microbean.type.Type.CdiSemantics
-
An instance of
Type.CdiSemantics
. - INSTANCE - Static variable in class org.microbean.type.Type.CovariantSemantics
-
A convenient instance of
Type.CovariantSemantics
. - INSTANCE - Static variable in class org.microbean.type.Type.InvariantSemantics
-
An instance of
Type.InvariantSemantics
. - INSTANCE - Static variable in class org.microbean.type.UnboundedWildcardType
-
The sole instance of this class.
- interfaceType() - Method in class org.microbean.type.JavaType
- interfaceType() - Method in class org.microbean.type.Type
- interfaceType(Type<Type>) - Static method in class org.microbean.type.JavaType
- interfaceTypes() - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.
- InvariantSemantics() - Constructor for class org.microbean.type.Type.InvariantSemantics
-
Creates a new
Type.InvariantSemantics
. - isAnnotationPresent(Class<? extends Annotation>) - Method in class org.microbean.type.DefaultTypeVariable
- isEmpty() - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.
- iterator() - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.
J
- javaType() - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.
- javaType(boolean) - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.
- JavaType - Class in org.microbean.type
- JavaType(boolean, Type) - Constructor for class org.microbean.type.JavaType
-
Creates a new
JavaType
. - JavaType(boolean, List<?>) - Constructor for class org.microbean.type.JavaType
-
Creates a new
JavaType
that models custom supertypes. - JavaType.Token<T> - Class in org.microbean.type
-
A holder of a
Type
that embodies Gafter's gadget. - javaTypeIterator() - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.
- javaTypeList() - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.
- JavaTypes - Class in org.microbean.type
-
A utility class providing useful operations related to Java
Type
s. - javaTypeSet() - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.
- JavaTypeSet - Class in org.microbean.type
-
Deprecated.
- javaTypeSpliterator() - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.
- javaTypeStream() - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.
L
- load(ClassLoader) - Method in class org.microbean.type.JavaType
-
Calls the
Type.object()
method and returns the result. - load(ClassLoader) - Method in class org.microbean.type.Type
-
Converts this
Type
to ajava.lang.reflect.Type
, loading it if necessary, possibly by using the suppliedClassLoader
, and returns it. - lowerBounded() - Method in class org.microbean.type.JavaType
- lowerBounded() - Method in class org.microbean.type.Type
-
Returns
true
if and only if thisType
represents a wildcard type with a lower bound. - LowerBoundedWildcardType - Class in org.microbean.type
-
A
WildcardType
implementation that has only lower bounds. - LowerBoundedWildcardType(Type) - Constructor for class org.microbean.type.LowerBoundedWildcardType
-
Creates a new
LowerBoundedWildcardType
. - LowerBoundedWildcardType(Type...) - Constructor for class org.microbean.type.LowerBoundedWildcardType
-
Creates a new
LowerBoundedWildcardType
. - LowerBoundedWildcardType(WildcardType) - Constructor for class org.microbean.type.LowerBoundedWildcardType
-
Creates a new
LowerBoundedWildcardType
. - lowerBounds() - Method in class org.microbean.type.JavaType
-
Returns an unmodifiable
List
of thisJavaType
's lower bounds. - lowerBounds() - Method in class org.microbean.type.Type
-
Returns an unmodifiable
List
of thisType
's lower bounds.
M
- mostSpecialized(Predicate<? super Type<T>>) - Method in class org.microbean.type.Type
-
Returns a
Type
, selected from thisType
's supertypes, that is the most specialized of those supertypes and that passes the test represented by the suppliedPredicate
. - mostSpecializedInterfaceType() - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.
- mostSpecializedNonInterfaceType() - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.
N
- name() - Method in class org.microbean.type.JavaType
-
Returns the name of this
JavaType
if it has one ornull
if it does not. - name() - Method in interface org.microbean.type.Owner
-
Returns the name of this
Owner
if it has one ornull
if it does not. - name() - Method in class org.microbean.type.Type
-
Returns the name of this
Type
if it has one ornull
if it does not. - named() - Method in class org.microbean.type.JavaType
-
Returns
true
if and only if thisJavaType
represents a Java type that has a name. - named() - Method in interface org.microbean.type.Owner
-
Returns
true
if and only if thisOwner
represents either a Java type that has a name, or an executable. - named() - Method in class org.microbean.type.Type
-
Returns
true
if and only if thisType
represents a Java type that has a name. - nonGenericArrayType() - Method in class org.microbean.type.Type
-
Returns
true
if and only if thisType
models a non-generic array type. - nonInterfaceType(Type<Type>) - Static method in class org.microbean.type.JavaType
-
Returns
true
if and only if the type erasure of the suppliedType
's modeled type is not an interface. - nonInterfaceTypes() - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.Returns a new
JavaTypeSet
containing only theType
s that are not interface types from thisJavaTypeSet
.
O
- object() - Method in interface org.microbean.type.Owner
-
Returns the object this
Owner
is modeling, ornull
if that information is not supplied by the implementation. - object() - Method in class org.microbean.type.Type
-
Returns the object supplied at construction time that is the type this
Type
is representing, ornull
if this information is not available, or if thisType
represents a collection of custom supertypes. - objectEquals(Object) - Method in class org.microbean.type.JavaType
- objectEquals(Object) - Method in interface org.microbean.type.Owner
- of() - Static method in class org.microbean.type.JavaTypeSet
-
Deprecated.Returns an empty
JavaTypeSet
. - of(boolean, Type) - Static method in class org.microbean.type.JavaType
-
Returns a
JavaType
suitable for the supplied arguments. - of(boolean, JavaType.Token<?>) - Static method in class org.microbean.type.JavaType
-
Returns a
JavaType
suitable for the supplied arguments. - of(boolean, Type<? extends Type>) - Static method in class org.microbean.type.JavaType
-
Returns a
JavaType
suitable for the supplied arguments. - of(GenericArrayType) - Static method in class org.microbean.type.DefaultGenericArrayType
-
If the supplied
GenericArrayType
is aDefaultGenericArrayType
, returns it; otherwise creates a newDefaultGenericArrayType
with the suppliedGenericArrayType
's generic component type and returns it. - of(ParameterizedType) - Static method in class org.microbean.type.DefaultParameterizedType
-
If the supplied
ParameterizedType
is aDefaultParameterizedType
, returns it; otherwise creates a newDefaultParameterizedType
with the suppliedParameterizedType
's owner type, raw type and type arguments and returns it. - of(Type) - Static method in class org.microbean.type.JavaType
-
Returns a
JavaType
suitable for the supplied arguments. - of(Type) - Static method in class org.microbean.type.JavaTypeSet
-
Deprecated.Returns a
JavaTypeSet
whose sole element models the suppliedType
. - of(Type...) - Static method in class org.microbean.type.JavaTypeSet
-
Deprecated.Returns a
JavaTypeSet
whose elements are modeled by the suppliedType
s. - of(Type, Type) - Static method in class org.microbean.type.JavaTypeSet
-
Deprecated.Returns a
JavaTypeSet
whose elements are modeled by the suppliedType
s. - of(TypeVariable<T>) - Static method in class org.microbean.type.DefaultTypeVariable
-
Returns a
DefaultTypeVariable
representing the suppliedTypeVariable
. - of(WildcardType) - Static method in class org.microbean.type.LowerBoundedWildcardType
-
If the supplied
WildcardType
is aLowerBoundedWildcardType
, returns it; otherwise creates a newLowerBoundedWildcardType
with the suppliedWildcardType
's upper bounds and lower bounds and returns it. - of(WildcardType) - Static method in class org.microbean.type.UpperBoundedWildcardType
-
If the supplied
WildcardType
is aUpperBoundedWildcardType
, returns it; otherwise creates a newUpperBoundedWildcardType
with the suppliedWildcardType
's upper bounds and returns it. - of(Collection<?>) - Static method in class org.microbean.type.JavaTypeSet
-
Deprecated.Returns a
JavaTypeSet
whose elements are drawn from the suppliedCollection
, in its iteration order. - of(JavaType.Token<?>) - Static method in class org.microbean.type.JavaType
-
Returns a
JavaType
suitable for the supplied arguments. - of(Type<? extends Type>) - Static method in class org.microbean.type.JavaType
-
Returns a
JavaType
suitable for the supplied arguments. - of(Type<? extends Type>) - Static method in class org.microbean.type.JavaTypeSet
-
Deprecated.Returns a
JavaTypeSet
whose sole element is the suppliedType
. - of(Type<? extends Type>...) - Static method in class org.microbean.type.JavaTypeSet
-
Deprecated.Returns a
JavaTypeSet
whose elements are modeled by the suppliedType
s. - of(Type<? extends Type>, Type<? extends Type>) - Static method in class org.microbean.type.JavaTypeSet
-
Deprecated.Returns a
JavaTypeSet
whose elements are the suppliedType
s. - ofExactly(boolean, Object...) - Static method in class org.microbean.type.JavaType
-
Returns a custom supertyped
JavaType
suitable for the supplied arguments. - ofExactly(boolean, Type) - Static method in class org.microbean.type.JavaType
-
Returns a custom supertyped
JavaType
suitable for the supplied arguments. - ofExactly(boolean, List<?>) - Static method in class org.microbean.type.JavaType
-
Returns a custom supertyped
JavaType
suitable for the supplied arguments. - ofExactly(boolean, JavaType.Token<?>) - Static method in class org.microbean.type.JavaType
-
Returns a custom supertyped
JavaType
suitable for the supplied arguments. - ofExactly(Object...) - Static method in class org.microbean.type.JavaType
-
Returns a custom supertyped
JavaType
suitable for the supplied arguments. - ofExactly(Type) - Static method in class org.microbean.type.JavaType
-
Returns a custom supertyped
JavaType
suitable for the supplied arguments. - ofExactly(List<?>) - Static method in class org.microbean.type.JavaType
-
Returns a custom supertyped
JavaType
suitable for the supplied arguments. - ofExactly(JavaType.Token<?>) - Static method in class org.microbean.type.JavaType
-
Returns a custom supertyped
JavaType
suitable for the supplied arguments. - ofSupertypes(Type) - Static method in class org.microbean.type.JavaTypeSet
-
Deprecated.Returns a
JavaTypeSet
whose elements are the supertypes of the suppliedType
(which include the suppliedType
itself). - ofSupertypes(Type, Predicate<? super Type>) - Static method in class org.microbean.type.JavaTypeSet
-
Deprecated.Returns a
JavaTypeSet
whose elements are the supertypes of the suppliedType
(which include the suppliedType
itself), gated by the suppliedPredicate
. - ofSupertypes(Type<? extends Type>) - Static method in class org.microbean.type.JavaTypeSet
-
Deprecated.Returns a
JavaTypeSet
whose elements are the supertypes of theType
modeled by the suppliedType
(which include the modeledType
itself). - ofSupertypes(Type<? extends Type>, Predicate<? super Type>) - Static method in class org.microbean.type.JavaTypeSet
-
Deprecated.Returns a
JavaTypeSet
whose elements are the supertypes of theType
modeled by the suppliedType
(which include the modeledType
itself). - org.microbean.type - module org.microbean.type
-
Provides packages related to type systems.
- org.microbean.type - package org.microbean.type
-
Provides classes and interfaces related to Java
Type
instances. - owner() - Method in class org.microbean.type.JavaType
- owner() - Method in interface org.microbean.type.Owner
- owner() - Method in class org.microbean.type.Type
- Owner<T> - Interface in org.microbean.type
-
An interface whose implementations skeletally represent a Java type or a Java executable for equality comparison purposes and no other.
P
- parameterizedType() - Method in class org.microbean.type.Type
-
Returns
true
if and only if thisType
models a parameterized type. - parameterizedTypeIsAssignableFromClass(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.CdiSemantics
- parameterizedTypeIsAssignableFromClass(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.CovariantSemantics
- parameterizedTypeIsAssignableFromClass(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadClass
is assignable to a reference bearing the type modeled by the suppliedreceiverParameterizedType
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadClass
models a Java class and not any other type, and if and only ifreceiverParameterizedType
models a parameterized type and not any other type. - parameterizedTypeIsAssignableFromGenericArrayType(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadGenericArrayType
is assignable to a reference bearing the type modeled by the suppliedreceiverParameterizedType
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadGenericArrayType
models a Java generic array type and not any other type, and if and only ifreceiverParameterizedType
models a parameterized type and not any other type. - parameterizedTypeIsAssignableFromParameterizedType(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.CdiSemantics
- parameterizedTypeIsAssignableFromParameterizedType(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.CovariantSemantics
- parameterizedTypeIsAssignableFromParameterizedType(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadParameterizedType
is assignable to a reference bearing the type modeled by the suppliedreceiverParameterizedType
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadParameterizedType
models a Java parameterized type and not any other type, and if and only ifreceiverParameterizedType
models a parameterized type and not any other type. - parameterizedTypeIsAssignableFromTypeVariable(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.CovariantSemantics
- parameterizedTypeIsAssignableFromTypeVariable(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadTypeVariable
is assignable to a reference bearing the type modeled by the suppliedreceiverParameterizedType
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadTypeVariable
models a Java type variable and not any other type, and if and only ifreceiverParameterizedType
models a parameterized type and not any other type. - parameterizedTypeIsAssignableFromWildcardType(Type<X>, Type<Y>, boolean) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadWildcardType
is assignable to a reference bearing the type modeled by the suppliedreceiverParameterizedType
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadWildcardType
models a Java wildcard type and not any other type, and if and only ifreceiverParameterizedType
models a parameterized type and not any other type. - parameters() - Method in interface org.microbean.type.Owner
-
Returns an unmodifiable
List
of thisOwner
's parameters, if thisOwner
represents an executable, ornull
if it does not. - parameters() - Method in class org.microbean.type.Type
-
Returns
null
when invoked sinceType
s don't have parameters (unlikeOwner
s representingexecutables
).
R
- remove(Object) - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.Throws an
UnsupportedOperationException
when invoked. - removeAll(Collection<?>) - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.Throws an
UnsupportedOperationException
when invoked. - retainAll(Collection<?>) - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.Throws an
UnsupportedOperationException
when invoked.
S
- Semantics() - Constructor for class org.microbean.type.Type.Semantics
-
Creates a new
Type.Semantics
. - size() - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.
- spliterator() - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.
- stream() - Method in class org.microbean.type.JavaTypeSet
-
Deprecated.
- subtypeOf(Type<?>) - Method in class org.microbean.type.Type
- supertype(Type, Type) - Static method in class org.microbean.type.JavaTypes
-
Returns
true
if and only ifsup
is a supertype ofsub
. - supertype(Type, Type, Predicate<? super Type>) - Static method in class org.microbean.type.JavaTypes
-
Returns
true
if and only ifsup
is a supertype ofsub
. - supertypeOf(Type<?>) - Method in class org.microbean.type.Type
- supertypes() - Method in class org.microbean.type.Type
- supertypes(Type) - Static method in class org.microbean.type.JavaTypes
-
Returns the supertypes of the supplied
Type
, provided that it is either aClass
, aParameterizedType
, aGenericArrayType
or aTypeVariable
. - supertypes(Type, Predicate<? super Type>) - Static method in class org.microbean.type.JavaTypes
-
Returns the supertypes of the supplied
Type
, provided that it is either aClass
, aParameterizedType
, aGenericArrayType
or aTypeVariable
.
T
- Token() - Constructor for class org.microbean.type.JavaType.Token
-
Creates a new
JavaType.Token
. - top() - Method in class org.microbean.type.JavaType
- top() - Method in class org.microbean.type.Type
-
Returns
true
if and only if thisType
represents the uppermost reference type in the type system. - toString() - Method in class org.microbean.type.LowerBoundedWildcardType
- toString() - Method in class org.microbean.type.DefaultGenericArrayType
- toString() - Method in class org.microbean.type.DefaultParameterizedType
- toString() - Method in class org.microbean.type.DefaultTypeVariable
- toString() - Method in class org.microbean.type.JavaType.Token
-
Returns a
String
representation of thisJavaType.Token
. - toString(Type) - Static method in class org.microbean.type.JavaTypes
- type() - Method in class org.microbean.type.JavaType.Token
-
Returns the
Type
modeled by thisJavaType.Token
. - type() - Method in class org.microbean.type.JavaType
-
If this
JavaType
represents aParameterizedType
or aGenericArrayType
returns aJavaType
representing its raw type or generic component type, or, if thisJavaType
does not represent aParameterizedType
or aGenericArrayType
, returnsthis
. - type() - Method in interface org.microbean.type.Owner
-
If this
Owner
represents a parameterized type or a generic array type, returns aType
representing its raw type or generic component type, or, if thisOwner
represents an constructor, returns aType
representingvoid
orVoid
, or, if thisOwner
represents a method, returns aType
representing its generic return type, or returnsthis
(theOwner
in this case will be known to be aType
). - type() - Method in class org.microbean.type.Type
- Type<T> - Class in org.microbean.type
-
A value-like object representing a (Java-like) type for purposes of testing assignability.
- Type(List<? extends Type<T>>) - Constructor for class org.microbean.type.Type
-
Creates a new
Type
that models custom supertypes. - Type(T) - Constructor for class org.microbean.type.Type
-
Creates a new
Type
. - Type.CdiSemantics - Class in org.microbean.type
-
A
Type.VariantSemantics
implementation that implements the rules of typesafe resolution. - Type.CovariantSemantics - Class in org.microbean.type
-
A
Type.VariantSemantics
implementation that implements Java type assignability semantics, which are covariant. - Type.InvariantSemantics - Class in org.microbean.type
-
A
Type.VariantSemantics
implementation that does not permit subtyping, but that compares wildcard types covariantly. - Type.Semantics - Class in org.microbean.type
-
An abstract embodiment of
Type
assignability rules. - Type.VariantSemantics - Class in org.microbean.type
-
An abstract partial
Type.Semantics
that permits subtyping. - typeArguments() - Method in class org.microbean.type.JavaType
-
Returns an unmodifiable
List
of thisJavaType
's type arguments. - typeArguments() - Method in class org.microbean.type.Type
-
Returns an unmodifiable
List
of thisType
's type arguments. - typeParameters() - Method in class org.microbean.type.JavaType
-
Returns an unmodifiable
List
of thisJavaType
's type parameters. - typeParameters() - Method in interface org.microbean.type.Owner
-
Returns an unmodifiable
List
of thisOwner
's type parameters. - typeParameters() - Method in class org.microbean.type.Type
-
Returns an unmodifiable
List
of thisType
's type parameters. - typeVariable() - Method in class org.microbean.type.Type
-
Returns
true
if and only if thisType
models a type variable. - typeVariableIsAssignableFromClass(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadClass
is assignable to a reference bearing the type modeled by the suppliedreceiverTypeVariable
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadClass
models a Java class and not any other type, and if and only ifreceiverTypeVariable
models a type variable and not any other type. - typeVariableIsAssignableFromGenericArrayType(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadGenericArrayType
is assignable to a reference bearing the type modeled by the suppliedreceiverTypeVariable
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadGenericArrayType
models a Java generic array type and not any other type, and if and only ifreceiverTypeVariable
models a type variable and not any other type. - typeVariableIsAssignableFromParameterizedType(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadParameterizedType
is assignable to a reference bearing the type modeled by the suppliedreceiverTypeVariable
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadParameterizedType
models a Java parameterized type and not any other type, and if and only ifreceiverTypeVariable
models a type variable and not any other type. - typeVariableIsAssignableFromTypeVariable(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.CovariantSemantics
- typeVariableIsAssignableFromTypeVariable(Type<X>, Type<Y>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadTypeVariable
is assignable to a reference bearing the type modeled by the suppliedreceiverTypeVariable
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadTypeVariable
models a Java type variable and not any other type, and if and only ifreceiverTypeVariable
models a type variable and not any other type. - typeVariableIsAssignableFromWildcardType(Type<X>, Type<Y>, boolean) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadWildcardType
is assignable to a reference bearing the type modeled by the suppliedreceiverTypeVariable
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadWildcardType
models a Java wildcard type and not any other type, and if and only ifreceiverTypeVariable
models a type variable and not any other type.
U
- UnboundedWildcardType - Class in org.microbean.type
- upperBounded() - Method in class org.microbean.type.JavaType
- upperBounded() - Method in class org.microbean.type.Type
-
Returns
true
if and only if thisType
represents either a type variable or a wildcard type. - UpperBoundedWildcardType - Class in org.microbean.type
-
A
WildcardType
implementation that has only upper bounds. - UpperBoundedWildcardType(Type) - Constructor for class org.microbean.type.UpperBoundedWildcardType
-
Creates a new
UpperBoundedWildcardType
. - UpperBoundedWildcardType(Type...) - Constructor for class org.microbean.type.UpperBoundedWildcardType
-
Creates a new
UpperBoundedWildcardType
. - UpperBoundedWildcardType(WildcardType) - Constructor for class org.microbean.type.UpperBoundedWildcardType
-
Creates a new
UpperBoundedWildcardType
. - upperBounds() - Method in class org.microbean.type.JavaType
-
Returns an unmodifiable
List
of thisJavaType
's upper bounds. - upperBounds() - Method in class org.microbean.type.Type
-
Returns an unmodifiable
List
of thisType
's upper bounds.
V
- VariantSemantics() - Constructor for class org.microbean.type.Type.VariantSemantics
-
Creates a new
Type.VariantSemantics
.
W
- wildcard() - Method in class org.microbean.type.Type
-
Returns
true
if and only if thisType
models a wildcard type. - wildcardTypeIsAssignableFromClass(Type<X>, boolean, Type<Y>) - Method in class org.microbean.type.Type.CovariantSemantics
- wildcardTypeIsAssignableFromClass(Type<X>, boolean, Type<Y>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadClass
is assignable to a reference bearing the type modeled by the suppliedreceiverWildcardType
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadClass
models a Java class and not any other type, and if and only ifreceiverWildcardType
models a wildcard type and not any other type. - wildcardTypeIsAssignableFromGenericArrayType(Type<X>, boolean, Type<Y>) - Method in class org.microbean.type.Type.CovariantSemantics
- wildcardTypeIsAssignableFromGenericArrayType(Type<X>, boolean, Type<Y>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadGenericArrayType
is assignable to a reference bearing the type modeled by the suppliedreceiverWildcardType
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadGenericArrayType
models a Java generic array type and not any other type, and if and only ifreceiverWildcardType
models a wildcard type and not any other type. - wildcardTypeIsAssignableFromParameterizedType(Type<X>, boolean, Type<Y>) - Method in class org.microbean.type.Type.CovariantSemantics
- wildcardTypeIsAssignableFromParameterizedType(Type<X>, boolean, Type<Y>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadParameterizedType
is assignable to a reference bearing the type modeled by the suppliedreceiverWildcardType
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadParameterizedType
models a Java parameterized type and not any other type, and if and only ifreceiverWildcardType
models a wildcard type and not any other type. - wildcardTypeIsAssignableFromTypeVariable(Type<X>, boolean, Type<Y>) - Method in class org.microbean.type.Type.CovariantSemantics
- wildcardTypeIsAssignableFromTypeVariable(Type<X>, boolean, Type<Y>) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadTypeVariable
is assignable to a reference bearing the type modeled by the suppliedreceiverWildcardType
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadTypeVariable
models a Java type variable and not any other type, and if and only ifreceiverWildcardType
models a wildcard type and not any other type. - wildcardTypeIsAssignableFromWildcardType(Type<X>, boolean, Type<Y>, boolean) - Method in class org.microbean.type.Type.CovariantSemantics
- wildcardTypeIsAssignableFromWildcardType(Type<X>, boolean, Type<Y>, boolean) - Method in class org.microbean.type.Type.Semantics
-
Returns
true
if and only if a reference bearing the type modeled by the suppliedpayloadWildcardType
is assignable to a reference bearing the type modeled by the suppliedreceiverWildcardType
, according to the assignability rules modeled by thisType.Semantics
instance, and if and only ifpayloadWildcardType
models a Java wildcard type and not any other type, and if and only ifreceiverWildcardType
models a wildcard type and not any other type. - withBox(boolean) - Method in class org.microbean.type.JavaType
-
Returns a
JavaType
, usually new, whose boxing strategy is modeled by the suppliedboolean
. - withObject(Type) - Method in class org.microbean.type.JavaType
- withObject(T) - Method in class org.microbean.type.Type
All Classes and Interfaces|All Packages
Type
instances can can be compared for equality, there is not much call for this class.