In contrast, the common Jandex classes such as ClassInfo, MethodInfo or FieldInfo
either don't provide equality at all (and hence can only be compared by identity) or provide strict equality,
which includes presence or absence of annotations and comparison of their members, as well as other details.
An instance of this class, also called an equivalence key, provides 3 fundamental operations, corresponding to the 3 common methods all Java classes have:
equals(): when two Jandex objects are equivalent, their equivalence keys are equalhashCode(): consistent with equals() described abovetoString(): human readable representation of the equivalence key;
format of the value is not guaranteed and may change without noticeEquivalenceKey
DeclarationEquivalenceKey
ClassEquivalenceKeyMethodEquivalenceKeyMethodParameterEquivalenceKeyFieldEquivalenceKeyRecordComponentEquivalenceKeyTypeEquivalenceKey
ArrayTypeEquivalenceKeyClassTypeEquivalenceKeyParameterizedTypeEquivalenceKeyPrimitiveTypeEquivalenceKeyTypeVariableEquivalenceKeyTypeVariableReferenceEquivalenceKeyUnresolvedTypeVariableEquivalenceKeyVoidTypeEquivalenceKeyWildcardTypeEquivalenceKey| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | |
| public static class | |
| public abstract static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public abstract static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static EquivalenceKey | Returns: equvalence key for given annotation target, onlynull if annotationTarget == nullthe annotation target, may be annotationTarget)nullReturns an equivalence key for given |
| public static EquivalenceKey. | Returns: equvalence key for given declaration, onlynull if declaration == nullthe declaration, may be declaration)nullReturns an equivalence key for given |
| public static EquivalenceKey. | |
| public static EquivalenceKey. | Returns: equvalence key for given method, onlynull if method == nullthe method, may be method)nullReturns an equivalence key for given method. |
| public static EquivalenceKey. | Returns: equvalence key for given method parameter, onlynull if parameter == nullthe method parameter, may be parameter)nullReturns an equivalence key for given method parameter. |
| public static EquivalenceKey. | |
| public static EquivalenceKey. | Returns: equvalence key for given record component, onlynull if recordComponent == nullthe record component, may be recordComponent)nullReturns an equivalence key for given record component. |
| public static EquivalenceKey. | Returns: equvalence key for given type target, onlynull if typeTarget == nullthe type target, may be typeTarget)nullReturns an equivalence key for given type annotation target. |
| public static EquivalenceKey. | |
| private static EquivalenceKey. | |
| private static String | |
| pack-priv String |