|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcodesimian.wrap.WrapAbilities.WrapWrapAbilities
public static class WrapAbilities.WrapWrapAbilities
wrap a subclass of WrapAbilities in this to limit it to the functions of WrapAbilities.
You may want to do that if you give a WrapAbilities to objects that may try to modify it
by casting to a type they know how to modify.
This class is probably not needed... Instead I should build a general
transformer of java object to string java code for wrapper class of that object type.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface codesimian.wrap.WrapAbilities |
|---|
WrapAbilities.WrapWrapAbilities |
| Constructor Summary | |
|---|---|
WrapAbilities.WrapWrapAbilities(WrapAbilities wa)
|
|
| Method Summary | |
|---|---|
double |
accuracyOfWrap(java.lang.Class from,
java.lang.Class to)
returns 0 if can not wrap that way, else returns a number between 0 and 1. |
double |
costOfWrap(java.lang.Class from,
java.lang.Class to)
default should be 1000 |
java.util.List<java.lang.Class> |
getAllFrom()
all types of input objects that can be used to create at least 1 other type of object each, (and optionally with preferred classes at lower index) |
java.util.List<java.lang.Class> |
getAllFromForThisTo(java.lang.Class to)
returns all input types that can be converted to the 'to' type, (and optionally with preferred classes at lower index) |
java.util.List<java.lang.Class> |
getAllTo()
all types that can be created, given the required input object, (and optionally with preferred classes at lower index) |
java.util.List<java.lang.Class> |
getAllToForThisFrom(java.lang.Class from)
returns all output types that can be converted to the 'from' type, (and optionally with preferred classes at lower index) |
java.util.List<WrapAbility> |
getAllWrapAbilitys()
beware: these could be generated at the time this function is called |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WrapAbilities.WrapWrapAbilities(WrapAbilities wa)
| Method Detail |
|---|
public double accuracyOfWrap(java.lang.Class from,
java.lang.Class to)
WrapAbilities
accuracyOfWrap in interface WrapAbilities
public double costOfWrap(java.lang.Class from,
java.lang.Class to)
WrapAbilities
costOfWrap in interface WrapAbilitiespublic java.util.List<java.lang.Class> getAllFrom()
WrapAbilities
getAllFrom in interface WrapAbilitiespublic java.util.List<java.lang.Class> getAllTo()
WrapAbilities
getAllTo in interface WrapAbilitiespublic java.util.List<java.lang.Class> getAllFromForThisTo(java.lang.Class to)
WrapAbilities
getAllFromForThisTo in interface WrapAbilitiespublic java.util.List<java.lang.Class> getAllToForThisFrom(java.lang.Class from)
WrapAbilities
getAllToForThisFrom in interface WrapAbilitiespublic java.util.List<WrapAbility> getAllWrapAbilitys()
WrapAbilities
getAllWrapAbilitys in interface WrapAbilities
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||