Enum rust_jvm::vm::sig::Type
[−]
[src]
pub enum Type { Byte, Char, Double, Float, Int, Long, Short, Boolean, Reference(Class), }
Java language type information.
Variants
Byte | ||
Char | ||
Double | ||
Float | ||
Int | ||
Long | ||
Short | ||
Boolean | ||
Reference |
Methods
impl Type
fn new(type_str: &str) -> Self
fn new_multi(multi_type_str: &str) -> (Vec<Self>, &str)
Compute a sequence of types from a JVM-internal string representation.
fn new_partial(type_str: &str) -> Result<(Self, &str), ()>
Compute a type from a JVM-internal string representation.
fn default_value(&self) -> Value
Get the default value for the type. Java's default values for integers is 0
, floats
0.0
, characters '\0'
, booleans false
, and references null
.