Class DefaultDomain
- Author:
- Laird Nelson
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a newDefaultDomain
for use at runtime.DefaultDomain
(Lock lock) Creates a newDefaultDomain
for use at runtime.Creates a newDefaultDomain
whose usage type is determined by the argument supplied to this constructor.DefaultDomain
(ProcessingEnvironment pe, Lock lock) Creates a newDefaultDomain
whose usage type is determined by the arguments supplied to this constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns aUniversalType
representing anArrayType
whose component type is the same as the suppliedTypeMirror
.asMemberOf
(DeclaredType containingType, Element e) Returns a non-null
TypeMirror
representing the type of the suppliedElement
when thatElement
is viewed as a member of, or otherwise directly contained by, the suppliedcontainingType
.boolean
assignable
(TypeMirror payload, TypeMirror receiver) Returnstrue
if and only if the suppliedpayload
(the first argument) is considered assignable to the suppliedreceiver
(the second argument) according to the rules of the Java Language Specification.boolean
contains
(TypeMirror t0, TypeMirror t1) Returnstrue
if and only ifcandidateContainer
containscandidate
, according to the Java Language Specification, section 4.5.1.declaredType
(CharSequence canonicalName) A convenience method that returns theDeclaredType
of aTypeElement
that bears the suppliedcanonicalName
, ornull
if there is no suchTypeElement
(and therefore no suchDeclaredType
).declaredType
(TypeElement typeElement, TypeMirror... typeArguments) Returns theDeclaredType
of the suppliedTypeElement
with the suppliedTypeMirror
arguments (if any), yielding a parameterized type.declaredType
(DeclaredType enclosingType, TypeElement typeElement, TypeMirror... typeArguments) Returns theDeclaredType
of the suppliedTypeElement
with the suppliedTypeMirror
arguments (if any), given a containingDeclaredType
of which it is a member, yielding a parameterized type.Optional
<? extends ConstantDesc> List
<? extends UniversalType> Returns a non-null
List
of the direct supertypes of the suppliedTypeMirror
, which is normally a declared type.Returns theElement
responsible for declaring the suppliedTypeMirror
, which is most commonly aDeclaredType
, aTypeVariable
, aNoType
with aTypeKind
ofTypeKind.MODULE
, or aNoType
with aTypeKind
ofTypeKind.PACKAGE
, ornull
if there is no suchElement
.A convenience method that returns the element type of the suppliedTypeMirror
.boolean
Returns the erasure of the suppliedTypeMirror
.executableElement
(TypeElement declaringElement, TypeMirror returnType, CharSequence name, TypeMirror... parameterTypes) A convenience method that returns anExecutableElement
representing the static initializer, constructor or method described by the supplied arguments, ornull
if no suchExecutableElement
exists.int
hashCode()
A convenience method that returns theTypeElement
representing the class namedjava.lang.Object
.final Unlockable
lock()
Returns a non-null
Unlockable
that should be used in atry
-with-resources block guarding operations that might cause symbol completion.moduleElement
(CharSequence canonicalName) Returns aModuleElement
representing the module named by the suppliedqualifiedName
, ornull
if there is no suchModuleElement
.name
(CharSequence name) Returns aName
representing the suppliedCharSequence
.Returns aNoType
bearing the suppliedTypeKind
, if the suppliedTypeKind
is eitherTypeKind.NONE
orTypeKind.VOID
.nullType()
packageElement
(CharSequence canonicalName) Returns aPackageElement
representing the package bearing the suppliedcanonicalName
, ornull
if there is no suchPackageElement
.packageElement
(ModuleElement asSeenFrom, CharSequence canonicalName) Returns aPackageElement
representing the package bearing the suppliedcanonicalName
as seen from the module represented by the suppliedModuleElement
, ornull
if there is no suchPackageElement
.primitiveType
(CharSequence canonicalName) Returns the result of applying unboxing conversion to the (logical)TypeElement
bearing the suppliedcanonicalName
.Returns the result of applying unboxing conversion to the type declared by the suppliedTypeElement
.primitiveType
(TypeKind kind) Returns the result of applying unboxing conversion to the suppliedTypeMirror
.A convenience method that returns the raw type corresponding tot
, ornull
ift
is incapable of yielding a raw type.Returns aRecordComponentElement
corresponding to the suppliedExecutableElement
, ornull
if there is no suchRecordComponentElement
.boolean
sameType
(TypeMirror t0, TypeMirror t1) Returnstrue
if and only if the two arguments represent the same type.boolean
subsignature
(ExecutableType t0, ExecutableType t1) Returnstrue
if and only ifet0
is a subsignature ofet1
.boolean
subtype
(TypeMirror candidateSubtype, TypeMirror candidateSupertype) Returnstrue
if and only ifcandidateSubtype
is a subtype ofsupertype
.toString
(CharSequence name) Converts the suppliedCharSequence
, which is often aName
, into aString
, and returns the conversion, locking when appropriate to serialize symbol completion.typeElement
(CharSequence canonicalName) Returns aTypeElement
representing the element bearing the supplied canonical name, ornull
if there is no suchTypeElement
.typeElement
(ModuleElement asSeenFrom, CharSequence canonicalName) Returns aTypeElement
representing the element bearing the supplied canonical name, as read or seen from the module represented by the suppliedModuleElement
, ornull
if there is no suchTypeElement
.Returns aTypeElement
representing the result of applying boxing conversion to the primitive type represented by the suppliedPrimitiveType
argument.typeElement
(TypeKind primitiveTypeKind) Returns aTypeElement
representing the result of applying boxing conversion to the primitive type represented by the suppliedTypeKind
argument, if it is primitive.Returns theTypeParameterElement
contained by the suppliedParameterizable
whose name is equal to the suppliedname
, ornull
if there is no suchTypeParameterElement
.typeVariable
(Parameterizable p, CharSequence name) A convenience method that returns theTypeVariable
declared by theTypeParameterElement
contained by the suppliedParameterizable
whose name is equal to the suppliedname
, ornull
if there is no suchTypeParameterElement
orTypeVariable
.variableElement
(Element e, CharSequence name) A convenience method that returns the firstVariableElement
with a variableElementKind
and bearing the suppliedsimpleName
that the suppliedenclosingElement
encloses, ornull
if there is no suchVariableElement
.A convenience method that returns a newWildcardType
with aTypeKind
ofTypeKind.WILDCARD
, an extends bound ofnull
, and a super bound ofnull
.wildcardType
(TypeMirror extendsBound, TypeMirror superBound) Returns a newWildcardType
with aTypeKind
ofTypeKind.WILDCARD
, an extends bound of the suppliedextendsBound
, and a super bound of the suppliedsuperBound
.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.microbean.construct.Domain
generic, generic, javaLangObject, javaLangObject, parameterized, raw
-
Constructor Details
-
DefaultDomain
-
DefaultDomain
Creates a newDefaultDomain
whose usage type is determined by the argument supplied to this constructor.- Parameters:
pe
- aProcessingEnvironment
; may benull
in which case the return value of an invocation ofSupplier.get()
on the return value of an invocation ofRuntimeProcessingEnvironmentSupplier.of()
will be used instead- See Also:
-
DefaultDomain
Creates a newDefaultDomain
for use at runtime.- Parameters:
lock
- aLock
to use to serialize symbol completion; may benull
in which case a globalReentrantLock
will be used instead- See Also:
-
DefaultDomain
Creates a newDefaultDomain
whose usage type is determined by the arguments supplied to this constructor.- Parameters:
pe
- aProcessingEnvironment
; may benull
in which case the return value of an invocation ofSupplier.get()
on the return value of an invocation ofRuntimeProcessingEnvironmentSupplier.of()
will be used insteadlock
- aLock
to use to serialize symbol completion; ifnull
andpe
isnull
, then a globalReentrantLock
will be used instead; ifnull
andpe
is non-null
, then no serialization of symbol completion will occur and thisDefaultDomain
will not be safe for concurrent use by multiple threads- See Also:
-
-
Method Details
-
arrayTypeOf
Returns aUniversalType
representing anArrayType
whose component type is the same as the suppliedTypeMirror
.- Specified by:
arrayTypeOf
in interfaceDomain
- Parameters:
t
- aTypeMirror
representing a component type; must not benull
- Returns:
- a non-
null
UniversalType
- Throws:
NullPointerException
- ift
isnull
IllegalArgumentException
- ift
is unsuitable for use as a component type- See Also:
-
asMemberOf
Description copied from interface:Domain
Returns a non-null
TypeMirror
representing the type of the suppliedElement
when thatElement
is viewed as a member of, or otherwise directly contained by, the suppliedcontainingType
.For example, when viewed as a member of the parameterized type
Set<String>
, theSet.add(Object)
method (represented as anExecutableElement
) has a type whose method parameter is of typeString
(notString
's erasure).- Specified by:
asMemberOf
in interfaceDomain
- Parameters:
containingType
- the containingDeclaredType
; must not benull
e
- the memberElement
; must not benull
- Returns:
- a non-
null
type representing the type of the suppliedElement
when viewed as a member of the suppliedcontainingType
; nevernull
- See Also:
-
assignable
Description copied from interface:Domain
Returnstrue
if and only if the suppliedpayload
(the first argument) is considered assignable to the suppliedreceiver
(the second argument) according to the rules of the Java Language Specification.- Specified by:
assignable
in interfaceDomain
- Parameters:
payload
- theTypeMirror
being assigned; must not benull
receiver
- theTypeMirror
receiving the assignment; must not benull
- Returns:
true
if and only ifpayload
is assignable toreceiver
- See Also:
- External Specifications
-
binaryName
Description copied from interface:Domain
- Specified by:
binaryName
in interfaceDomain
- Parameters:
e
- aTypeElement
; must not benull
- Returns:
- a non-
null
Name
- See Also:
- External Specifications
-
capture
Description copied from interface:Domain
- Specified by:
capture
in interfaceDomain
- Parameters:
t
- aTypeMirror
; must not benull
; if not a wildcard type, then it will be returned unchanged- Returns:
- a non-
null
TypeMirror
representing the result of capture conversion applied to the suppliedTypeMirror
- See Also:
- External Specifications
-
contains
Description copied from interface:Domain
Returnstrue
if and only ifcandidateContainer
containscandidate
, according to the Java Language Specification, section 4.5.1.- Specified by:
contains
in interfaceDomain
- Parameters:
t0
- the putative containing type; normally a wildcard type; must not benull
t1
- the putative contained type; must not benull
- Returns:
true
if and only ifcandidateContainer
containscandidate
, according to the Java Language Specification, section 4.5.1;false
otherwise- External Specifications
-
declaredType
Description copied from interface:Domain
A convenience method that returns theDeclaredType
of aTypeElement
that bears the suppliedcanonicalName
, ornull
if there is no suchTypeElement
(and therefore no suchDeclaredType
).- Specified by:
declaredType
in interfaceDomain
- Parameters:
canonicalName
- a valid canonical name; must not benull
- Returns:
- a
DeclaredType
with aTypeKind
ofTypeKind.DECLARED
, ornull
- See Also:
- External Specifications
-
declaredType
Description copied from interface:Domain
Returns theDeclaredType
of the suppliedTypeElement
with the suppliedTypeMirror
arguments (if any), yielding a parameterized type.Given a
TypeElement
representing the class namedjava.util.Set
and aTypeMirror
representing the type declared byjava.lang.String
, for example, this method will return aDeclaredType
representing the parameterized type corresponding tojava.util.Set<java.lang.String>
.The number of supplied type arguments must either equal the number of the supplied
TypeElement
's formal type parameters, or must be zero. If it is zero, and if the suppliedTypeElement
is generic
, then the suppliedTypeElement
's raw type is returned.If a parameterized type is returned, its
TypeElement
must not be contained within a generic outer class. The parameterized typeOuter<String>.Inner<Number>
, for example, may be constructed by first using this method to get the typeOuter<String>
, and then invokingDomain.declaredType(DeclaredType, TypeElement, TypeMirror...)
.- Specified by:
declaredType
in interfaceDomain
- Parameters:
typeElement
- aTypeElement
; must not benull
typeArguments
- any type arguments (represented byTypeMirror
s); must not benull
- Returns:
- a non-
null
DeclaredType
with aTypeKind
ofTypeKind.DECLARED
- See Also:
- External Specifications
-
declaredType
public UniversalType declaredType(DeclaredType enclosingType, TypeElement typeElement, TypeMirror... typeArguments) Description copied from interface:Domain
Returns theDeclaredType
of the suppliedTypeElement
with the suppliedTypeMirror
arguments (if any), given a containingDeclaredType
of which it is a member, yielding a parameterized type.Given a
DeclaredType
representing the parameterized type corresponding toOuter<
String
>
(see theDomain.declaredType(TypeElement, TypeMirror...)
method), aTypeElement
representing the class namedOuter.Inner
and aDeclaredType
representing the non-generic class corresponding toNumber
, for example, this method will return aDeclaredType
representing the parameterized type corresponding toOuter<
String
>
.Inner<
Number
>
.The number of supplied type arguments must either equal the number of the supplied
TypeElement
's formal type parameters, or must be zero. If it is zero, and if the suppliedTypeElement
is generic
, then the suppliedTypeElement
's raw type is returned.- Specified by:
declaredType
in interfaceDomain
- Parameters:
enclosingType
- aDeclaredType
representing the containing type; must not benull
typeElement
- aTypeElement
; must not benull
typeArguments
- any type arguments (represented byTypeMirror
s); must not benull
- Returns:
- a non-
null
DeclaredType
with aTypeKind
ofTypeKind.DECLARED
- See Also:
- External Specifications
-
describeConstable
- Specified by:
describeConstable
in interfaceConstable
-
directSupertypes
Description copied from interface:Domain
Returns a non-null
List
of the direct supertypes of the suppliedTypeMirror
, which is normally a declared type.- Specified by:
directSupertypes
in interfaceDomain
- Parameters:
t
- aTypeMirror
; must not benull
; must not be an executable type, a module type, or a package type- Returns:
- a non-
null
, immutableList
ofTypeMirror
s representing the direct supertypes - See Also:
- External Specifications
-
element
Description copied from interface:Domain
Returns theElement
responsible for declaring the suppliedTypeMirror
, which is most commonly aDeclaredType
, aTypeVariable
, aNoType
with aTypeKind
ofTypeKind.MODULE
, or aNoType
with aTypeKind
ofTypeKind.PACKAGE
, ornull
if there is no suchElement
.- Specified by:
element
in interfaceDomain
- Parameters:
t
- aTypeMirror
; must not benull
- Returns:
- an
Element
, ornull
- See Also:
-
elementType
Description copied from interface:Domain
A convenience method that returns the element type of the suppliedTypeMirror
.The element type of an array type is the element type of its component type.
.The element type of every other kind of type is the type itself. Note that the semantics of the prior sentence diverge deliberately, primarily for convenience, from those of the relevant section in the Java Language Specification.
- Specified by:
elementType
in interfaceDomain
- Parameters:
t
- aTypeMirror
; must not benull
- Returns:
- the element type of the supplied
TypeMirror
; nevernull
- External Specifications
-
equals
-
erasure
Description copied from interface:Domain
Returns the erasure of the suppliedTypeMirror
.- Specified by:
erasure
in interfaceDomain
- Parameters:
t
- theTypeMirror
representing the type whose erasure should be returned; must not benull
- Returns:
- the erasure of the supplied
TypeMirror
; nevernull
- See Also:
- External Specifications
-
executableElement
public UniversalElement executableElement(TypeElement declaringElement, TypeMirror returnType, CharSequence name, TypeMirror... parameterTypes) Description copied from interface:Domain
A convenience method that returns anExecutableElement
representing the static initializer, constructor or method described by the supplied arguments, ornull
if no suchExecutableElement
exists.- Specified by:
executableElement
in interfaceDomain
- Parameters:
declaringElement
- aTypeElement
representing the class that declares the executable; must not benull
returnType
- the return type of the executable; must not benull
name
- the name of the executable; must not benull
parameterTypes
-TypeMirror
s that represent the executable's parameter types- Returns:
- an
ExecutableElement
with anElementKind
ofElementKind.CONSTRUCTOR
,ElementKind.METHOD
, orElementKind.STATIC_INIT
, ornull
-
hashCode
-
javaLangObject
Description copied from interface:Domain
A convenience method that returns theTypeElement
representing the class namedjava.lang.Object
.- Specified by:
javaLangObject
in interfaceDomain
- Returns:
- a non-
null
TypeElement
whose qualified name is equal tojava.lang.Object
- See Also:
-
lock
Returns a non-null
Unlockable
that should be used in atry
-with-resources block guarding operations that might cause symbol completion.- Specified by:
lock
in interfaceDomain
- Returns:
- a non-
null
Unlockable
- See Also:
-
moduleElement
Description copied from interface:Domain
Returns aModuleElement
representing the module named by the suppliedqualifiedName
, ornull
if there is no suchModuleElement
.- Specified by:
moduleElement
in interfaceDomain
- Parameters:
canonicalName
- a name suitable for naming a module; must not benull
; may be empty, in which case aModuleElement
representing an unnamed module will be returned- Returns:
- a
ModuleElement
, ornull
- See Also:
- External Specifications
-
name
Description copied from interface:Domain
Returns aName
representing the suppliedCharSequence
.- Specified by:
name
in interfaceDomain
- Parameters:
name
- aCharSequence
; must not benull
- Returns:
- a non-
null
Name
representing the suppliedDomain.name(java.lang.CharSequence)
- See Also:
-
noType
Description copied from interface:Domain
Returns aNoType
bearing the suppliedTypeKind
, if the suppliedTypeKind
is eitherTypeKind.NONE
orTypeKind.VOID
.- Specified by:
noType
in interfaceDomain
- Parameters:
kind
- aTypeKind
; must be eitherTypeKind.NONE
orTypeKind.VOID
- Returns:
- a non-
null
NoType
bearing the suppliedTypeKind
- See Also:
- External Specifications
-
nullType
Description copied from interface:Domain
-
packageElement
Description copied from interface:Domain
Returns aPackageElement
representing the package bearing the suppliedcanonicalName
, ornull
if there is no suchPackageElement
.- Specified by:
packageElement
in interfaceDomain
- Parameters:
canonicalName
- a canonical name suitable for naming a package; must not benull
; may be empty, in which case aModuleElement
representing an unnamed package will be returned- Returns:
- a
PackageElement
, ornull
- See Also:
- External Specifications
-
packageElement
Description copied from interface:Domain
Returns aPackageElement
representing the package bearing the suppliedcanonicalName
as seen from the module represented by the suppliedModuleElement
, ornull
if there is no suchPackageElement
.- Specified by:
packageElement
in interfaceDomain
- Parameters:
asSeenFrom
- aModuleElement
; must not benull
canonicalName
- a canonical name suitable for naming a package; must not benull
; may be empty, in which case aModuleElement
representing an unnamed package will be returned- Returns:
- a
PackageElement
, ornull
- See Also:
- External Specifications
-
primitiveType
Description copied from interface:Domain
- Specified by:
primitiveType
in interfaceDomain
- Parameters:
kind
- a primitiveTypeKind
; must not benull
- Returns:
- a non-
null
PrimitiveType
with a primitiveTypeKind
- See Also:
- External Specifications
-
primitiveType
Description copied from interface:Domain
Returns the result of applying unboxing conversion to the (logical)TypeElement
bearing the suppliedcanonicalName
.- Specified by:
primitiveType
in interfaceDomain
- Parameters:
canonicalName
- a canonical name of either a primitive type or a so-called "wrapper" type; must not benull
- Returns:
- a non-
null
PrimitiveType
with a primitiveTypeKind
- See Also:
- External Specifications
-
primitiveType
Description copied from interface:Domain
Returns the result of applying unboxing conversion to the type declared by the suppliedTypeElement
.- Specified by:
primitiveType
in interfaceDomain
- Parameters:
e
- aTypeElement
; must not benull
- Returns:
- a non-
null
PrimitiveType
with a primitiveTypeKind
- See Also:
- External Specifications
-
primitiveType
Description copied from interface:Domain
Returns the result of applying unboxing conversion to the suppliedTypeMirror
.- Specified by:
primitiveType
in interfaceDomain
- Parameters:
t
- aTypeMirror
; must not benull
- Returns:
- a non-
null
PrimitiveType
with a primitiveTypeKind
- See Also:
- External Specifications
-
rawType
Description copied from interface:Domain
A convenience method that returns the raw type corresponding tot
, ornull
ift
is incapable of yielding a raw type.Overrides of this method must conform to the requirements imposed by the relevant section of the relevant version of the Java Language Specification concerning raw types.
- Specified by:
rawType
in interfaceDomain
- Parameters:
t
- aTypeMirror
; must not benull
- Returns:
- the raw type corresponding to the supplied
TypeMirror
, ornull
ift
is incapable of yielding a raw type - External Specifications
-
recordComponentElement
Description copied from interface:Domain
Returns aRecordComponentElement
corresponding to the suppliedExecutableElement
, ornull
if there is no suchRecordComponentElement
.- Specified by:
recordComponentElement
in interfaceDomain
- Parameters:
e
- anExecutableElement
enclosed by a record representing an accessor method; must not benull
- Returns:
- a
RecordComponentElement
corresponding to the suppliedExecutableElement
, ornull
- External Specifications
-
sameType
Description copied from interface:Domain
Returnstrue
if and only if the two arguments represent the same type.This method differs from the
Types.isSameType(TypeMirror, TypeMirror)
method in two ways:- Its arguments may be
null
. If both arguments arenull
,true
is returned. If only one argument isnull
,false
is returned. - If the same Java object reference is passed as both arguments,
true
is returned (even if it has aTypeKind
ofTypeKind.WILDCARD
).
- Specified by:
sameType
in interfaceDomain
- Parameters:
t0
- the firstTypeMirror
; may benull
t1
- the secondTypeMirror
; may benull
- Returns:
true
if and only if the two arguments represent the same type;false
otherwise- See Also:
- External Specifications
- Its arguments may be
-
subsignature
Description copied from interface:Domain
Returnstrue
if and only ifet0
is a subsignature ofet1
.- Specified by:
subsignature
in interfaceDomain
- Parameters:
t0
- the firstExecutableType
; must not benull
t1
- the secondExecutableType
; must not benull
- Returns:
true
if and only ifet0
is a subsignature ofet1
- See Also:
- External Specifications
-
subtype
Description copied from interface:Domain
Returnstrue
if and only ifcandidateSubtype
is a subtype ofsupertype
.- Specified by:
subtype
in interfaceDomain
- Parameters:
candidateSubtype
- the firstTypeMirror
; must not benull
candidateSupertype
- the secondTypeMirror
; must not benull
- Returns:
true
if and only ifcandidateSubtype
is a subtype ofsupertype
- See Also:
- External Specifications
-
toString
Description copied from interface:Domain
Converts the suppliedCharSequence
, which is often aName
, into aString
, and returns the conversion, locking when appropriate to serialize symbol completion.- Specified by:
toString
in interfaceDomain
- Parameters:
name
- theCharSequence
to convert; may benull
in which casenull
will be returned- Returns:
- a
String
, ornull
ifname
wasnull
- See Also:
-
typeElement
Description copied from interface:Domain
Returns aTypeElement
representing the element bearing the supplied canonical name, ornull
if there is no suchTypeElement
.- Specified by:
typeElement
in interfaceDomain
- Parameters:
canonicalName
- a valid canonical name; must not benull
- Returns:
- a
TypeElement
, ornull
- See Also:
- External Specifications
-
typeElement
Description copied from interface:Domain
Returns aTypeElement
representing the element bearing the supplied canonical name, as read or seen from the module represented by the suppliedModuleElement
, ornull
if there is no suchTypeElement
.- Specified by:
typeElement
in interfaceDomain
- Parameters:
asSeenFrom
- aModuleElement
; must not benull
canonicalName
- a valid canonical name; must not benull
- Returns:
- a
TypeElement
, ornull
- See Also:
- External Specifications
-
typeElement
Description copied from interface:Domain
Returns aTypeElement
representing the result of applying boxing conversion to the primitive type represented by the suppliedPrimitiveType
argument.The default implementation of this method calls the
Domain.typeElement(TypeKind)
method with the suppliedPrimitiveType
's affiliatedTypeKind
and returns its result.- Specified by:
typeElement
in interfaceDomain
- Parameters:
t
- aPrimitiveType
with aTypeKind
that is primitive; must not benull
- Returns:
- a non-
null
TypeElement
representing the result of applying boxing conversion to the supplied argument - See Also:
- External Specifications
-
typeElement
Description copied from interface:Domain
Returns aTypeElement
representing the result of applying boxing conversion to the primitive type represented by the suppliedTypeKind
argument, if it is primitive.- Specified by:
typeElement
in interfaceDomain
- Parameters:
primitiveTypeKind
- aTypeKind
that is primitive; must not benull
- Returns:
- a non-
null
TypeElement
representing the result of applying boxing conversion to the supplied argument - See Also:
- External Specifications
-
typeParameterElement
Description copied from interface:Domain
Returns theTypeParameterElement
contained by the suppliedParameterizable
whose name is equal to the suppliedname
, ornull
if there is no suchTypeParameterElement
.- Specified by:
typeParameterElement
in interfaceDomain
- Parameters:
p
- aParameterizable
; must not benull
name
- a name valid for a type parameter; must not benull
- Returns:
- a
TypeParameterElement
, ornull
-
typeVariable
Description copied from interface:Domain
A convenience method that returns theTypeVariable
declared by theTypeParameterElement
contained by the suppliedParameterizable
whose name is equal to the suppliedname
, ornull
if there is no suchTypeParameterElement
orTypeVariable
.- Specified by:
typeVariable
in interfaceDomain
- Parameters:
p
- aParameterizable
; must not benull
name
- a name valid for a type parameter; must not benull
- Returns:
- a
TypeVariable
, ornull
- See Also:
-
variableElement
Description copied from interface:Domain
A convenience method that returns the firstVariableElement
with a variableElementKind
and bearing the suppliedsimpleName
that the suppliedenclosingElement
encloses, ornull
if there is no suchVariableElement
.- Specified by:
variableElement
in interfaceDomain
- Parameters:
e
- anElement
; must not benull
name
- aCharSequence
; must not benull
- Returns:
- a
VariableElement
, ornull
- See Also:
-
wildcardType
Description copied from interface:Domain
A convenience method that returns a newWildcardType
with aTypeKind
ofTypeKind.WILDCARD
, an extends bound ofnull
, and a super bound ofnull
.- Specified by:
wildcardType
in interfaceDomain
- Returns:
- a new, non-
null
WildcardType
- See Also:
- External Specifications
-
wildcardType
Description copied from interface:Domain
Returns a newWildcardType
with aTypeKind
ofTypeKind.WILDCARD
, an extends bound of the suppliedextendsBound
, and a super bound of the suppliedsuperBound
.Any argument may be
null
. Both arguments may not be non-null
.- Specified by:
wildcardType
in interfaceDomain
- Parameters:
extendsBound
- the upper bound of the newWildcardType
; may benull
superBound
- the lower bound of the newWildcardType
; may benull
- Returns:
- a new, non-
null
WildcardType
- See Also:
- External Specifications
-