Enum Class StackType

java.lang.Object
java.lang.Enum<StackType>
org.benf.cfr.reader.bytecode.analysis.types.StackType
All Implemented Interfaces:
Serializable, Comparable<StackType>, Constable

public enum StackType extends Enum<StackType>
See table 3.3 in JVM spec.
  • Enum Constant Details

    • INT

      public static final StackType INT
    • FLOAT

      public static final StackType FLOAT
    • REF

      public static final StackType REF
    • RETURNADDRESS

      public static final StackType RETURNADDRESS
    • RETURNADDRESSORREF

      public static final StackType RETURNADDRESSORREF
    • LONG

      public static final StackType LONG
    • DOUBLE

      public static final StackType DOUBLE
    • VOID

      public static final StackType VOID
  • Field Details

    • computationCategory

      private final int computationCategory
    • asList

      private final StackTypes asList
    • closed

      private final boolean closed
    • name

      private final String name
  • Constructor Details

    • StackType

      private StackType(String name, int computationCategory, boolean closed)
  • Method Details

    • values

      public static StackType[] 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 StackType 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
    • getComputationCategory

      public int getComputationCategory()
    • asList

      public StackTypes asList()
    • isClosed

      public boolean isClosed()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<StackType>