#108 IClass: new implementation with more than one IClass inside

Otwarty
otworzone 2 lat temu przez ranides · 2 komentarzy
ranides skomentował 2 lat temu

We need IClass which stores more than one type inside.

Semantic:

  • generally it represents alternative: type is one of stored
  • methods/fields return common set (so most of the time: almost nothing)
  • instanceof checks return true if any type matches

Such multi-type can be used inside BeanMethods which can represent group of overloaded methods. It can be used by wildcard types etc.

For example: net.ranides.assira.reflection.impl.RWClass#raw

We need IClass which stores more than one type inside. Semantic: - generally it represents alternative: type is one of stored - methods/fields return common set (so most of the time: almost nothing) - instanceof checks return true if any type matches Such multi-type can be used inside BeanMethods which can represent group of overloaded methods. It can be used by wildcard types etc. For example: net.ranides.assira.reflection.impl.RWClass#raw
ranides skomentował 2 lat temu
Właściciel
net.ranides.assira.reflection.impl.RWClass#raw
// @todo "raw": we can do better, if we have only 1 "extends" type, we can return it
// maybe we should add another method like "bounded"?
// it is not defined very well, because we can extend more than one type and
// we should use just "isSubclass"
``` net.ranides.assira.reflection.impl.RWClass#raw // @todo "raw": we can do better, if we have only 1 "extends" type, we can return it // maybe we should add another method like "bounded"? // it is not defined very well, because we can extend more than one type and // we should use just "isSubclass" ```
ranides skomentował 2 lat temu
Właściciel
net.ranides.assira.reflection.impl.bean.RBeanMethods#returns

// @todo refine BeanMethod.returns/arguments for overloaded methods
//
// maybe we should implement something tricky like... composite IClass for returns?
// something like composite arguments for arguments?
// or we should put error into validation
``` net.ranides.assira.reflection.impl.bean.RBeanMethods#returns // @todo refine BeanMethod.returns/arguments for overloaded methods // // maybe we should implement something tricky like... composite IClass for returns? // something like composite arguments for arguments? // or we should put error into validation ```
Zaloguj się, aby dołączyć do tej rozmowy.
Brak kamienia milowego
Brak przypisania
1 uczestników
Ładowanie...
Anuluj
Zapisz
Nie ma jeszcze treści.