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]

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_annotation(&self, ind: usize) -> Option<&Vec<Content>>[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 Debug for ObjectData[src]

impl PartialEq<ObjectData> for ObjectData[src]

impl StructuralPartialEq for ObjectData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.