Class Signatures
java.lang.Object
org.microbean.construct.vm.Signatures
A utility class that provides signatures for
TypeMirrors and Elements.- Author:
- Laird Nelson
- External Specifications
-
Method Summary
Modifier and TypeMethodDescriptionstatic final StringReturns a signature for the suppliedElement.static final Stringsignature(TypeMirror t, Domain d) Returns a signature for the suppliedTypeMirror.
-
Method Details
-
signature
Returns a signature for the suppliedElement.- Parameters:
e- theElementfor which a signature should be returned; must not benulld- aDomainfrom which theElementis presumed to have originated; must not benull- Returns:
- a non-
nullsignature - Throws:
NullPointerException- if either argument isnullIllegalArgumentException- ifehas anElementKindthat 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- theTypeMirrorfor which a signature should be returned; must not benulld- aDomainfrom which theTypeMirroris presumed to have originated; must not benull- Returns:
- a non-
nullsignature - Throws:
NullPointerException- if either argument isnullIllegalArgumentException- ifthas anTypeKindthat 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
-