PageRenderTime 50ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 1ms

/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/jedit/bsh/ReflectManager.html

#
HTML | 297 lines | 244 code | 41 blank | 12 comment | 0 complexity | 3ae9bd625cd6f92dfefc8f740527786d MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.5.0_14) on Tue Jul 22 07:13:50 GMT-08:00 2008 -->
  6. <TITLE>
  7. ReflectManager (jEdit API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.gjt.sp.jedit.bsh.ReflectManager class">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
  11. <NOSCRIPT>
  12. </NOSCRIPT>
  13. </HEAD>
  14. <BODY BGCOLOR="white" >
  15. <!-- ========= START OF TOP NAVBAR ======= -->
  16. <A NAME="navbar_top"><!-- --></A>
  17. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  18. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  19. <TR>
  20. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  21. <A NAME="navbar_top_firstrow"><!-- --></A>
  22. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  23. <TR ALIGN="center" VALIGN="top">
  24. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  25. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  26. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  27. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ReflectManager.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  28. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  29. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  30. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  31. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  32. </TR>
  33. </TABLE>
  34. </TD>
  35. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  36. </EM>
  37. </TD>
  38. </TR>
  39. <TR>
  40. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  41. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html" title="class in org.gjt.sp.jedit.bsh"><B>PREV CLASS</B></A>&nbsp;
  42. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/Remote.html" title="class in org.gjt.sp.jedit.bsh"><B>NEXT CLASS</B></A></FONT></TD>
  43. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  44. <A HREF="../../../../../index.html?org/gjt/sp/jedit/bsh/ReflectManager.html" target="_top"><B>FRAMES</B></A> &nbsp;
  45. &nbsp;<A HREF="ReflectManager.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  46. &nbsp;
  47. <NOSCRIPT>
  48. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  49. </NOSCRIPT>
  50. </FONT></TD>
  51. </TR>
  52. <TR>
  53. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  54. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  55. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  56. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  57. </TR>
  58. </TABLE>
  59. <A NAME="skip-navbar_top"></A>
  60. <!-- ========= END OF TOP NAVBAR ========= -->
  61. <HR>
  62. <!-- ======== START OF CLASS DATA ======== -->
  63. <H2>
  64. <FONT SIZE="-1">
  65. org.gjt.sp.jedit.bsh</FONT>
  66. <BR>
  67. Class ReflectManager</H2>
  68. <PRE>
  69. java.lang.Object
  70. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.bsh.ReflectManager</B>
  71. </PRE>
  72. <DL>
  73. <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../org/gjt/sp/jedit/bsh/reflect/ReflectManagerImpl.html" title="class in org.gjt.sp.jedit.bsh.reflect">ReflectManagerImpl</A></DD>
  74. </DL>
  75. <HR>
  76. <DL>
  77. <DT><PRE>public abstract class <B>ReflectManager</B><DT>extends java.lang.Object</DL>
  78. </PRE>
  79. <P>
  80. ReflectManager is a dynamically loaded extension that supports extended
  81. reflection features supported by JDK1.2 and greater.
  82. In particular it currently supports accessible method and field access
  83. supported by JDK1.2 and greater.
  84. <P>
  85. <P>
  86. <HR>
  87. <P>
  88. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  89. <A NAME="constructor_summary"><!-- --></A>
  90. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  91. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  92. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  93. <B>Constructor Summary</B></FONT></TH>
  94. </TR>
  95. <TR BGCOLOR="white" CLASS="TableRowColor">
  96. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ReflectManager.html#ReflectManager()">ReflectManager</A></B>()</CODE>
  97. <BR>
  98. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  99. </TR>
  100. </TABLE>
  101. &nbsp;
  102. <!-- ========== METHOD SUMMARY =========== -->
  103. <A NAME="method_summary"><!-- --></A>
  104. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  105. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  106. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  107. <B>Method Summary</B></FONT></TH>
  108. </TR>
  109. <TR BGCOLOR="white" CLASS="TableRowColor">
  110. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  111. <CODE>static&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/ReflectManager.html" title="class in org.gjt.sp.jedit.bsh">ReflectManager</A></CODE></FONT></TD>
  112. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ReflectManager.html#getReflectManager()">getReflectManager</A></B>()</CODE>
  113. <BR>
  114. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the singleton bsh ReflectManager.</TD>
  115. </TR>
  116. <TR BGCOLOR="white" CLASS="TableRowColor">
  117. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  118. <CODE>static&nbsp;boolean</CODE></FONT></TD>
  119. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ReflectManager.html#RMSetAccessible(java.lang.Object)">RMSetAccessible</A></B>(java.lang.Object&nbsp;obj)</CODE>
  120. <BR>
  121. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reflect Manager Set Accessible.</TD>
  122. </TR>
  123. <TR BGCOLOR="white" CLASS="TableRowColor">
  124. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  125. <CODE>abstract &nbsp;boolean</CODE></FONT></TD>
  126. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ReflectManager.html#setAccessible(java.lang.Object)">setAccessible</A></B>(java.lang.Object&nbsp;o)</CODE>
  127. <BR>
  128. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a java.lang.reflect Field, Method, Constructor, or Array of
  129. accessible objects to accessible mode.</TD>
  130. </TR>
  131. </TABLE>
  132. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  133. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  134. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  135. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  136. </TR>
  137. <TR BGCOLOR="white" CLASS="TableRowColor">
  138. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  139. </TR>
  140. </TABLE>
  141. &nbsp;
  142. <P>
  143. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  144. <A NAME="constructor_detail"><!-- --></A>
  145. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  146. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  147. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  148. <B>Constructor Detail</B></FONT></TH>
  149. </TR>
  150. </TABLE>
  151. <A NAME="ReflectManager()"><!-- --></A><H3>
  152. ReflectManager</H3>
  153. <PRE>
  154. public <B>ReflectManager</B>()</PRE>
  155. <DL>
  156. </DL>
  157. <!-- ============ METHOD DETAIL ========== -->
  158. <A NAME="method_detail"><!-- --></A>
  159. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  160. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  161. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  162. <B>Method Detail</B></FONT></TH>
  163. </TR>
  164. </TABLE>
  165. <A NAME="getReflectManager()"><!-- --></A><H3>
  166. getReflectManager</H3>
  167. <PRE>
  168. public static <A HREF="../../../../../org/gjt/sp/jedit/bsh/ReflectManager.html" title="class in org.gjt.sp.jedit.bsh">ReflectManager</A> <B>getReflectManager</B>()
  169. throws <A HREF="../../../../../org/gjt/sp/jedit/bsh/Capabilities.Unavailable.html" title="class in org.gjt.sp.jedit.bsh">Capabilities.Unavailable</A></PRE>
  170. <DL>
  171. <DD>Return the singleton bsh ReflectManager.
  172. <P>
  173. <DD><DL>
  174. <DT><B>Throws:</B>
  175. <DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/Capabilities.Unavailable.html" title="class in org.gjt.sp.jedit.bsh">Capabilities.Unavailable</A></CODE></DL>
  176. </DD>
  177. </DL>
  178. <HR>
  179. <A NAME="RMSetAccessible(java.lang.Object)"><!-- --></A><H3>
  180. RMSetAccessible</H3>
  181. <PRE>
  182. public static boolean <B>RMSetAccessible</B>(java.lang.Object&nbsp;obj)
  183. throws <A HREF="../../../../../org/gjt/sp/jedit/bsh/Capabilities.Unavailable.html" title="class in org.gjt.sp.jedit.bsh">Capabilities.Unavailable</A></PRE>
  184. <DL>
  185. <DD>Reflect Manager Set Accessible.
  186. Convenience method to invoke the reflect manager.
  187. <P>
  188. <DD><DL>
  189. <DT><B>Throws:</B>
  190. <DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/Capabilities.Unavailable.html" title="class in org.gjt.sp.jedit.bsh">Capabilities.Unavailable</A></CODE></DL>
  191. </DD>
  192. </DL>
  193. <HR>
  194. <A NAME="setAccessible(java.lang.Object)"><!-- --></A><H3>
  195. setAccessible</H3>
  196. <PRE>
  197. public abstract boolean <B>setAccessible</B>(java.lang.Object&nbsp;o)</PRE>
  198. <DL>
  199. <DD>Set a java.lang.reflect Field, Method, Constructor, or Array of
  200. accessible objects to accessible mode.
  201. <P>
  202. <DD><DL>
  203. <DT><B>Returns:</B><DD>true if the object was accessible or false if it was not.</DL>
  204. </DD>
  205. </DL>
  206. <!-- ========= END OF CLASS DATA ========= -->
  207. <HR>
  208. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  209. <A NAME="navbar_bottom"><!-- --></A>
  210. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  211. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  212. <TR>
  213. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  214. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  215. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  216. <TR ALIGN="center" VALIGN="top">
  217. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  218. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  219. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  220. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ReflectManager.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  221. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  222. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  223. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  224. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  225. </TR>
  226. </TABLE>
  227. </TD>
  228. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  229. </EM>
  230. </TD>
  231. </TR>
  232. <TR>
  233. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  234. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html" title="class in org.gjt.sp.jedit.bsh"><B>PREV CLASS</B></A>&nbsp;
  235. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/Remote.html" title="class in org.gjt.sp.jedit.bsh"><B>NEXT CLASS</B></A></FONT></TD>
  236. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  237. <A HREF="../../../../../index.html?org/gjt/sp/jedit/bsh/ReflectManager.html" target="_top"><B>FRAMES</B></A> &nbsp;
  238. &nbsp;<A HREF="ReflectManager.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  239. &nbsp;
  240. <NOSCRIPT>
  241. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  242. </NOSCRIPT>
  243. </FONT></TD>
  244. </TR>
  245. <TR>
  246. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  247. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  248. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  249. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  250. </TR>
  251. </TABLE>
  252. <A NAME="skip-navbar_bottom"></A>
  253. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  254. <HR>
  255. </BODY>
  256. </HTML>