public abstract class AbstractJavaClassInfo extends JavaSourceElement implements IJavaClassInfo
IJavaClassInfo.UtilLOCKEMPTY_ARRAY, ERROR_TYPE, NULL_TYPE| Constructor and Description |
|---|
AbstractJavaClassInfo() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equals(IJavaClassInfo thisObj,
Object that) |
boolean |
equals(Object that)
Two IJavaClassInfo instances are equal if they are both non-arrays and have the same
name and module.
|
int |
hashCode()
In order to maintain consistency with
IJavaClassInfo.equals(Object), the hash code of a non-array
IJavaClassInfo must be computed as follows:
getName().hashCode() * 31 + getModule().hashCode()
For arrays, the hashCode is equal to the hashCode of the component type. |
static int |
hashCode(IJavaClassInfo thisObj) |
boolean |
isAssignableFrom(IJavaClassInfo that) |
static boolean |
isAssignableFrom(IJavaClassInfo thisObj,
IJavaClassInfo that) |
findInnerSourceType, getCompilationUnitTree, getDeclaringClass, getEnclosingClass, getEndPosition, getLocationInfo, getSourcePositions, getStartPosition, getTreeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcompile, createClassDocNode, getArrayType, getBackingClass, getComponentType, getConstructor, getDeclaredClasses, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethods, getDeepestClassAtOffset, getDisplayName, getEnclosingType, getEnumConstants, getField, getFields, getGenericInterfaces, getGenericSuperclass, getInterfaces, getJavaType, getMethod, getMethodDescriptors, getModifiers, getNameSignature, getPropertyDescriptors, getRelativeName, getSourceFileHandle, getSuperclass, getTypeParameters, hasCustomBeanInfo, isAnnotation, isArray, isCompilable, isEnum, isHiddenViaFeatureDescriptor, isInterface, isInternal, isPrimitive, isPrivate, isProtected, isPublic, isVisibleViaFeatureDescriptor, newInstancegetAnnotation, getDeclaredAnnotations, getEnclosingClass, getLocationInfo, isAnnotationPresentequals, getActualType, getActualType, getConcreteType, getModule, getName, getNamespace, getSimpleName, hashCode, isAssignableFromgetModule, resolveImport, resolveType, resolveTypepublic boolean isAssignableFrom(IJavaClassInfo that)
isAssignableFrom in interface IJavaClassInfopublic boolean equals(Object that)
IJavaClassInfoequals in interface IJavaClassInfoequals in class Objectthat - the other objectpublic int hashCode()
IJavaClassInfoIJavaClassInfo.equals(Object), the hash code of a non-array
IJavaClassInfo must be computed as follows:
getName().hashCode() * 31 + getModule().hashCode()
For arrays, the hashCode is equal to the hashCode of the component type.hashCode in interface IJavaClassInfohashCode in class Objectpublic static boolean isAssignableFrom(IJavaClassInfo thisObj, IJavaClassInfo that)
public static boolean equals(IJavaClassInfo thisObj, Object that)
public static int hashCode(IJavaClassInfo thisObj)
Copyright © 2021. All rights reserved.