Class Const


  • public final class Const
    extends java.lang.Object
    Constants for the project, mostly defined in the JVM specification.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static short ACC_ABSTRACT
      One of the access flags for methods or classes: 1024.
      static short ACC_ANNOTATION
      One of the access flags for classes: 8192.
      static short ACC_FINAL
      One of the access flags for fields, methods, or classes: 16.
      static short ACC_INTERFACE
      One of the access flags for classes: 512.
      static byte CONSTANT_Class
      Marks a constant pool entry as a Class: 7.
      static byte CONSTANT_Double
      Marks a constant pool entry as type Double: 6.
      static byte CONSTANT_Dynamic
      Marks a constant pool entry as dynamically computed: 17.
      static byte CONSTANT_Fieldref
      Marks a constant pool entry as a Field Reference: 9.
      static byte CONSTANT_Float
      Marks a constant pool entry as type Float: 4.
      static byte CONSTANT_Integer
      Marks a constant pool entry as type Integer: 3.
      static byte CONSTANT_InterfaceMethodref
      Marks a constant pool entry as an Interface Method Reference: 11.
      static byte CONSTANT_InvokeDynamic
      Marks a constant pool entry as an Invoke Dynamic: 18.
      static byte CONSTANT_Long
      Marks a constant pool entry as type Long: 5.
      static byte CONSTANT_MethodHandle
      Marks a constant pool entry as a Method Handle: 15.
      static byte CONSTANT_Methodref
      Marks a constant pool entry as a Method Reference: 10.
      static byte CONSTANT_MethodType
      Marks a constant pool entry as a Method Type: 16.
      static byte CONSTANT_Module
      Marks a constant pool entry as a Module Reference: 19.
      static byte CONSTANT_NameAndType
      Marks a constant pool entry as a name and type: 12.
      static byte CONSTANT_Package
      Marks a constant pool entry as a Package Reference: 20.
      static byte CONSTANT_String
      Marks a constant pool entry as type String: 8.
      static byte CONSTANT_Utf8
      Marks a constant pool entry as type UTF-8: 1.
      static int JVM_CLASSFILE_MAGIC
      Java class file format Magic number: -889275714.
      static short MAJOR_22
      Major version number of class files for Java 22: 66.
      static short MAJOR_23
      Major version number of class files for Java 23: 67.
      static short MAJOR_24
      Major version number of class files for Java 24: 68.
      static int MAX_ARRAY_DIMENSIONS
      The maximum number of dimensions in an array: 255.
      static short MINOR_22
      Minor version number of class files for Java 22: 0.
      static short MINOR_23
      Minor version number of class files for Java 23: 0.
      static short MINOR_24
      Minor version number of class files for Java 24: 0.
    • Constructor Summary

      Constructors 
      Constructor Description
      Const()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getConstantName​(int index)
      Get the CONSTANT_NAMES entry at the given index.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait