Package com.sun.ts.lib.util.sec.misc

# Interface JavaLangAccess

public interface JavaLangAccess

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `blockedOn(Thread t, Interruptible b)`
  Set thread's blocker field.
  `AnnotationType`
  `getAnnotationType(Class klass)`
  Get the AnnotationType instance corresponding to this class.
  `ConstantPool`
  `getConstantPool(Class klass)`
  Return the constant pool for a class.
  `<E extends Enum<E>>
  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.
  `void`
  `setAnnotationType(Class klass, AnnotationType annotationType)`
  Set the AnnotationType instance corresponding to this class.

- ## Method Details

  - ### getConstantPool

    ConstantPool getConstantPool(Class klass)
    Return the constant pool for a class.

  - ### setAnnotationType

    void setAnnotationType(Class klass, AnnotationType annotationType)
    Set the AnnotationType instance corresponding to this class. (This method only applies to annotation types.)

  - ### getAnnotationType

    AnnotationType getAnnotationType(Class klass)
    Get the AnnotationType instance corresponding to this class. (This method only applies to annotation types.)

  - ### getEnumConstantsShared

    <E extends Enum<E>> 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.

  - ### blockedOn

    void blockedOn(Thread t, Interruptible b)
    Set thread's blocker field.