< prev index next >

src/java.base/share/classes/jdk/internal/access/JavaLangAccess.java

Print this page
@@ -29,10 +29,11 @@
  import java.lang.annotation.Annotation;
  import java.lang.foreign.MemorySegment;
  import java.lang.invoke.MethodHandle;
  import java.lang.invoke.MethodType;
  import java.lang.module.ModuleDescriptor;
+ import java.lang.reflect.ClassFileFormatVersion;
  import java.lang.reflect.Executable;
  import java.lang.reflect.Method;
  import java.net.URI;
  import java.nio.charset.CharacterCodingException;
  import java.nio.charset.Charset;

@@ -568,10 +569,49 @@
       * Creates a new StackWalker
       */
      StackWalker newStackWalkerInstance(Set<StackWalker.Option> options,
                                         ContinuationScope contScope,
                                         Continuation continuation);
+ 
+     /**
+      * {@return the primary class for a primitive class}
+      *
+      * @param klass a class
+      */
+     Class<?> asPrimaryType(Class<?> klass);
+ 
+     /**
+      * {@return the value type of a primitive class}
+      *
+      * @param klass a class
+      */
+     Class<?> asValueType(Class<?> klass);
+ 
+     /**
+      * {@return true if the class is the primary type of a primitive class}
+      *
+      * @param klass a class
+      */
+     boolean isPrimaryType(Class<?> klass);
+ 
+     /**
+      * {@return true if the class is the primary type of a primitive class}
+      *
+      * @param klass a class
+      */
+     boolean isPrimitiveValueType(Class<?> klass);
+ 
+     /**
+      * Returns {@code true} if this class is a primitive class.
+      */
+     boolean isPrimitiveClass(Class<?> klass);
+ 
+     /**
+      * Returns the class file format version of the class.
+      */
+     int classFileFormatVersion(Class<?> klass);
+ 
      /**
       * Returns '<loader-name>' @<id> if classloader has a name
       * explicitly set otherwise <qualified-class-name> @<id>
       */
      String getLoaderNameID(ClassLoader loader);
< prev index next >