public class Klass extends Metadata implements ClassConstants
Modifier and Type | Field and Description |
---|---|
static int |
LH_ARRAY_TAG_OBJ_VALUE |
static int |
LH_ARRAY_TAG_SHIFT |
static int |
LH_ARRAY_TAG_TYPE_VALUE |
static int |
LH_ELEMENT_TYPE_SHIFT |
static int |
LH_HEADER_SIZE_SHIFT |
static int |
LH_INSTANCE_SLOW_PATH_BIT |
static int |
LH_LOG2_ELEMENT_SIZE_SHIFT |
JVM_ACC_ABSTRACT, JVM_ACC_ANNOTATION, JVM_ACC_BRIDGE, JVM_ACC_ENUM, JVM_ACC_FIELD_ACCESS_WATCHED, JVM_ACC_FIELD_FLAGS, JVM_ACC_FIELD_HAS_GENERIC_SIGNATURE, JVM_ACC_FIELD_MODIFICATION_WATCHED, JVM_ACC_FINAL, JVM_ACC_HAS_CHECKED_EXCEPTIONS, JVM_ACC_HAS_FINALIZER, JVM_ACC_HAS_JSRS, JVM_ACC_HAS_LINE_NUMBER_TABLE, JVM_ACC_HAS_LOCAL_VARIABLE_TABLE, JVM_ACC_HAS_LOOPS, JVM_ACC_HAS_MIRANDA_METHODS, JVM_ACC_HAS_MONITOR_BYTECODES, JVM_ACC_HAS_VANILLA_CONSTRUCTOR, JVM_ACC_INTERFACE, JVM_ACC_IS_CLONEABLE, JVM_ACC_IS_OBSOLETE, JVM_ACC_LOOPS_FLAG_INIT, JVM_ACC_MONITOR_MATCH, JVM_ACC_NATIVE, JVM_ACC_NOT_OSR_COMPILABLE, JVM_ACC_PRIVATE, JVM_ACC_PROMOTED_FLAGS, JVM_ACC_PROTECTED, JVM_ACC_PUBLIC, JVM_ACC_QUEUED, JVM_ACC_STATIC, JVM_ACC_STRICT, JVM_ACC_SUPER, JVM_ACC_SYNCHRONIZED, JVM_ACC_SYNTHETIC, JVM_ACC_TRANSIENT, JVM_ACC_VARARGS, JVM_ACC_VOLATILE, JVM_ACC_WRITTEN_FLAGS, JVM_CONSTANT_Class, JVM_CONSTANT_ClassIndex, JVM_CONSTANT_Double, JVM_CONSTANT_Fieldref, JVM_CONSTANT_Float, JVM_CONSTANT_Integer, JVM_CONSTANT_InterfaceMethodref, JVM_CONSTANT_Invalid, JVM_CONSTANT_InvokeDynamic, JVM_CONSTANT_Long, JVM_CONSTANT_MethodHandle, JVM_CONSTANT_MethodHandleInError, JVM_CONSTANT_Methodref, JVM_CONSTANT_MethodType, JVM_CONSTANT_MethodTypeInError, JVM_CONSTANT_NameAndType, JVM_CONSTANT_String, JVM_CONSTANT_StringIndex, JVM_CONSTANT_Unicode, JVM_CONSTANT_UnresolvedClass, JVM_CONSTANT_UnresolvedClassInError, JVM_CONSTANT_Utf8, JVM_RECOGNIZED_CLASS_MODIFIERS, JVM_RECOGNIZED_FIELD_MODIFIERS, JVM_RECOGNIZED_METHOD_MODIFIERS, JVM_REF_getField, JVM_REF_getStatic, JVM_REF_invokeInterface, JVM_REF_invokeSpecial, JVM_REF_invokeStatic, JVM_REF_invokeVirtual, JVM_REF_newInvokeSpecial, JVM_REF_putField, JVM_REF_putStatic, MAJOR_VERSION, MAJOR_VERSION_OLD, MINOR_VERSION, MINOR_VERSION_OLD
dumpReplayData, instantiateWrapperFor, iterate
equals, getAddress, hashCode, toString
public static int LH_INSTANCE_SLOW_PATH_BIT
public static int LH_LOG2_ELEMENT_SIZE_SHIFT
public static int LH_ELEMENT_TYPE_SHIFT
public static int LH_HEADER_SIZE_SHIFT
public static int LH_ARRAY_TAG_SHIFT
public static int LH_ARRAY_TAG_TYPE_VALUE
public static int LH_ARRAY_TAG_OBJ_VALUE
public Klass(Address addr)
public int getClassStatus()
public boolean isKlass()
protected Symbol getSymbol(AddressField field)
public Instance getJavaMirror()
public Klass getSuper()
public Klass getJavaSuper()
public int getLayoutHelper()
public Symbol getName()
public long getAccessFlags()
public AccessFlags getAccessFlagsObj()
public Klass getSubklassKlass()
public Klass getNextSiblingKlass()
public long traceID()
public long computeModifierFlags()
public final long getClassModifiers()
public boolean isSubclassOf(Klass k)
public boolean isSubtypeOf(Klass k)
public void printValueOn(java.io.PrintStream tty)
printValueOn
in class Metadata
public void iterateFields(MetadataVisitor visitor)
public long getObjectSize()
public Klass arrayKlass(int rank)
public Klass arrayKlass()
public Klass arrayKlassOrNull(int rank)
public Klass arrayKlassOrNull()
public Klass arrayKlassImpl(boolean orNull, int rank)
public Klass arrayKlassImpl(boolean orNull)
public java.lang.String signature()
public boolean isPublic()
public boolean isFinal()
public boolean isInterface()
public boolean isAbstract()
public boolean isSuper()
public boolean isSynthetic()
public boolean hasFinalizer()
public boolean isCloneable()
public boolean hasVanillaConstructor()
public boolean hasMirandaMethods()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.