Sinobu

kiss

Model<M>

  • M
Model is the advanced representation of Class in Sinobu.

typeClassM

The Class which is represented by this Model.

atomicboolean

Whether this Model is an atomic type or object type.

decoderDecoderM

The associated decoder.

encoderEncoderM

The associated encoder.

properties()CollectionProperty

CollectionProperty

List up all properties.

property(Stringname)Property

Stringname

A name of property.

Property

A suitable property or null.

Find the property which has the specified name in this object model. If the suitable property is not found, null is returned.

get(Mobject, Propertyproperty)Object

Mobject

An object as source. This value must not be null.

Propertyproperty

A property. This value must not be null.

Object

A resolved property value. This value may be null.

Returns the value of the given property in the given object.

set(Mobject, Propertyproperty, Objectvalue)M

Mobject

An object as source. This value must not be null.

Propertyproperty

A property. This value must not be null.

Objectvalue

A new property value that you want to set. This value accepts null.

M

Change the given property in the given object to the given new property value.

observe(Mobject, Propertyproperty)Signal

Mobject

An object as source. This value must not be null.

Propertyproperty

A property. This value must not be null.

Signal

A property observer.

Observe the given property in the given object.

walk(Mobject, WiseTriConsumerModelM, Property, Objectwalker)void

Mobject

An object as source. This value must not be null,

WiseTriConsumerModelM, Property, Objectwalker

A property iterator. This value accepts null.

Iterate over all properties in the given object and propagate the property, and it's value to the given property walker.

of(MmodelType)ModelM

M
MmodelType

A model class.

ModelM

The information about the given model class.

Utility method to retrieve the cached model. If the model of the given class is not found, IllegalArgumentException will be thrown.

If the given model has no cached information, it will be created automatically. This operation is thread-safe.

Note : All classes do not necessary have each information. Some classes might share same Model object. (e.g. AutoGenerated Class)

of(Class?MmodelClass)ModelM

M
Class?MmodelClass

A model class.

ModelM

The information about the given model class.

Utility method to retrieve the cached model. If the model of the given class is not found, IllegalArgumentException will be thrown.

If the given model has no cached information, it will be created automatically. This operation is thread-safe.

Note : All classes do not necessary have each information. Some classes might share same Model object. (e.g. AutoGenerated Class)

collectAnnotatedMethods(Classclazz)MapMethod, ListAnnotation

Classclazz

A target class.

MapMethod, ListAnnotation

A table of method and annotations.

Collect all annotated methods and their annotations.

collectConstructors(ClassTclazz)ConstructorT

T

A class type.

ClassTclazz

A target class.

ConstructorT

A collected constructors.

Collect all constructors which are defined in the specified Class. If the given class is interface, primitive types, array class or void, empty array will be return.

collectTypes(Classclazz)SetClass

Classclazz

A target class. null will be return the empty set.

SetClass

A set of classes, with predictable bottom-up iteration order.

Collect all classes which are extended or implemented by the target class.

collectParameters(Typetype, GenericDeclarationtarget)Type

Typetype

A class type which implements(extends) the specified target interface(class). null will be return the zero-length array.

GenericDeclarationtarget

A target type to list up types. null will be return the zero-length array.

Type

A list of actual types.

List up all target types which are implemented or extended by the specified class.