Class Type
java.lang.Object
jp.gr.java_conf.dangan.lang.reflect.Type
Reflection ???@?\?????�‘????????????????
?^?????????????[?e?B???e?B?N???X?B
-- revision history -- $Log: Type.java,v $ Revision 1.0 2002/10/01 00:00:00 dangan first edition add to version control
- Version:
- $Revision: 1.0 $
- Author:
- $Author: dangan $
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanobj ?? type ?????????????????????B obj ?? Type.parse( type, obj ) ?????????\?????? true???????Bstatic booleanargs ?? Type.parse ?????????????????? types ?????v?????????????Bstatic booleanobj ???????????? type ?????v?????????????Bstatic booleanmatchFullAll(Class[] types, Object[] args) args ???????????? types ?????v?????????????Bstatic booleanmatchRestrict(Class type, Object obj) obj ?? type ?????????????????????B type ?????l???????v???~?e?B?u?^ ( byte, short, int, long, float, double ???�‘?????? )?? ???????A???? obj ???????????v???~?e?B?u?????b?p?^?A ( Byte, Short, Integer, Long, Float, Double ???�‘?????? ) ???C???X?^???X?????????? ???????\?????f???? true ???????Bstatic booleanmatchRestrictAll(Class[] types, Object[] args) args ?? Type.parse ?????????????????? types ?????v?????????????B matchAll() ???????�˜???????????Bstatic ObjectFactory.match( type, obj ) ???}?b?`???? obj ?? type ???????????^???????????Bstatic Object[]Factory.matchAll( types, args ) ???}?b?`???? args ?? ???????? types ???????????^???????????B
-
Method Details
-
matchFullAll
args ???????????? types ?????v?????????????B- Parameters:
types- ?^?????z??args- ???????????I?u?W?F?N?g?z??- Returns:
- args ?? types ?????v?????? true?B
?????? flase?B
-
matchRestrictAll
args ?? Type.parse ?????????????????? types ?????v?????????????B matchAll() ???????�˜???????????B- Parameters:
types- ?^?????z??args- ???????????I?u?W?F?N?g?z??- Returns:
- args ?? types ?????v?????? true?B
?????? flase?B
-
matchAll
args ?? Type.parse ?????????????????? types ?????v?????????????B- Parameters:
types- ?^?????z??args- ???????????I?u?W?F?N?g?z??- Returns:
- args ?? types ?????v?????? true?B
?????? flase?B
-
matchFull
obj ???????????? type ?????v?????????????B- Parameters:
type- ?^????obj- ???????????I?u?W?F?N?g- Returns:
- obj ?? type ?????????????? true?B
?????? false?B
-
matchRestrict
obj ?? type ?????????????????????B type ?????l???????v???~?e?B?u?^ ( byte, short, int, long, float, double ???�‘?????? )?? ???????A???? obj ???????????v???~?e?B?u?????b?p?^?A ( Byte, Short, Integer, Long, Float, Double ???�‘?????? ) ???C???X?^???X?????????? ???????\?????f???? true ???????B- Parameters:
type- ?^????obj- ???????????I?u?W?F?N?g- Returns:
- obj ?? type ?????????????? true?B
?????? false?B
-
match
obj ?? type ?????????????????????B obj ?? Type.parse( type, obj ) ?????????\?????? true???????B- Parameters:
type- ?^????obj- ???????????I?u?W?F?N?g- Returns:
- obj ?? type ?????????????? true?B
?????? false?B
-
parseAll
Factory.matchAll( types, args ) ???}?b?`???? args ?? ???????? types ???????????^???????????B- Parameters:
types- ?????????^?????z??args- ???????????I?u?W?F?N?g?z??- Returns:
- ?????????I?u?W?F?N?g?z??
- Throws:
IllegalAccessError- args ?? types ???????s???\???????B
-
parse
Factory.match( type, obj ) ???}?b?`???? obj ?? type ???????????^???????????B- Parameters:
type- ?????????^????obj- ???????????I?u?W?F?N?g- Returns:
- ?????????I?u?W?F?N?g
- Throws:
IllegalArgumentException- Factory.match( type, obj ) ???}?b?`?????�‘???�‘ obj ?? ?????????????????????B
-