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 boolean
obj ?? type ?????????????????????B obj ?? Type.parse( type, obj ) ?????????\?????? true???????Bstatic boolean
args ?? Type.parse ?????????????????? types ?????v?????????????Bstatic boolean
obj ???????????? type ?????v?????????????Bstatic boolean
matchFullAll
(Class[] types, Object[] args) args ???????????? types ?????v?????????????Bstatic boolean
matchRestrict
(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 boolean
matchRestrictAll
(Class[] types, Object[] args) args ?? Type.parse ?????????????????? types ?????v?????????????B matchAll() ??????????????????Bstatic Object
Factory.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
-