Enum Class JvmType

java.lang.Object
java.lang.Enum<JvmType>
com.strobel.assembler.metadata.JvmType
All Implemented Interfaces:
Serializable, Comparable<JvmType>, Constable

public enum JvmType extends Enum<JvmType>
  • Enum Constant Details

    • Boolean

      public static final JvmType Boolean
    • Byte

      public static final JvmType Byte
    • Character

      public static final JvmType Character
    • Short

      public static final JvmType Short
    • Integer

      public static final JvmType Integer
    • Long

      public static final JvmType Long
    • Float

      public static final JvmType Float
    • Double

      public static final JvmType Double
    • Object

      public static final JvmType Object
    • Array

      public static final JvmType Array
    • TypeVariable

      public static final JvmType TypeVariable
    • Wildcard

      public static final JvmType Wildcard
    • Void

      public static final JvmType Void
  • Field Details

    • CLASSES_TO_JVM_TYPES

      private static final Map<Class<?>,JvmType> CLASSES_TO_JVM_TYPES
  • Constructor Details

    • JvmType

      private JvmType()
  • Method Details

    • values

      public static JvmType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static JvmType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getDescriptorPrefix

      public final String getDescriptorPrefix()
    • getPrimitiveName

      public final String getPrimitiveName()
    • isPrimitive

      public final boolean isPrimitive()
    • isPrimitiveOrVoid

      public final boolean isPrimitiveOrVoid()
    • bitWidth

      public final int bitWidth()
    • stackSlots

      public final int stackSlots()
    • isSingleWord

      public final boolean isSingleWord()
    • isDoubleWord

      public final boolean isDoubleWord()
    • isNumeric

      public final boolean isNumeric()
    • isIntegral

      public final boolean isIntegral()
    • isSubWordOrInt32

      public final boolean isSubWordOrInt32()
    • isSigned

      public final boolean isSigned()
    • isUnsigned

      public final boolean isUnsigned()
    • isFloating

      public final boolean isFloating()
    • isOther

      public final boolean isOther()
    • forClass

      public static JvmType forClass(Class<?> clazz)
    • forValue

      public static JvmType forValue(Object value, boolean unboxPrimitives)