Enum StackType
- java.lang.Object
-
- java.lang.Enum<StackType>
-
- org.benf.cfr.reader.bytecode.analysis.types.StackType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DOUBLE
FLOAT
INT
LONG
REF
RETURNADDRESS
RETURNADDRESSORREF
VOID
-
Field Summary
Fields Modifier and Type Field Description private StackTypes
asList
private boolean
closed
private int
computationCategory
private java.lang.String
name
-
Constructor Summary
Constructors Modifier Constructor Description private
StackType(java.lang.String name, int computationCategory, boolean closed)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StackTypes
asList()
int
getComputationCategory()
boolean
isClosed()
java.lang.String
toString()
static StackType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static StackType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
computationCategory
private final int computationCategory
-
asList
private final StackTypes asList
-
closed
private final boolean closed
-
name
private final java.lang.String name
-
-
Method Detail
-
values
public static StackType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StackType c : StackType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StackType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getComputationCategory
public int getComputationCategory()
-
asList
public StackTypes asList()
-
isClosed
public boolean isClosed()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<StackType>
-
-