public final class HotSpotResolvedPrimitiveType extends HotSpotResolvedJavaType implements HotSpotProxified
JavaType
for primitive HotSpot types.Modifier and Type | Field and Description |
---|---|
private Kind |
kind |
ANNOTATION, BRIDGE, ENUM, MANDATED, SYNTHETIC, VARARGS
Constructor and Description |
---|
HotSpotResolvedPrimitiveType(Kind kind)
Creates the JVMCI mirror for a primitive
Kind . |
equals, fromClass, hashCode
getName
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findMethod, isLeaf
getName, getUnqualifiedName, toClassName, toJavaName, toJavaName
isAbstract, isConcrete, isFinalFlagSet, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isTransient, isVolatile, jvmClassModifiers, jvmFieldModifiers, jvmMethodModifiers
public HotSpotResolvedPrimitiveType(Kind kind)
Kind
.
NOTE: Creating an instance of this class does not install the mirror for the
Class
type. Use HotSpotResolvedJavaType.fromClass(Class)
instead.
kind
- the Kind to create the mirror forpublic int getModifiers()
getModifiers
in interface ModifiersProvider
getModifiers
in interface ResolvedJavaType
public HotSpotResolvedObjectTypeImpl getArrayClass()
getArrayClass
in interface JavaType
getArrayClass
in interface ResolvedJavaType
public ResolvedJavaType getElementalType()
getElementalType
in interface JavaType
getElementalType
in interface ResolvedJavaType
public ResolvedJavaType getComponentType()
getComponentType
in interface JavaType
getComponentType
in interface ResolvedJavaType
public ResolvedJavaType asExactType()
asExactType
in interface ResolvedJavaType
public ResolvedJavaType getSuperclass()
getSuperclass
in interface ResolvedJavaType
public ResolvedJavaType[] getInterfaces()
getInterfaces
in interface ResolvedJavaType
public ResolvedJavaType getSingleImplementor()
getSingleImplementor
in interface ResolvedJavaType
public ResolvedJavaType findLeastCommonAncestor(ResolvedJavaType otherType)
findLeastCommonAncestor
in interface ResolvedJavaType
public JavaConstant getObjectHub()
getObjectHub
in interface ResolvedJavaType
public JavaConstant getJavaClass()
getJavaClass
in interface ResolvedJavaType
public Assumptions.AssumptionResult<Boolean> hasFinalizableSubclass()
hasFinalizableSubclass
in interface ResolvedJavaType
public boolean hasFinalizer()
hasFinalizer
in interface ResolvedJavaType
public boolean isArray()
isArray
in interface ResolvedJavaType
public boolean isPrimitive()
isPrimitive
in interface ResolvedJavaType
public boolean isInitialized()
isInitialized
in interface ResolvedJavaType
public boolean isLinked()
isLinked
in interface ResolvedJavaType
public boolean isInstance(JavaConstant obj)
isInstance
in interface ResolvedJavaType
public boolean isInstanceClass()
isInstanceClass
in interface ResolvedJavaType
public boolean isInterface()
isInterface
in interface ModifiersProvider
isInterface
in interface ResolvedJavaType
public boolean isAssignableFrom(ResolvedJavaType other)
isAssignableFrom
in interface ResolvedJavaType
public boolean isJavaLangObject()
isJavaLangObject
in interface ResolvedJavaType
public ResolvedJavaMethod resolveConcreteMethod(ResolvedJavaMethod method, ResolvedJavaType callerType)
resolveConcreteMethod
in interface ResolvedJavaType
public ResolvedJavaMethod resolveMethod(ResolvedJavaMethod method, ResolvedJavaType callerType)
resolveMethod
in interface ResolvedJavaType
public Assumptions.AssumptionResult<ResolvedJavaType> findLeafConcreteSubtype()
findLeafConcreteSubtype
in interface ResolvedJavaType
public Assumptions.AssumptionResult<ResolvedJavaMethod> findUniqueConcreteMethod(ResolvedJavaMethod method)
findUniqueConcreteMethod
in interface ResolvedJavaType
public ResolvedJavaField[] getInstanceFields(boolean includeSuperclasses)
getInstanceFields
in interface ResolvedJavaType
public ResolvedJavaField[] getStaticFields()
getStaticFields
in interface ResolvedJavaType
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation
in interface ResolvedJavaType
public ResolvedJavaType resolve(ResolvedJavaType accessingClass)
public void initialize()
initialize
in interface ResolvedJavaType
public ResolvedJavaField findInstanceFieldWithOffset(long offset, Kind expectedType)
findInstanceFieldWithOffset
in interface ResolvedJavaType
public String getSourceFileName()
getSourceFileName
in interface ResolvedJavaType
public Class<?> mirror()
mirror
in class HotSpotResolvedJavaType
public URL getClassFilePath()
getClassFilePath
in interface ResolvedJavaType
public boolean isLocal()
isLocal
in interface ResolvedJavaType
public boolean isMember()
isMember
in interface ResolvedJavaType
public ResolvedJavaType getEnclosingType()
getEnclosingType
in interface ResolvedJavaType
public ResolvedJavaMethod[] getDeclaredConstructors()
getDeclaredConstructors
in interface ResolvedJavaType
public ResolvedJavaMethod[] getDeclaredMethods()
getDeclaredMethods
in interface ResolvedJavaType
public ResolvedJavaMethod getClassInitializer()
getClassInitializer
in interface ResolvedJavaType
public boolean isTrustedInterfaceType()
isTrustedInterfaceType
in interface ResolvedJavaType