JavaType
for resolved non-primitive HotSpot classes. This class is not
an MetaspaceHandleObject
because it doesn't have to be scanned for GC. It's liveness is
maintained by a reference to the Class
instance.
Modifier and Type | Class and Description |
---|---|
pack-priv static class | HotSpotResolvedObjectTypeImpl.
This class represents the field information for one field contained in the fields array of an
|
pack-priv static class |
Modifier and Type | Field and Description |
---|---|
private HotSpotResolvedJavaType | componentType
Lazily initialized cache for |
private HotSpotConstantPool | |
private HotSpotResolvedObjectTypeImpl. | fieldInfo
Lazily initialized cache for FieldInfo. |
private static final HotSpotResolvedObjectTypeImpl. | |
private volatile HotSpotResolvedJavaField[] | |
private volatile HotSpotResolvedObjectTypeImpl[] | |
private final long | klassPointer
The |
private static final int | |
private HotSpotResolvedJavaMethodImpl[] | |
private HashMap | |
private final JavaConstant | |
private static final Annotation[] | |
private static final HotSpotResolvedJavaField[] | |
pack-priv HashMap | reflectionFieldCache
Managed exclusively by |
private HotSpotResolvedObjectTypeImpl |
Access | Constructor and Description |
---|---|
pack-priv | HotSpotResolvedObjectTypeImpl(long
the klass, String name)Klass* for the typeCreates the JVMCI mirror for a Note Creating an instance of this class does not install the mirror for the
|
Modifier and Type | Method and Description |
---|---|
private Assumptions. | |
pack-priv HotSpotResolvedJavaField | |
pack-priv synchronized HotSpotResolvedJavaMethod | |
public boolean | declaresDefaultMethods()
Overrides default jdk. Checks whether this type declares defaults methods. |
public void | |
public boolean | equals(Object
the reference object with which to compare. obj)Implements abstract jdk. Indicates whether some other object is "equal to" this one. |
private static ResolvedJavaField | |
public ResolvedJavaField | findInstanceFieldWithOffset(long
the offset of the field to look for offset, JavaKind expectedEntryKind)Implements jdk. Returns the instance field of this class (or one of its super classes) at the given offset,
or |
public Assumptions. | findLeafConcreteSubtype()
Implements jdk. Attempts to get a leaf concrete subclass of this type. |
public HotSpotResolvedObjectType | findLeastCommonAncestor(ResolvedJavaType otherType)
Implements jdk. Walks the class hierarchy upwards and returns the least common class that is a superclass of both the current and the given type. |
public ResolvedJavaField | |
public Assumptions. | findUniqueConcreteMethod(ResolvedJavaMethod
the method A for which a unique concrete target is searched method)Implements jdk. Given a |
private static HotSpotResolvedObjectTypeImpl | fromMetaspace(long
a native pointer to the Klass* klassPointer)Gets the JVMCI mirror from a HotSpot type. |
public int | |
public <T extends Annotation> T | getAnnotation(Class<T>
the Class object corresponding to the
annotation type annotationClass)Implements java. Returns this element's annotation for the specified type if such an annotation is present, else null. |
public AnnotationData | getAnnotationData(ResolvedJavaType
the type object corresponding to the annotation interface type annotationType)Overrides default jdk. Constructs the annotation present on this element of type |
public List | getAnnotationData(ResolvedJavaType
an annotation type type1, ResolvedJavaType an annotation type type2, ResolvedJavaType... more annotation types types)Overrides default jdk. Constructs the annotations present on this element whose types are in the set composed of |
private List | |
public Annotation[] | getAnnotations()
Implements java. Returns annotations that are present on this element. |
pack-priv HotSpotResolvedObjectTypeImpl | |
public ResolvedJavaMethod | getClassInitializer()
Implements jdk. Returns the |
public ResolvedJavaType | getComponentType()
Implements jdk. For array types, gets the type of the components, or |
public HotSpotConstantPool | |
public Annotation[] | getDeclaredAnnotations()
Implements java. Returns annotations that are directly present on this element. |
public ResolvedJavaMethod[] | getDeclaredConstructors()
Implements jdk. Returns an array reflecting all the constructors declared by this type. |
public ResolvedJavaMethod[] | getDeclaredConstructors(boolean
if forceLink)true , forces this type to be linked Overrides default jdk. Returns an array reflecting all the constructors declared by this type. |
public ResolvedJavaMethod[] | getDeclaredMethods()
Implements jdk. Returns an array reflecting all the methods declared by this type. |
public ResolvedJavaMethod[] | getDeclaredMethods(boolean
if forceLink)true , forces this type to be linked Overrides default jdk. Returns an array reflecting all the methods declared by this type. |
public HotSpotResolvedObjectType | getEnclosingType()
Implements jdk. Returns the enclosing type of this type, if it exists, or |
private HotSpotResolvedObjectTypeImpl. | |
pack-priv HotSpotResolvedObjectTypeImpl. | |
private HotSpotResolvedJavaField[] | getFields(boolean
specifies whether to return instance or static fields retrieveStaticFields, HotSpotResolvedJavaField[] an array to be prepended to the returned result prepend)Gets the instance or static fields of this class. |
private int | Returns: state field value of this typeReturns the value of the state field |
public ResolvedJavaField[] | getInstanceFields(boolean
if true, then instance fields for the complete hierarchy of this
type are included in the result includeSuperclasses)Implements jdk. Returns the instance fields of this class, including internal fields. |
public HotSpotResolvedObjectTypeImpl[] | getInterfaces()
Implements jdk. Gets the interfaces implemented or extended by this type. |
public JavaKind | getJavaKind()
Overrides default jdk. Implements jdk. Gets the |
pack-priv static HotSpotResolvedObjectTypeImpl | |
pack-priv JavaConstant | |
pack-priv long | |
public long | getMetaspacePointer()
Implements jdk. Gets the raw pointer to the |
public int | getModifiers()
Implements jdk. Returns the modifiers for this element. |
public HotSpotResolvedObjectTypeImpl | getSingleImplementor()
Implements jdk. Gets the single implementor of this type. |
public String | getSourceFileName()
Implements jdk. Returns name of source file of this type. |
public ResolvedJavaField[] | getStaticFields()
Implements jdk. Returns the static fields of this class, including internal fields. |
private HotSpotResolvedObjectTypeImpl | Returns: value of the subklass field as metaspace klass pointerReturns the |
public HotSpotResolvedObjectTypeImpl | getSuperclass()
Implements jdk. Gets the super class of this type. |
public HotSpotResolvedObjectTypeImpl | |
public int | |
public boolean | hasDefaultMethods()
Overrides default jdk. Checks whether this type or any of its supertypes or superinterfaces has default methods. |
public Assumptions. | hasFinalizableSubclass()
Implements jdk. Checks whether this type has any finalizable subclasses so far. |
public boolean | hasFinalizer()
Implements jdk. Checks whether this type has a finalizer method. |
private boolean | |
public void | |
public int | instanceSize()
Implements jdk. Gets the instance size of this type. |
public boolean | isArray()
Overrides default jdk. Checks whether this type is an array class. |
public boolean | isAssignableFrom(ResolvedJavaType other)
Implements jdk. Determines if this type is either the same as, or is a superclass or superinterface of, the type represented by the specified parameter. |
public boolean | isBeingInitialized()
Implements abstract jdk. Checks whether this type is currently being initialized. |
public boolean | isCloneableWithAllocation()
Implements jdk. Returns true if this type is |
public boolean | isDefinitelyResolvedWithRespectTo(ResolvedJavaType accessingClass)
Implements jdk. Performs a fast-path check that this type is resolved in the context of a given accessing class. |
public boolean | |
public boolean | isInitialized()
Implements jdk. Checks whether this type is initialized. |
public boolean | isInstance(JavaConstant
the object to test obj)Implements jdk. Checks whether the specified object is an instance of this type. |
public boolean | isInstanceClass()
Implements jdk. Checks whether this type is an instance class. |
public boolean | isInterface()
Implements jdk. Checks whether this type is an interface. |
public boolean | isJavaLangObject()
Overrides default jdk. Returns true if this type is exactly the type |
private boolean | |
public boolean | isLinked()
Implements jdk. Checks whether this type is linked and verified. |
public boolean | isLocal()
Implements jdk. Returns |
public boolean | isMember()
Implements jdk. Returns |
public boolean | |
public Constant | klass()
Implements jdk. Gets the metaspace Klass boxed in a |
public int | |
public void | |
public ResolvedJavaType | lookupType(UnresolvedJavaType unresolvedJavaType, boolean resolve)
Overrides default jdk. Lookup an unresolved type relative to an existing resolved type. |
private boolean | mayHaveAnnotations(boolean
if true, expand this query to include superclasses of this type includingInherited)Determines if this type may have annotations. |
public long | |
public ResolvedJavaType | resolve(ResolvedJavaType
the context of resolution (must not be null) accessingClass)Implements jdk. Resolves this type to a |
public ResolvedJavaField | resolveField(UnresolvedJavaField unresolvedJavaField, ResolvedJavaType accessingClass)
Overrides default jdk.
|
public ResolvedJavaMethod | resolveMethod(ResolvedJavaMethod
the method to select the implementation of method, ResolvedJavaType the caller or context type used to perform access checks callerType)Implements jdk. Resolves the method implementation for virtual dispatches on objects of this dynamic type. |
public int | |
public String |