AbstractTypes
.AbstractTypes
instances in contract tests.AbstractTypes.asElement(TypeMirror)
.AbstractTypes.asElement(TypeMirror)
throws expected exceptions.Element.asType()
.Types.boxedClass(PrimitiveType)
throws expected exceptions.Types.unboxedType(TypeMirror)
and Types.boxedClass(PrimitiveType)
are (essentially) inverse methods of each other.AbstractTypes.capture(TypeMirror)
.ExtendedTypeKindVisitor7
.TypeElement
instances into the given map (corresponding to the Class
keys) and returns a
AbstractTypes
instance.ImmutableList
.ReflectionTypes
.AbstractTypes.requireValidElement(javax.lang.model.element.Element)
throws a
NullPointerException
if passed null.AbstractTypes.requireValidType(TypeMirror)
does not throw an
exception if passed null.AbstractTypes.requireValidTypes(TypeMirror[])
throws exceptions if
passed null or an array with null element.AbstractTypes.resolveActualTypeArguments(TypeElement, TypeMirror)
when the second argument is
a generic type, a non-generic type, or a primitive type.AbstractTypes.resolveActualTypeArguments(TypeElement, TypeMirror)
if the second argument
contains an actual type argument that is an array type.AbstractTypes.resolveActualTypeArguments(TypeElement, TypeMirror)
if the second argument is a
raw type.AbstractTypes.contains(TypeMirror, TypeMirror)
throws expected exceptions.AbstractTypes.erasure(TypeMirror)
.AbstractTypes.erasure(TypeMirror)
throws expected exceptions.Types.getPrimitiveType(TypeKind)
throws expected exceptions.AbstractTypes.isSameType(TypeMirror, TypeMirror)
throws expected exceptions.AbstractTypes.isSubtype(TypeMirror, TypeMirror)
if one of the types is an array type.AbstractTypes.isSubtype(TypeMirror, TypeMirror)
if one of the types is an intersection type.AbstractTypes.isSubtype(TypeMirror, TypeMirror)
if one of the types is the null type.AbstractTypes.isSubtype(TypeMirror, TypeMirror)
if one of the types is a primitive type.AbstractTypes.isSubtype(TypeMirror, TypeMirror)
if one of the types is a raw type.TypeElement
instances in typeElementMap
.Types.unboxedType(TypeMirror)
throws expected exceptions.Copyright © 2014–2015. All rights reserved.