📄 instructionlist.html
字号:
<TD><CODE><B><A HREF="../../../../org/apache/bcel/generic/InstructionList.html#insert(org.apache.bcel.generic.InstructionList)">insert</A></B>(<A HREF="../../../../org/apache/bcel/generic/InstructionList.html">InstructionList</A> il)</CODE><BR> Insert another list.</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><A HREF="../../../../org/apache/bcel/generic/InstructionList.html#isEmpty()">isEmpty</A></B>()</CODE><BR> Test for empty list.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Iterator</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/generic/InstructionList.html#iterator()">iterator</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/generic/InstructionList.html#move(org.apache.bcel.generic.InstructionHandle, org.apache.bcel.generic.InstructionHandle)">move</A></B>(<A HREF="../../../../org/apache/bcel/generic/InstructionHandle.html">InstructionHandle</A> ih, <A HREF="../../../../org/apache/bcel/generic/InstructionHandle.html">InstructionHandle</A> target)</CODE><BR> Move a single instruction (handle) to a new location.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/generic/InstructionList.html#move(org.apache.bcel.generic.InstructionHandle, org.apache.bcel.generic.InstructionHandle, org.apache.bcel.generic.InstructionHandle)">move</A></B>(<A HREF="../../../../org/apache/bcel/generic/InstructionHandle.html">InstructionHandle</A> start, <A HREF="../../../../org/apache/bcel/generic/InstructionHandle.html">InstructionHandle</A> end, <A HREF="../../../../org/apache/bcel/generic/InstructionHandle.html">InstructionHandle</A> target)</CODE><BR> Take all instructions (handles) from "start" to "end" and append them after the new location "target".</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/generic/InstructionList.html#redirectBranches(org.apache.bcel.generic.InstructionHandle, org.apache.bcel.generic.InstructionHandle)">redirectBranches</A></B>(<A HREF="../../../../org/apache/bcel/generic/InstructionHandle.html">InstructionHandle</A> old_target, <A HREF="../../../../org/apache/bcel/generic/InstructionHandle.html">InstructionHandle</A> new_target)</CODE><BR> Redirect all references from old_target to new_target, i.e., update targets of branch instructions.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/generic/InstructionList.html#redirectExceptionHandlers(org.apache.bcel.generic.CodeExceptionGen[], org.apache.bcel.generic.InstructionHandle, org.apache.bcel.generic.InstructionHandle)">redirectExceptionHandlers</A></B>(<A HREF="../../../../org/apache/bcel/generic/CodeExceptionGen.html">CodeExceptionGen</A>[] exceptions, <A HREF="../../../../org/apache/bcel/generic/InstructionHandle.html">InstructionHandle</A> old_target, <A HREF="../../../../org/apache/bcel/generic/InstructionHandle.html">InstructionHandle</A> new_target)</CODE><BR> Redirect all references of exception handlers from old_target to new_target.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/generic/InstructionList.html#redirectLocalVariables(org.apache.bcel.generic.LocalVariableGen[], org.apache.bcel.generic.InstructionHandle, org.apache.bcel.generic.InstructionHandle)">redirectLocalVariables</A></B>(<A HREF="../../../../org/apache/bcel/generic/LocalVariableGen.html">LocalVariableGen</A>[] lg, <A HREF="../../../../org/apache/bcel/generic/InstructionHandle.html">InstructionHandle</A> old_target, <A HREF="../../../../org/apache/bcel/generic/InstructionHandle.html">InstructionHandle</A> new_target)</CODE><BR> Redirect all references of local variables from old_target to new_target.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/generic/InstructionList.html#removeObserver(org.apache.bcel.generic.InstructionListObserver)">removeObserver</A></B>(<A HREF="../../../../org/apache/bcel/generic/InstructionListObserver.html">InstructionListObserver</A> o)</CODE><BR> Remove observer for this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/generic/InstructionList.html#replaceConstantPool(org.apache.bcel.generic.ConstantPoolGen, org.apache.bcel.generic.ConstantPoolGen)">replaceConstantPool</A></B>(<A HREF="../../../../org/apache/bcel/generic/ConstantPoolGen.html">ConstantPoolGen</A> old_cp, <A HREF="../../../../org/apache/bcel/generic/ConstantPoolGen.html">ConstantPoolGen</A> new_cp)</CODE><BR> Replace all references to the old constant pool with references to the new constant pool</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/generic/InstructionList.html#setPositions()">setPositions</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/generic/InstructionList.html#setPositions(boolean)">setPositions</A></B>(boolean check)</CODE><BR> Give all instructions their position number (offset in byte stream), i.e., make the list ready to be dumped.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/generic/InstructionList.html#size()">size</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/generic/InstructionList.html#toString()">toString</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/generic/InstructionList.html#toString(boolean)">toString</A></B>(boolean verbose)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/bcel/generic/InstructionList.html#update()">update</A></B>()</CODE><BR> Call notify() method on all observers.</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, 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="InstructionList()"><!-- --></A><H3>InstructionList</H3><PRE>public <B>InstructionList</B>()</PRE><DL><DD>Create (empty) instruction list.</DL><HR><A NAME="InstructionList(org.apache.bcel.generic.Instruction)"><!-- --></A><H3>InstructionList</H3><PRE>public <B>InstructionList</B>(<A HREF="../../../../org/apache/bcel/generic/Instruction.html">Instruction</A> i)</PRE><DL><DD>Create instruction list containing one instruction.<DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - initial instruction</DL></DD></DL><HR><A NAME="InstructionList(org.apache.bcel.generic.BranchInstruction)"><!-- --></A><H3>InstructionList</H3><PRE>public <B>InstructionList</B>(<A HREF="../../../../org/apache/bcel/generic/BranchInstruction.html">BranchInstruction</A> i)</PRE><DL><DD>Create instruction list containing one instruction.<DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - initial instruction</DL></DD></DL><HR><A NAME="InstructionList(org.apache.bcel.generic.CompoundInstruction)"><!-- --></A><H3>InstructionList</H3><PRE>public <B>InstructionList</B>(<A HREF="../../../../org/apache/bcel/generic/CompoundInstruction.html">CompoundInstruction</A> c)</PRE><DL><DD>Initialize list with (nonnull) compound instruction. Consumes argument list, i.e., it becomes empty.<DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - compound instruction (list)</DL></DD></DL><HR><A NAME="InstructionList(byte[])"><!-- --></A><H3>InstructionList</H3><PRE>public <B>InstructionList</B>(byte[] code)</PRE><DL><DD>Initialize instruction list from byte array.<DD><DL><DT><B>Parameters:</B><DD><CODE>code</CODE> - byte array containing the instructions</DL></DD></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="isEmpty()"><!-- --></A><H3>isEmpty</H3><PRE>public boolean <B>isEmpty</B>()</PRE><DL><DD>Test for empty list.<DD><DL></DL></DD></DL><HR><A NAME="findHandle(org.apache.bcel.generic.InstructionHandle[], int[], int, int)"><!-- --></A><H3>findHandle</H3><PRE>public static <A HREF="../../../../org/apache/bcel/generic/InstructionHandle.html">InstructionHandle</A> <B>findHandle</B>(<A HREF="../../../../org/apache/bcel/generic/InstructionHandle.html">InstructionHandle</A>[] ihs, int[] pos, int count, int target)</PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -