Save This Page
Home » openjdk-7 » sun » misc » [javadoc | source]
sun.misc
public interface: JavaLangAccess [javadoc | source]
Method from sun.misc.JavaLangAccess Summary:
blockedOn,   getAnnotationType,   getConstantPool,   getEnumConstantsShared,   getStackTraceDepth,   getStackTraceElement,   registerShutdownHook,   setAnnotationType
Method from sun.misc.JavaLangAccess Detail:
 public  void blockedOn(Thread t,
    Interruptible b)
    Set thread's blocker field.
 public AnnotationType getAnnotationType(Class klass)
    Get the AnnotationType instance corresponding to this class. (This method only applies to annotation types.)
 public ConstantPool getConstantPool(Class klass)
    Return the constant pool for a class.
 public E[] getEnumConstantsShared(Class<E> klass)
    Returns the elements of an enum class or null if the Class object does not represent an enum type; the result is uncloned, cached, and shared by all callers.
 public int getStackTraceDepth(Throwable t)
    Returns the number of stack frames represented by the given throwable.
 public StackTraceElement getStackTraceElement(Throwable t,
    int i)
    Returns the ith StackTraceElement for the given throwable.
 public  void registerShutdownHook(int slot,
    boolean registerShutdownInProgress,
    Runnable hook)
    Registers a shutdown hook. It is expected that this method with registerShutdownInProgress=true is only used to register DeleteOnExitHook since the first file may be added to the delete on exit list by the application shutdown hooks.
 public  void setAnnotationType(Class klass,
    AnnotationType annotationType)
    Set the AnnotationType instance corresponding to this class. (This method only applies to annotation types.)