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

Method static_class_field

rust/src/api/mod.rs:950–961  ·  view source on GitHub ↗

Retrieves the field `field_name` of a static class.

(
        &self,
        class_name: &str,
        field_name: &str,
    )

Source from the content-addressed store, hash-verified

948
949 /// Retrieves the field `field_name` of a static class.
950 pub fn static_class_field(
951 &self,
952 class_name: &str,
953 field_name: &str,
954 ) -> errors::Result<Instance> {
955 debug(&format!(
956 "Retrieving field {} of static class {}",
957 field_name, class_name
958 ));
959 let i = self.static_class(class_name)?;
960 self.field(&i, field_name)
961 }
962
963 /// Invokes the method `method_name` of a created `Instance`, passing an array of `InvocationArg`s.
964 /// It returns a Result of `InstanceReceiver` that may be used to get an underlying `Receiver<Instance>`. The result of the invocation will come via this Receiver.

Callers 2

Calls 3

debugFunction · 0.85
static_classMethod · 0.80
fieldMethod · 0.65

Tested by

no test coverage detected