Class Signatures
java.lang.Object
org.microbean.construct.vm.Signatures
A utility class that provides signatures for
TypeMirror
s and Element
s.- Author:
- Laird Nelson
- External Specifications
-
Method Summary
Modifier and TypeMethodDescriptionstatic final String
Returns a signature for the suppliedElement
.static final String
signature
(TypeMirror t, Domain d) Returns a signature for the suppliedTypeMirror
.
-
Method Details
-
signature
Returns a signature for the suppliedElement
.- Parameters:
e
- theElement
for which a signature should be returned; must not benull
d
- aDomain
from which theElement
is presumed to have originated; must not benull
- Returns:
- a non-
null
signature - Throws:
NullPointerException
- if either argument isnull
IllegalArgumentException
- ife
has anElementKind
that is eitherElementKind.ANNOTATION_TYPE
,ElementKind.BINDING_VARIABLE
,ElementKind.EXCEPTION_PARAMETER
,ElementKind.LOCAL_VARIABLE
,ElementKind.MODULE
,ElementKind.OTHER
,ElementKind.PACKAGE
,ElementKind.RESOURCE_VARIABLE
, orElementKind.TYPE_PARAMETER
- See Also:
- External Specifications
-
signature
Returns a signature for the suppliedTypeMirror
.- Parameters:
t
- theTypeMirror
for which a signature should be returned; must not benull
d
- aDomain
from which theTypeMirror
is presumed to have originated; must not benull
- Returns:
- a non-
null
signature - Throws:
NullPointerException
- if either argument isnull
IllegalArgumentException
- ift
has anTypeKind
that is eitherTypeKind.ERROR
,TypeKind.EXECUTABLE
,TypeKind.INTERSECTION
,TypeKind.MODULE
,TypeKind.NONE
,TypeKind.NULL
,TypeKind.OTHER
,TypeKind.PACKAGE
,TypeKind.UNION
,TypeKind.VOID
, orTypeKind.WILDCARD
- See Also:
- External Specifications
-