MCPcopy Create free account
hub / github.com/astonbitecode/j4rs / get_class_str

Method get_class_str

rust/src/api/mod.rs:2071–2086  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

2069
2070impl<'a> JavaClass<'a> {
2071 pub fn get_class_str(&self) -> &'a str {
2072 match self {
2073 Self::Void => "void",
2074 Self::String => CLASS_STRING,
2075 Self::Boolean => CLASS_BOOLEAN,
2076 Self::Byte => CLASS_BYTE,
2077 Self::Character => CLASS_CHARACTER,
2078 Self::Short => CLASS_SHORT,
2079 Self::Integer => CLASS_INTEGER,
2080 Self::Long => CLASS_LONG,
2081 Self::Float => CLASS_FLOAT,
2082 Self::Double => CLASS_DOUBLE,
2083 Self::List => CLASS_LIST,
2084 Self::Of(str) => str,
2085 }
2086 }
2087}
2088
2089impl<'a> From<JavaClass<'a>> for &'a str {

Callers 2

to_rust_boxedMethod · 0.80
fromMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected