class.html
来自「j2se5-api-zh,java文档的中文版本」· HTML 代码 · 共 1,131 行 · 第 1/5 页
HTML
1,131 行
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>SecurityManager.</B><B><A HREF="../SecurityManager.html#checkMemberAccess(java.lang.Class, int)">checkMemberAccess</A></B>(<A HREF="../Class.html" title="java.lang 中的类">Class</A><?> clazz, int which)</CODE><BR> 如果不允许调用线程访问程序,则抛出 <code>SecurityException</code>。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B>Compiler.</B><B><A HREF="../Compiler.html#compileClass(java.lang.Class)">compileClass</A></B>(<A HREF="../Class.html" title="java.lang 中的类">Class</A><?> clazz)</CODE><BR> 编译指定的类。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""><TR ALIGN="right" VALIGN=""><TD NOWRAP><FONT SIZE="-1"><CODE><A extends <A HREF="../annotation/Annotation.html" title="java.lang.annotation 中的接口">Annotation</A>> <BR>A</CODE></FONT></TD></TR></TABLE></CODE></FONT></TD><TD><CODE><B>Class.</B><B><A HREF="../Class.html#getAnnotation(java.lang.Class)">getAnnotation</A></B>(<A HREF="../Class.html" title="java.lang 中的类">Class</A><A> annotationClass)</CODE><BR> 如果存在该元素的指定类型的注释,则返回这些注释,否则返回 null。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""><TR ALIGN="right" VALIGN=""><TD NOWRAP><FONT SIZE="-1"><CODE><A extends <A HREF="../annotation/Annotation.html" title="java.lang.annotation 中的接口">Annotation</A>> <BR>A</CODE></FONT></TD></TR></TABLE></CODE></FONT></TD><TD><CODE><B>Package.</B><B><A HREF="../Package.html#getAnnotation(java.lang.Class)">getAnnotation</A></B>(<A HREF="../Class.html" title="java.lang 中的类">Class</A><A> annotationClass)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../reflect/Constructor.html" title="java.lang.reflect 中的类">Constructor</A><<A HREF="../Class.html" title="Class 中的类型参数">T</A>></CODE></FONT></TD><TD><CODE><B>Class.</B><B><A HREF="../Class.html#getConstructor(java.lang.Class...)">getConstructor</A></B>(<A HREF="../Class.html" title="java.lang 中的类">Class</A>... parameterTypes)</CODE><BR> 返回一个 <code>Constructor</code> 对象,它反映此 <code>Class</code> 对象所表示的类的指定公共构造方法。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../reflect/Constructor.html" title="java.lang.reflect 中的类">Constructor</A><<A HREF="../Class.html" title="Class 中的类型参数">T</A>></CODE></FONT></TD><TD><CODE><B>Class.</B><B><A HREF="../Class.html#getDeclaredConstructor(java.lang.Class...)">getDeclaredConstructor</A></B>(<A HREF="../Class.html" title="java.lang 中的类">Class</A>... parameterTypes)</CODE><BR> 返回一个 <code>Constructor</code> 对象,该对象反映此 <code>Class</code> 对象所表示的类或接口的指定构造方法。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../reflect/Method.html" title="java.lang.reflect 中的类">Method</A></CODE></FONT></TD><TD><CODE><B>Class.</B><B><A HREF="../Class.html#getDeclaredMethod(java.lang.String, java.lang.Class...)">getDeclaredMethod</A></B>(<A HREF="../String.html" title="java.lang 中的类">String</A> name, <A HREF="../Class.html" title="java.lang 中的类">Class</A>... parameterTypes)</CODE><BR> 返回一个 <code>Method</code> 对象,该对象反映此 <code>Class</code> 对象所表示的类或接口的指定已声明方法。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../reflect/Method.html" title="java.lang.reflect 中的类">Method</A></CODE></FONT></TD><TD><CODE><B>Class.</B><B><A HREF="../Class.html#getMethod(java.lang.String, java.lang.Class...)">getMethod</A></B>(<A HREF="../String.html" title="java.lang 中的类">String</A> name, <A HREF="../Class.html" title="java.lang 中的类">Class</A>... parameterTypes)</CODE><BR> 返回一个 <code>Method</code> 对象,它反映此 <code>Class</code> 对象所表示的类或接口的指定公共成员方法。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B>Class.</B><B><A HREF="../Class.html#isAnnotationPresent(java.lang.Class)">isAnnotationPresent</A></B>(<A HREF="../Class.html" title="java.lang 中的类">Class</A><? extends <A HREF="../annotation/Annotation.html" title="java.lang.annotation 中的接口">Annotation</A>> annotationClass)</CODE><BR> 如果指定类型的注释存在于此元素上,则返回 true,否则返回 false。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B>Package.</B><B><A HREF="../Package.html#isAnnotationPresent(java.lang.Class)">isAnnotationPresent</A></B>(<A HREF="../Class.html" title="java.lang 中的类">Class</A><? extends <A HREF="../annotation/Annotation.html" title="java.lang.annotation 中的接口">Annotation</A>> annotationClass)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B>Class.</B><B><A HREF="../Class.html#isAssignableFrom(java.lang.Class)">isAssignableFrom</A></B>(<A HREF="../Class.html" title="java.lang 中的类">Class</A><?> cls)</CODE><BR> 判定此 <code>Class</code> 对象所表示的类或接口与指定的 <code>Class</code> 参数所表示的类或接口是否相同,或是否是其超类或超接口。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B>ClassLoader.</B><B><A HREF="../ClassLoader.html#resolveClass(java.lang.Class)">resolveClass</A></B>(<A HREF="../Class.html" title="java.lang 中的类">Class</A><?> c)</CODE><BR> 链接指定的类。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B>ClassLoader.</B><B><A HREF="../ClassLoader.html#setSigners(java.lang.Class, java.lang.Object[])">setSigners</A></B>(<A HREF="../Class.html" title="java.lang 中的类">Class</A><?> c, <A HREF="../Object.html" title="java.lang 中的类">Object</A>[] signers)</CODE><BR> 设置类的签署者。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""><TR ALIGN="right" VALIGN=""><TD NOWRAP><FONT SIZE="-1"><CODE><T extends <A HREF="../Enum.html" title="java.lang 中的类">Enum</A><T>> <BR>T</CODE></FONT></TD></TR></TABLE></CODE></FONT></TD><TD><CODE><B>Enum.</B><B><A HREF="../Enum.html#valueOf(java.lang.Class, java.lang.String)">valueOf</A></B>(<A HREF="../Class.html" title="java.lang 中的类">Class</A><T> enumType, <A HREF="../String.html" title="java.lang 中的类">String</A> name)</CODE><BR> 返回带指定名称的指定枚举类型的枚举常量。</TD></TR></TABLE> <P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TH ALIGN="left" COLSPAN="2">参数类型为 <A HREF="../Class.html" title="java.lang 中的类">Class</A> 的 <A HREF="../package-summary.html">java.lang</A> 中的构造方法</FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../EnumConstantNotPresentException.html#EnumConstantNotPresentException(java.lang.Class, java.lang.String)">EnumConstantNotPresentException</A></B>(<A HREF="../Class.html" title="java.lang 中的类">Class</A><? extends <A HREF="../Enum.html" title="java.lang 中的类">Enum</A>> enumType, <A HREF="../String.html" title="java.lang 中的类">String</A> constantName)</CODE><BR> 为指定常量构造一个 <tt>EnumConstantNotPresentException</tt>。</TD></TR></TABLE> <P><A NAME="java.lang.annotation"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><A HREF="../annotation/package-summary.html">java.lang.annotation</A> 中 <A HREF="../Class.html" title="java.lang 中的类">Class</A> 的使用</FONT></TH></TR></TABLE> <P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TH ALIGN="left" COLSPAN="2">返回 <A HREF="../Class.html" title="java.lang 中的类">Class</A> 的 <A HREF="../annotation/package-summary.html">java.lang.annotation</A> 中的方法</FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../Class.html" title="java.lang 中的类">Class</A><? extends <A HREF="../annotation/Annotation.html" title="java.lang.annotation 中的接口">Annotation</A>></CODE></FONT></TD><TD><CODE><B>Annotation.</B><B><A HREF="../annotation/Annotation.html#annotationType()">annotationType</A></B>()</CODE><BR> 返回此 annotation 的注释类型。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../Class.html" title="java.lang 中的类">Class</A><? extends <A HREF="../annotation/Annotation.html" title="java.lang.annotation 中的接口">Annotation</A>></CODE></FONT></TD><TD><CODE><B>IncompleteAnnotationException.</B><B><A HREF="../annotation/IncompleteAnnotationException.html#annotationType()">annotationType</A></B>()</CODE><BR> 返回带有缺少元素的注释类型的 Class 对象。</TD></TR></TABLE> <P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TH ALIGN="left" COLSPAN="2">参数类型为 <A HREF="../Class.html" title="java.lang 中的类">Class</A> 的 <A HREF="../annotation/package-summary.html">java.lang.annotation</A> 中的构造方法</FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../annotation/IncompleteAnnotationException.html#IncompleteAnnotationException(java.lang.Class, java.lang.String)">IncompleteAnnotationException</A></B>(<A HREF="../Class.html" title="java.lang 中的类">Class</A><? extends <A HREF="../annotation/Annotation.html" title="java.lang.annotation 中的接口">Annotation</A>> annotationType, <A HREF="../String.html" title="java.lang 中的类">String</A> elementName)</CODE><BR> 构造一个指示指定注释类型中缺少指定元素的 IncompleteAnnotationException。</TD></TR></TABLE> <P><A NAME="java.lang.instrument"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><A HREF="../instrument/package-summary.html">java.lang.instrument</A> 中 <A HREF="../Class.html" title="java.lang 中的类">Class</A> 的使用</FONT></TH></TR></TABLE> <P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TH ALIGN="left" COLSPAN="2">返回 <A HREF="../Class.html" title="java.lang 中的类">Class</A> 的 <A HREF="../instrument/package-summary.html">java.lang.instrument</A> 中的方法</FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../Class.html" title="java.lang 中的类">Class</A>[]</CODE></FONT></TD><TD><CODE><B>Instrumentation.</B><B><A HREF="../instrument/Instrumentation.html#getAllLoadedClasses()">getAllLoadedClasses</A></B>()</CODE>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?