Struct jaded::ObjectData [−][src]
pub struct ObjectData { /* fields omitted */ }
Object data representing serialized Java object
Gives access to field data and class as well as any raw data added via a custom writeObject/writeExternal method.
Implementations
impl ObjectData
[src]
impl ObjectData
[src]pub fn class_name(&self) -> &str
[src]
Get the fully qualified class name of the type of this object
pub fn get_field(&self, name: &str) -> Option<&Value>
[src]
Get the value associated with a field if it exists
None
indicates that the field is not present. A null
value will
be returned as Some(Value::Null)
.
pub fn get_field_as<T: FromJava>(&self, name: &str) -> ConversionResult<T>
[src]
Get field and convert to Rust entity
pub fn get_annotation(&self, ind: usize) -> Option<AnnotationIter<'_>>
[src]
Get the annotations written by a class in this object’s class hierachy
eg if Child
extends Parent
, then get_annotation(0)
on an instance of Child
will return
the annotations written by Parent
and get_annotation(1)
will return annotations written
by Child
.
pub fn annotation_count(&self) -> usize
[src]
Get the total number of object annotations added to this object by any of the classes in its class hierarchy.
pub fn field_count(&self) -> usize
[src]
Get the number of fields written for this object
Trait Implementations
impl PartialEq<ObjectData> for ObjectData
[src]
impl PartialEq<ObjectData> for ObjectData
[src]fn eq(&self, other: &ObjectData) -> bool
[src]
fn ne(&self, other: &ObjectData) -> bool
[src]
impl StructuralPartialEq for ObjectData
[src]
impl StructuralPartialEq for ObjectData
[src]Auto Trait Implementations
impl RefUnwindSafe for ObjectData
impl RefUnwindSafe for ObjectData
impl Send for ObjectData
impl Send for ObjectData
impl Sync for ObjectData
impl Sync for ObjectData
impl Unpin for ObjectData
impl Unpin for ObjectData
impl UnwindSafe for ObjectData
impl UnwindSafe for ObjectData