📄 utility.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/classfile/Utility.html#isJavaIdentifierPart(char)">isJavaIdentifierPart</A></B>(char ch)</CODE><BR> </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><A HREF="../../../../org/apache/bcel/classfile/Utility.html#isSet(int, int)">isSet</A></B>(int flag, int i)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/classfile/Utility.html#methodSignatureArgumentTypes(java.lang.String)">methodSignatureArgumentTypes</A></B>(java.lang.String signature)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/classfile/Utility.html#methodSignatureArgumentTypes(java.lang.String, boolean)">methodSignatureArgumentTypes</A></B>(java.lang.String signature, boolean chopit)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/classfile/Utility.html#methodSignatureReturnType(java.lang.String)">methodSignatureReturnType</A></B>(java.lang.String signature)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/classfile/Utility.html#methodSignatureReturnType(java.lang.String, boolean)">methodSignatureReturnType</A></B>(java.lang.String signature, boolean chopit)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/classfile/Utility.html#methodSignatureToString(java.lang.String, java.lang.String, java.lang.String)">methodSignatureToString</A></B>(java.lang.String signature, java.lang.String name, java.lang.String access)</CODE><BR> Converts method signature to string with all class names compacted.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/classfile/Utility.html#methodSignatureToString(java.lang.String, java.lang.String, java.lang.String, boolean)">methodSignatureToString</A></B>(java.lang.String signature, java.lang.String name, java.lang.String access, boolean chopit)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/classfile/Utility.html#methodSignatureToString(java.lang.String, java.lang.String, java.lang.String, boolean, org.apache.bcel.classfile.LocalVariableTable)">methodSignatureToString</A></B>(java.lang.String signature, java.lang.String name, java.lang.String access, boolean chopit, <A HREF="../../../../org/apache/bcel/classfile/LocalVariableTable.html">LocalVariableTable</A> vars)</CODE><BR> A return璽ype signature represents the return value from a method.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/classfile/Utility.html#methodTypeToSignature(java.lang.String, java.lang.String[])">methodTypeToSignature</A></B>(java.lang.String ret, java.lang.String[] argv)</CODE><BR> Converts string containing the method return and argument types to a byte code method signature.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/classfile/Utility.html#printArray(java.lang.Object[])">printArray</A></B>(java.lang.Object[] obj)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/classfile/Utility.html#printArray(java.lang.Object[], boolean)">printArray</A></B>(java.lang.Object[] obj, boolean braces)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/classfile/Utility.html#printArray(java.io.PrintStream, java.lang.Object[])">printArray</A></B>(java.io.PrintStream out, java.lang.Object[] obj)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/classfile/Utility.html#printArray(java.io.PrintWriter, java.lang.Object[])">printArray</A></B>(java.io.PrintWriter out, java.lang.Object[] obj)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/classfile/Utility.html#replace(java.lang.String, java.lang.String, java.lang.String)">replace</A></B>(java.lang.String str, java.lang.String old, java.lang.String new_)</CODE><BR> Replace all occurences of <em>old</em> in <em>str</em> with <em>new</em>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static short</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/classfile/Utility.html#searchOpcode(java.lang.String)">searchOpcode</A></B>(java.lang.String name)</CODE><BR> Map opcode names to opcode numbers.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/classfile/Utility.html#setBit(int, int)">setBit</A></B>(int flag, int i)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/classfile/Utility.html#signatureToString(java.lang.String)">signatureToString</A></B>(java.lang.String signature)</CODE><BR> Converts signature to string with all class names compacted.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/classfile/Utility.html#signatureToString(java.lang.String, boolean)">signatureToString</A></B>(java.lang.String signature, boolean chopit)</CODE><BR> The field signature represents the value of an argument to a function or the value of a variable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/classfile/Utility.html#toHexString(byte[])">toHexString</A></B>(byte[] bytes)</CODE><BR> Convert bytes into hexidecimal string</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static byte</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/classfile/Utility.html#typeOfMethodSignature(java.lang.String)">typeOfMethodSignature</A></B>(java.lang.String signature)</CODE><BR> Return type of method signature as a byte value as defined in <em>Constants</em></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static byte</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/classfile/Utility.html#typeOfSignature(java.lang.String)">typeOfSignature</A></B>(java.lang.String signature)</CODE><BR> Return type of signature as a byte value as defined in <em>Constants</em></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Utility()"><!-- --></A><H3>Utility</H3><PRE>public <B>Utility</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="accessToString(int)"><!-- --></A><H3>accessToString</H3><PRE>public static final java.lang.String <B>accessToString</B>(int access_flags)</PRE><DL><DD>Convert bit field of flags into string such as `static final'.<DD><DL><DT><B>Parameters:</B><DD><CODE>access_flags</CODE> - Access flags<DT><B>Returns:</B><DD>String representation of flags</DL></DD></DL><HR><A NAME="accessToString(int, boolean)"><!-- --></A><H3>accessToString</H3><PRE>public static final java.lang.String <B>accessToString</B>(int access_flags, boolean for_class)</PRE><DL><DD>Convert bit field of flags into string such as `static final'. Special case: Classes compiled with new compilers and with the `ACC_SUPER' flag would be said to be "synchronized". This is because SUN used the same value for the flags `ACC_SUPER' and `ACC_SYNCHRONIZED'.<DD><DL><DT><B>Parameters:</B><DD><CODE>access_flags</CODE> - Access flags<DD><CODE>for_class</CODE> - access flags are for class qualifiers ?<DT><B>Returns:</B><DD>String representation of flags</DL></DD></DL><HR><A NAME="classOrInterface(int)"><!-- --></A><H3>classOrInterface</H3><PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -