Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Java ±à³ÌµÄ¶¯Ì¬ÐÔ£¬µÚ 7 ²¿·Ö: Óà BCEL Éè¼Æ×Ö½ÚÂë

Apache Byte Code Engineering Library (BCEL)¿ÉÒÔÉîÈë Java
ÀàµÄ×Ö½ÚÂë¡£¿ÉÒÔÓÃËüת»»ÏÖÓеÄÀà±íʾ»òÕß¹¹½¨ÐµÄÀ࣬ÒòΪ BCEL ÔÚµ¥¶ÀµÄ JVM
Ö¸Á±ðÉϽøÐвÙ×÷£¬ËùÒÔ¿ÉÒÔÈÃÄú¶Ô´úÂëÓÐ×îÇ¿´óµÄ¿ØÖÆ¡£²»¹ý£¬ÕâÖÖÄÜÁ¦µÄ´ú¼ÛÊǸ´ÔÓÐÔ¡£ÔÚ±¾ÎÄÖУ¬Java ¹ËÎÊ Dennis Sosnoski
½éÉÜÁË BCEL µÄ»ù±¾ÄÚÈÝ£¬²¢Òýµ¼¶ÁÕßÍê³ÉÒ»¸öʾÀý BCEL Ó¦ÓóÌÐò£¬ÕâÑùÄú¾Í¿ÉÒÔ×Ô¼º¾ö¶¨ÊÇ·ñÖµµÃÒÔÕâÖÖ¸´ÔÓÐÔÀ´»»È¡ÕâÖÖÄÜÁ¦¡£
ÔÚ±¾ÏµÁеÄ×îºóÈýƪÎÄÕÂÖÐ,ÎÒչʾÁËÈçºÎÓà Javassist ¿ò¼Ü²Ù×÷Àà¡£Õâ´ÎÎÒ½«ÓÃÒ»Öֺܲ»Í¬µÄ·½·¨²Ù×Ý×Ö½ÚÂ뗗ʹÓà Apache Byte
Code Engineering Library (BCEL)¡£Óë Javassist ËùÖ§³ÖµÄÔ´´úÂë½Ó¿Ú²»Í¬£¬BCEL ÔÚʵ¼ÊµÄ JVM
Ö¸Áî²ã´ÎÉϽøÐвÙ×÷¡£ÔÚÏ£Íû¶Ô³ÌÐòÖ´ÐеÄÿһ²½½øÐпØÖÆʱ£¬µ×²ã·½·¨Ê¹ BCEL ºÜÓÐÓ㬵«Êǵ±Á½Õ߶¼¿ÉÒÔʤÈÎʱ£¬ËüҲʹ BCEL µÄʹÓñÈ
Javassist Òª¸´Ôӵöࡣ
ÎÒ½«Ê×ÏÈÌÖÂÛ BCEL »ù±¾Ìåϵ½á¹¹£¬È»ºó±¾ÎĵĴ󲿷ÖÄÚÈݽ«ÌÖÂÛÓà BCEL ÖØй¹½¨ÎҵĵÚÒ»¸ö Javassist Àà²Ù×÷µÄÀý×Ó¡£×îºó¼òÒª½éÉÜ
BCEL °üÖÐÌṩµÄһЩ¹¤¾ßºÍ¿ª·¢ÈËÔ±Óà BCEL ¹¹½¨µÄһЩӦÓóÌÐò¡£
BCEL Àà·ÃÎÊ
BCEL ʹÄúÄܹ»Í¬Ñù¾ß±¸ Javassist ÌṩµÄ·ÖÎö¡¢±à¼­ºÍ´´½¨ Java ¶þ½øÖÆÀàµÄËùÓлù±¾ÄÜÁ¦¡£BCEL µÄÒ»¸öÃ÷ÏÔÇø±ðÊÇÿÏîÄÚÈݶ¼Éè¼ÆΪÔÚ
JVM »ã±àÓïÑԵļ¶±ð¡¢¶ø²»ÊÇ Javassist ËùÌṩµÄÔ´´úÂë½Ó¿ÚÉϹ¤×÷¡£³ýÁ˱íÃæÉϵIJî±ð£¬»¹ÓÐһЩ¸üÉî²ãµÄÇø±ð£¬°üÀ¨ÔÚ BCEL ÖÐ×é¼þµÄÁ½¸ö²»Í¬²ã´Î½á¹¹µÄʹÓ×—Ò»¸öÓÃÓÚ¼ì²éÏÖÓеĴúÂ룬ÁíÒ»¸öÓÃÓÚ´´½¨Ð´úÂë¡£ÎÒ¼Ù¶¨¶ÁÕßÒѾ­Í¨¹ý±¾ÏµÁÐÇ°ÃæµÄÎÄÕÂÊìϤÁË
Javassist£¨Çë²ÎÔIJàÀ¸
²»Òª´í¹ý±¾ÏµÁеÄÆäÓಿ·Ö
£©¡£
Òò´ËÎÒ½«Ö÷Òª½éÉÜÔÚ¿ªÊ¼Ê¹Óà BCEL ʱ£¬¿ÉÄÜ»áÈÃÄú¸Ðµ½ÃÔ»óµÄÄÇЩ²»Í¬Ö®´¦¡£

Óë Javassist Ò»Ñù£¬ BCEL ÔÚÀà·ÖÎö·½ÃæµÄ¹¦ÄÜ»ù±¾ÉÏÓë Java ƽ̨ͨ¹ý Relfection API Ö±½ÓÌṩµÄ¹¦ÄÜÊÇÖظ´µÄ¡£ÕâÖÖÖظ´¶ÔÓÚÀà²Ù×÷¹¤¾ßÏäÀ´ËµÊDZØÒªµÄ£¬ÒòΪһ°ã²»Ï£ÍûÔÚËùÒª²Ù×÷µÄÀà±»ÐÞ¸Ä
֮ǰ
¾Í×°ÔØËüÃÇ¡£

²»Òª´í¹ý±¾ÏµÁеÄÆäÓಿ·Ö
µÚ 1 ²¿·Ö£º “
ÀàºÍÀà×°Èë
”£¨2003
Äê 4 Ô£©

µÚ 2 ²¿·Ö£¬“
ÒýÈë·´Éä

£¨2003 Äê 6 Ô£©

µÚ 3 ²¿·Ö£¬“
Ó¦Ó÷´Éä

£¨2003 Äê 7 Ô£©

µÚ 4 ²¿·Ö£¬ “
ÓÃ
Javassist ½øÐÐÀàת»»
&rdquo


Ïà¹ØÎĵµ£º

Java»ù´¡Ö®ÄÚ²¿Àà

¸ÕÔÚÒ»¸ö½Ð51ctoµÄÍøÕ¾¿´µ½µÄ£¬¸Ð¾õÕâ¸çÃÇ×ܽáµÄ±È½ÏÈ«ÁË£¬Àý×Ó¶¼ºÜ¼òµ¥£¬¶¼ÄÜ˵Ã÷ÎÊÌâ¡£Êղأ¬ºÇºÇ¡£
»¹ÓоÍÊǼ¯ºÏÀïÓõĵü´úÆ÷Ò²ÊÇÄÚ²¿ÀàµÄÉè¼Æ£¬ÎÒÒ²¾ÍÖªµÀÕâÒ»¸ö£¬¹þ¹þ¡£
ÒÔÏÂΪԭÎÄ£º
¶ÔÓÚJavaÄÚ²¿À࣬´ó¼Òʵ¼ÊÉÏÁ˽ⲻ¶à¡£ÔÚÕâÀïÎÒÃÇÒÔʵ¼Ê´úÂëµÄÐÎʽ£¬Îª´ó¼ÒÏêϸ½éÉÜJavaÄÚ²¿ÀàÔÚGUIÉè¼ÆµÄ×÷Óá£
JavaÄÚ²¿ÀàÆäʵ ......

Java»ù´¡ÖªÊ¶

JAVAÏà¹Ø»ù´¡ÖªÊ¶
1¡¢ÃæÏò¶ÔÏóµÄÌØÕ÷ÓÐÄÄЩ·½Ãæ
2¡¢StringÊÇ×î»ù±¾µÄÊý¾ÝÀàÐÍÂð?
3¡¢int ºÍ Integer ÓÐʲôÇø±ð
4¡¢String ºÍStringBufferµÄÇø±ð
5¡¢ÔËÐÐʱÒì³£ÓëÒ»°ãÒì³£ÓкÎÒìͬ£¿
6¡¢Ëµ³öServletµÄÉúÃüÖÜÆÚ£¬²¢Ëµ³öServletºÍCGIµÄÇø±ð¡£
7¡¢Ëµ³öArrayList,Vector, LinkedListµÄ´æ´¢ÐÔÄܺÍÌØÐÔ
8¡¢EJBÊÇ»ùÓÚÄÄЩ ......

Java¿ª·¢¹¤¾ßJava IDE GelºÍJcreatorʹÓü¼ÇÉ×ܽá

Ê×ÏȽéÉÜ Ò»¿îСÇɵÄJava IDE - Gel
          ÔÚ¡¶³ÌÐòÔ±¡·ÔÓÖ¾2006ÄêµÚ4ÆÚ¿´µ½½éÉÜһƪ½éÉÜ Free Java IDEµÄÎÄÕ£¬ÀïÃæÌáµ½ÁËGelÕâ¸ö±àÒëÆ÷¡£ÓÚÊÇÉÏÍøËÑÁËһϣ¬¹ûÈ»ÕÒµ½ÁË£¬¹Ù·½ÍøÖ·ÊÇ£ºhttp://memescape.co.uk/gexperts/¡£×îеİ汾ÊÇRC39£¬Ìå»ýºÜС£¬°²×°ÎļþÖ» ......

java»ñµÃ´úÀíÕæʵIP


ÏîÄ¿ÖÐÐèÒªºÍµÚÈý·½Æ½Ì¨½Ó¿Ú£¬¼ÓÁËÀ´Ô´IP¼øȨ¹¦ÄÜ£¬²âÊÔʱ·¢ÏÖûÓÐÎÊÌ⣬µ«ÊDz¿ÊðÒÔºó·¢ÏÖ´æÔÚÎÊÌ⣬һֱ¼øȨ²»Í¨¹ý£¬Ò»ÈºÈËץϹ¡£
ÎÒÕÒµ½ÄÇ¿éµÄ´úÂ룬¸úÁËÒ»±éÁ÷³Ì·¢ÏÖÂß¼­Ã»ÓÐɶÎÊÌ⣬µ«ÊÇ×îÖյĽá¹ûÈ´»¹ÊǼøȨ²»Í¨¹ý£¬ÊµÔÚÓÐЩ¹îÒì¡£Æä»ù±¾Âß¼­ÎªÏÈÈ¡µÃÅäÖõÄIPÁÐ±í£¬È»ºóͨ¹ýrequest.getRemoteAddr()È¡µÃ¿Í»§¶ËµÄIPµ ......

java»ñÈ¡µ±Ç°Â·¾¶

1¡¢ÀûÓÃSystem.getProperty()º¯Êý»ñÈ¡µ±Ç°Â·¾¶£º 
System.out.println(System.getProperty("user.dir"));//user.dirÖ¸¶¨Á˵±Ç°µÄ·¾¶ 
2¡¢Ê¹ÓÃFileÌṩµÄº¯Êý»ñÈ¡µ±Ç°Â·¾¶£º 
File directory = new File("");//É趨Ϊµ±Ç°Îļþ¼Ð 
try{ 
    System.out.println(directory.get ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ