Class Type
- java.lang.Object
-
- jp.gr.java_conf.dangan.lang.reflect.Type
-
public class Type extends java.lang.Object
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
match(java.lang.Class type, java.lang.Object obj)
obj ?? type ?????????????????????B obj ?? Type.parse( type, obj ) ?????????\?????? true???????Bstatic boolean
matchAll(java.lang.Class[] types, java.lang.Object[] args)
args ?? Type.parse ?????????????????? types ?????v?????????????Bstatic boolean
matchFull(java.lang.Class type, java.lang.Object obj)
obj ???????????? type ?????v?????????????Bstatic boolean
matchFullAll(java.lang.Class[] types, java.lang.Object[] args)
args ???????????? types ?????v?????????????Bstatic boolean
matchRestrict(java.lang.Class type, java.lang.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(java.lang.Class[] types, java.lang.Object[] args)
args ?? Type.parse ?????????????????? types ?????v?????????????B matchAll() ??????????????????Bstatic java.lang.Object
parse(java.lang.Class type, java.lang.Object obj)
Factory.match( type, obj ) ???}?b?`???? obj ?? type ???????????^???????????Bstatic java.lang.Object[]
parseAll(java.lang.Class[] types, java.lang.Object[] args)
Factory.matchAll( types, args ) ???}?b?`???? args ?? ???????? types ???????????^???????????B
-
-
-
Method Detail
-
matchFullAll
public static boolean matchFullAll(java.lang.Class[] types, java.lang.Object[] args)
args ???????????? types ?????v?????????????B- Parameters:
types
- ?^?????z??args
- ???????????I?u?W?F?N?g?z??- Returns:
- args ?? types ?????v?????? true?B
?????? flase?B
-
matchRestrictAll
public static boolean matchRestrictAll(java.lang.Class[] types, java.lang.Object[] args)
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
public static boolean matchAll(java.lang.Class[] types, java.lang.Object[] args)
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
public static boolean matchFull(java.lang.Class type, java.lang.Object obj)
obj ???????????? type ?????v?????????????B- Parameters:
type
- ?^????obj
- ???????????I?u?W?F?N?g- Returns:
- obj ?? type ?????????????? true?B
?????? false?B
-
matchRestrict
public static boolean matchRestrict(java.lang.Class type, java.lang.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 ???????B- Parameters:
type
- ?^????obj
- ???????????I?u?W?F?N?g- Returns:
- obj ?? type ?????????????? true?B
?????? false?B
-
match
public static boolean match(java.lang.Class type, java.lang.Object obj)
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
public static java.lang.Object[] parseAll(java.lang.Class[] types, java.lang.Object[] args)
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:
java.lang.IllegalAccessError
- args ?? types ???????s???\???????B
-
parse
public static java.lang.Object parse(java.lang.Class type, java.lang.Object obj)
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:
java.lang.IllegalArgumentException
- Factory.match( type, obj ) ???}?b?`???????? obj ?? ?????????????????????B
-
-