| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <!-- Generated by javadoc (build 1.6.0_26) on Tue Jan 10 12:29:35 EST 2012 --> |
| <TITLE> |
| Code (dexmaker) |
| </TITLE> |
| |
| <META NAME="date" CONTENT="2012-01-10"> |
| |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"> |
| |
| <SCRIPT type="text/javascript"> |
| function windowTitle() |
| { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="Code (dexmaker)"; |
| } |
| } |
| </SCRIPT> |
| <NOSCRIPT> |
| </NOSCRIPT> |
| |
| </HEAD> |
| |
| <BODY BGCOLOR="white" onload="windowTitle();"> |
| <HR> |
| |
| |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <A NAME="navbar_top"><!-- --></A> |
| <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_top_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../com/google/dexmaker/BinaryOp.html" title="enum in com.google.dexmaker"><B>PREV CLASS</B></A> |
| <A HREF="../../../com/google/dexmaker/Comparison.html" title="enum in com.google.dexmaker"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../index.html?com/google/dexmaker/Code.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="Code.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_top"></A> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| |
| <HR> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <H2> |
| <FONT SIZE="-1"> |
| com.google.dexmaker</FONT> |
| <BR> |
| Class Code</H2> |
| <PRE> |
| <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> |
| <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.google.dexmaker.Code</B> |
| </PRE> |
| <HR> |
| <DL> |
| <DT><PRE>public final class <B>Code</B><DT>extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL> |
| </PRE> |
| |
| <P> |
| Builds a sequence of instructions. |
| |
| <h3>Locals</h3> |
| All data manipulation takes place in local variables. Each parameter gets its |
| own local by default; access these using <A HREF="../../../com/google/dexmaker/Code.html#getParameter(int, com.google.dexmaker.TypeId)"><CODE>getParameter()</CODE></A>. Non-static methods and constructors also have a <code>this</code> |
| parameter; it's available as <A HREF="../../../com/google/dexmaker/Code.html#getThis(com.google.dexmaker.TypeId)"><CODE>getThis()</CODE></A>. Allocate a new local |
| variable using <A HREF="../../../com/google/dexmaker/Code.html#newLocal(com.google.dexmaker.TypeId)"><CODE>newLocal()</CODE></A>, and assign a default value to it |
| with <A HREF="../../../com/google/dexmaker/Code.html#loadConstant(com.google.dexmaker.Local, T)"><CODE>loadConstant()</CODE></A>. Copy a value from one local to |
| another with <A HREF="../../../com/google/dexmaker/Code.html#move(com.google.dexmaker.Local, com.google.dexmaker.Local)"><CODE>move()</CODE></A>. |
| |
| <p>Every local variable has a fixed type. This is either a primitive type (of |
| any size) or a reference type. This class emits instructions appropriate to |
| the types they operate on. Not all operations are local on all types; |
| attempting to emit such an operation will fail with an unchecked exception. |
| |
| <h3>Math and Bit Operations</h3> |
| Transform a single value into another related value using <A HREF="../../../com/google/dexmaker/Code.html#op(com.google.dexmaker.UnaryOp, com.google.dexmaker.Local, com.google.dexmaker.Local)"><CODE>op(UnaryOp, Local, Local)</CODE></A>. Transform two values |
| into a third value using <A HREF="../../../com/google/dexmaker/Code.html#op(com.google.dexmaker.BinaryOp, com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local)"><CODE>op(BinaryOp, |
| Local, Local, Local)</CODE></A>. In either overload the first <code>Local</code> parameter |
| is where the result will be sent; the other <code>Local</code> parameters are the |
| inputs. |
| |
| <h3>Comparisons</h3> |
| There are three different comparison operations each with different |
| constraints: |
| <ul> |
| <li><A HREF="../../../com/google/dexmaker/Code.html#compareLongs(com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local)"><CODE>compareLongs()</CODE></A> compares two locals each |
| containing a <code>long</code> primitive. This is the only operation that |
| can compare longs. The result of the comparison is written to another |
| <code>int</code> local.</li> |
| <li><A HREF="../../../com/google/dexmaker/Code.html#compareFloatingPoint(com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local, int)"><CODE>compareFloatingPoint()</CODE></A> compares two |
| locals; both <code>float</code> primitives or both <code>double</code> |
| primitives. This is the only operation that can compare floating |
| point values. This comparison takes an extra parameter that sets |
| the desired result if either parameter is <code>NaN</code>. The result of |
| the comparison is wrtten to another <code>int</code> local. |
| <li><A HREF="../../../com/google/dexmaker/Code.html#compare(com.google.dexmaker.Comparison, com.google.dexmaker.Label, com.google.dexmaker.Local, com.google.dexmaker.Local)"><CODE>compare()</CODE></A> compares two locals. The <A HREF="../../../com/google/dexmaker/Comparison.html#EQ"><CODE>Comparison.EQ</CODE></A> and <A HREF="../../../com/google/dexmaker/Comparison.html#NE"><CODE>Comparison.NE</CODE></A> options compare either |
| <code>int</code> primitives or references. The other options compare only |
| <code>int</code> primitives. This comparison takes a <A HREF="../../../com/google/dexmaker/Label.html" title="class in com.google.dexmaker"><CODE>Label</CODE></A> that |
| will be jumped to if the comparison is true. If the comparison is |
| false the next instruction in sequence will be executed. |
| </ul> |
| There's no single operation to compare longs and jump, or to compare ints and |
| store the result in a local. Accomplish these goals by chaining multiple |
| operations together. |
| |
| <h3>Branches, Labels and Returns</h3> |
| Basic control flow is expressed using jumps and labels. Each label must be |
| marked exactly once and may be jumped to any number of times. Create a label |
| using its constructor: <code>new Label()</code>, and mark it using <A HREF="../../../com/google/dexmaker/Code.html#mark(com.google.dexmaker.Label)"><CODE>mark(Label)</CODE></A>. All jumps to a label will execute instructions starting from |
| that label. You can jump to a label that hasn't yet been marked (jumping |
| forward) or to a label that has already been marked (jumping backward). Jump |
| unconditionally with <A HREF="../../../com/google/dexmaker/Code.html#jump(com.google.dexmaker.Label)"><CODE>jump(Label)</CODE></A> or conditionally based on a |
| comparison using <A HREF="../../../com/google/dexmaker/Code.html#compare(com.google.dexmaker.Comparison, com.google.dexmaker.Label, com.google.dexmaker.Local, com.google.dexmaker.Local)"><CODE>compare()</CODE></A>. |
| |
| <p>Most methods should contain either a return instruction. Void methods |
| should use <A HREF="../../../com/google/dexmaker/Code.html#returnVoid()"><CODE>returnVoid()</CODE></A>; non-void methods should use <A HREF="../../../com/google/dexmaker/Code.html#returnValue(com.google.dexmaker.Local)"><CODE>returnValue()</CODE></A> with a local whose return type matches the |
| method's return type. Constructors are considered void methods and should |
| call <A HREF="../../../com/google/dexmaker/Code.html#returnVoid()"><CODE>returnVoid()</CODE></A>. Methods may make multiple returns. Methods |
| containing no return statements must either loop infinitely or throw |
| unconditionally; it is not legal to end a sequence of instructions without a |
| jump, return or throw. |
| |
| <h3>Throwing and Catching</h3> |
| This API uses labels to handle thrown exceptions, errors and throwables. Call |
| <A HREF="../../../com/google/dexmaker/Code.html#addCatchClause(com.google.dexmaker.TypeId, com.google.dexmaker.Label)"><CODE>addCatchClause()</CODE></A> to register the target label and |
| throwable class. All statements that follow will jump to that catch clause if |
| they throw a <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang"><CODE>Throwable</CODE></A> assignable to that type. Use <A HREF="../../../com/google/dexmaker/Code.html#removeCatchClause(com.google.dexmaker.TypeId)"><CODE>removeCatchClause()</CODE></A> to unregister the throwable class. |
| |
| <p>Throw an throwable by first assigning it to a local and then calling |
| <A HREF="../../../com/google/dexmaker/Code.html#throwValue(com.google.dexmaker.Local)"><CODE>throwValue()</CODE></A>. Control flow will jump to the nearest label |
| assigned to a type assignable to the thrown type. In this context, "nearest" |
| means the label requiring the fewest stack frames to be popped. |
| |
| <h3>Calling methods</h3> |
| A method's caller must know its return type, name, parameters, and invoke |
| kind. Lookup a method on a type using <A HREF="../../../com/google/dexmaker/TypeId.html#getMethod(com.google.dexmaker.TypeId, java.lang.String, com.google.dexmaker.TypeId...)"><CODE>TypeId.getMethod()</CODE></A>. This is more onerous than Java language invokes, which |
| can infer the target method using the target object and parameters. There are |
| four invoke kinds: |
| <ul> |
| <li><A HREF="../../../com/google/dexmaker/Code.html#invokeStatic(com.google.dexmaker.MethodId, com.google.dexmaker.Local, com.google.dexmaker.Local...)"><CODE>invokeStatic()</CODE></A> is used for static methods.</li> |
| <li><A HREF="../../../com/google/dexmaker/Code.html#invokeDirect(com.google.dexmaker.MethodId, com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local...)"><CODE>invokeDirect()</CODE></A> is used for private instance |
| methods and for constructors to call their superclass's |
| constructor.</li> |
| <li><A HREF="../../../com/google/dexmaker/Code.html#invokeInterface(com.google.dexmaker.MethodId, com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local...)"><CODE>invokeInterface()</CODE></A> is used to invoke a method |
| whose declaring type is an interface.</li> |
| <li><A HREF="../../../com/google/dexmaker/Code.html#invokeVirtual(com.google.dexmaker.MethodId, com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local...)"><CODE>invokeVirtual()</CODE></A> is used to invoke any other |
| method. The target must not be static, private, a constructor, or an |
| interface method.</li> |
| <li><A HREF="../../../com/google/dexmaker/Code.html#invokeSuper(com.google.dexmaker.MethodId, com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local...)"><CODE>invokeSuper()</CODE></A> is used to invoke the closest |
| superclass's virtual method. The target must not be static, private, |
| a constructor method, or an interface method.</li> |
| <li><A HREF="../../../com/google/dexmaker/Code.html#newInstance(com.google.dexmaker.Local, com.google.dexmaker.MethodId, com.google.dexmaker.Local...)"><CODE>newInstance()</CODE></A> is used to invoke a |
| constructor.</li> |
| </ul> |
| All invoke methods take a local for the return value. For void methods this |
| local is unused and may be null. |
| |
| <h3>Field Access</h3> |
| Read static fields using <A HREF="../../../com/google/dexmaker/Code.html#sget(com.google.dexmaker.FieldId, com.google.dexmaker.Local)"><CODE>sget()</CODE></A>; write them using <A HREF="../../../com/google/dexmaker/Code.html#sput(com.google.dexmaker.FieldId, com.google.dexmaker.Local)"><CODE>sput()</CODE></A>. For instance values you'll need to specify the declaring |
| instance; use <A HREF="../../../com/google/dexmaker/Code.html#getThis(com.google.dexmaker.TypeId)"><CODE>getThis()</CODE></A> in an instance method to use <code>this</code>. Read instance values using <A HREF="../../../com/google/dexmaker/Code.html#iget(com.google.dexmaker.FieldId, com.google.dexmaker.Local, com.google.dexmaker.Local)"><CODE>iget()</CODE></A> and write them with |
| <A HREF="../../../com/google/dexmaker/Code.html#iput(com.google.dexmaker.FieldId, com.google.dexmaker.Local, com.google.dexmaker.Local)"><CODE>iput()</CODE></A>. |
| |
| <h3>Array Access</h3> |
| Allocate an array using <A HREF="../../../com/google/dexmaker/Code.html#newArray(com.google.dexmaker.Local, com.google.dexmaker.Local)"><CODE>newArray()</CODE></A>. Read an array's length |
| with <A HREF="../../../com/google/dexmaker/Code.html#arrayLength(com.google.dexmaker.Local, com.google.dexmaker.Local)"><CODE>arrayLength()</CODE></A> and its elements with <A HREF="../../../com/google/dexmaker/Code.html#aget(com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local)"><CODE>aget()</CODE></A>. Write an array's elements with <A HREF="../../../com/google/dexmaker/Code.html#aput(com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local)"><CODE>aput()</CODE></A>. |
| |
| <h3>Types</h3> |
| Use <A HREF="../../../com/google/dexmaker/Code.html#cast(com.google.dexmaker.Local, com.google.dexmaker.Local)"><CODE>cast()</CODE></A> to perform either a <strong>numeric cast</strong> or |
| a <strong>type cast</strong>. Interrogate the type of a value in a local |
| using <A HREF="../../../com/google/dexmaker/Code.html#instanceOfType(com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.TypeId)"><CODE>instanceOfType()</CODE></A>. |
| |
| <h3>Synchronization</h3> |
| Acquire a monitor using <A HREF="../../../com/google/dexmaker/Code.html#monitorEnter(com.google.dexmaker.Local)"><CODE>monitorEnter()</CODE></A>; release it with |
| <A HREF="../../../com/google/dexmaker/Code.html#monitorExit(com.google.dexmaker.Local)"><CODE>monitorExit()</CODE></A>. It is the caller's responsibility to |
| guarantee that enter and exit calls are balanced, even in the presence of |
| exceptions thrown. |
| |
| <strong>Warning:</strong> Even if a method has the <code>synchronized</code> flag, |
| dex requires instructions to acquire and release monitors manually. A method |
| declared with <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/reflect/Modifier.html?is-external=true#SYNCHRONIZED" title="class or interface in java.lang.reflect"><CODE>SYNCHRONIZED</CODE></A> |
| but without manual calls to <code>monitorEnter()</code> and <code>monitorExit()</code> |
| will not be synchronized when executed. |
| <P> |
| |
| <P> |
| <HR> |
| |
| <P> |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| |
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Method Summary</B></FONT></TH> |
| </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="../../../com/google/dexmaker/Code.html#addCatchClause(com.google.dexmaker.TypeId, com.google.dexmaker.Label)">addCatchClause</A></B>(<A HREF="../../../com/google/dexmaker/TypeId.html" title="class in com.google.dexmaker">TypeId</A><? extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>> toCatch, |
| <A HREF="../../../com/google/dexmaker/Label.html" title="class in com.google.dexmaker">Label</A> catchClause)</CODE> |
| |
| <BR> |
| Registers <code>catchClause</code> as a branch target for all instructions |
| in this frame that throw a class assignable to <code>toCatch</code>.</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="../../../com/google/dexmaker/Code.html#aget(com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local)">aget</A></B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?> array, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>> index)</CODE> |
| |
| <BR> |
| Assigns <code>target</code> to the element of <code>array</code> at index <code>index</code>.</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="../../../com/google/dexmaker/Code.html#aput(com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local)">aput</A></B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?> array, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>> index, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?> source)</CODE> |
| |
| <BR> |
| Sets the element at <code>index</code> in <code>array</code> the value in <code>source</code>.</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><T> void</CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../com/google/dexmaker/Code.html#arrayLength(com.google.dexmaker.Local, com.google.dexmaker.Local)">arrayLength</A></B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> array)</CODE> |
| |
| <BR> |
| Sets <code>target</code> to the length of the array in <code>array</code>.</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="../../../com/google/dexmaker/Code.html#cast(com.google.dexmaker.Local, com.google.dexmaker.Local)">cast</A></B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?> source)</CODE> |
| |
| <BR> |
| Performs either a numeric cast or a type cast.</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><T> void</CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../com/google/dexmaker/Code.html#compare(com.google.dexmaker.Comparison, com.google.dexmaker.Label, com.google.dexmaker.Local, com.google.dexmaker.Local)">compare</A></B>(<A HREF="../../../com/google/dexmaker/Comparison.html" title="enum in com.google.dexmaker">Comparison</A> comparison, |
| <A HREF="../../../com/google/dexmaker/Label.html" title="class in com.google.dexmaker">Label</A> trueLabel, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> a, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> b)</CODE> |
| |
| <BR> |
| Compare ints or references.</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><T extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</A>> |
| <BR> |
| void</CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../com/google/dexmaker/Code.html#compareFloatingPoint(com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local, int)">compareFloatingPoint</A></B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> a, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> b, |
| int nanValue)</CODE> |
| |
| <BR> |
| Compare floats or doubles.</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="../../../com/google/dexmaker/Code.html#compareLongs(com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local)">compareLongs</A></B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</A>> a, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</A>> b)</CODE> |
| |
| <BR> |
| Compare longs.</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><T> <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T></CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../com/google/dexmaker/Code.html#getParameter(int, com.google.dexmaker.TypeId)">getParameter</A></B>(int index, |
| <A HREF="../../../com/google/dexmaker/TypeId.html" title="class in com.google.dexmaker">TypeId</A><T> type)</CODE> |
| |
| <BR> |
| Returns the local for the parameter at index <code>index</code> and of type |
| <code>type</code>.</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><T> <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T></CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../com/google/dexmaker/Code.html#getThis(com.google.dexmaker.TypeId)">getThis</A></B>(<A HREF="../../../com/google/dexmaker/TypeId.html" title="class in com.google.dexmaker">TypeId</A><T> type)</CODE> |
| |
| <BR> |
| Returns the local for <code>this</code> of type <code>type</code>.</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><D,V> void</CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../com/google/dexmaker/Code.html#iget(com.google.dexmaker.FieldId, com.google.dexmaker.Local, com.google.dexmaker.Local)">iget</A></B>(<A HREF="../../../com/google/dexmaker/FieldId.html" title="class in com.google.dexmaker">FieldId</A><D,V> fieldId, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><V> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><D> instance)</CODE> |
| |
| <BR> |
| Copies the value in instance field <code>fieldId</code> of <code>instance</code> to |
| <code>target</code>.</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="../../../com/google/dexmaker/Code.html#instanceOfType(com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.TypeId)">instanceOfType</A></B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?> source, |
| <A HREF="../../../com/google/dexmaker/TypeId.html" title="class in com.google.dexmaker">TypeId</A><?> type)</CODE> |
| |
| <BR> |
| Tests if the value in <code>source</code> is assignable to <code>type</code>.</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><D,R> void</CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../com/google/dexmaker/Code.html#invokeDirect(com.google.dexmaker.MethodId, com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local...)">invokeDirect</A></B>(<A HREF="../../../com/google/dexmaker/MethodId.html" title="class in com.google.dexmaker">MethodId</A><D,R> method, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><? super R> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><? extends D> instance, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?>... args)</CODE> |
| |
| <BR> |
| Calls <code>method</code> of <code>instance</code> using <code>args</code> and assigns |
| the result to <code>target</code>.</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><D,R> void</CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../com/google/dexmaker/Code.html#invokeInterface(com.google.dexmaker.MethodId, com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local...)">invokeInterface</A></B>(<A HREF="../../../com/google/dexmaker/MethodId.html" title="class in com.google.dexmaker">MethodId</A><D,R> method, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><? super R> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><? extends D> instance, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?>... args)</CODE> |
| |
| <BR> |
| Calls the interface method <code>method</code> of <code>instance</code> using |
| <code>args</code> and assigns the result to <code>target</code>.</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><R> void</CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../com/google/dexmaker/Code.html#invokeStatic(com.google.dexmaker.MethodId, com.google.dexmaker.Local, com.google.dexmaker.Local...)">invokeStatic</A></B>(<A HREF="../../../com/google/dexmaker/MethodId.html" title="class in com.google.dexmaker">MethodId</A><?,R> method, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><? super R> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?>... args)</CODE> |
| |
| <BR> |
| Calls the static method <code>method</code> using <code>args</code> and assigns the |
| result to <code>target</code>.</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><D,R> void</CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../com/google/dexmaker/Code.html#invokeSuper(com.google.dexmaker.MethodId, com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local...)">invokeSuper</A></B>(<A HREF="../../../com/google/dexmaker/MethodId.html" title="class in com.google.dexmaker">MethodId</A><D,R> method, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><? super R> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><? extends D> instance, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?>... args)</CODE> |
| |
| <BR> |
| Calls the closest superclass's virtual method <code>method</code> of <code>instance</code> using <code>args</code> and assigns the result to <code>target</code>.</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><D,R> void</CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../com/google/dexmaker/Code.html#invokeVirtual(com.google.dexmaker.MethodId, com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local...)">invokeVirtual</A></B>(<A HREF="../../../com/google/dexmaker/MethodId.html" title="class in com.google.dexmaker">MethodId</A><D,R> method, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><? super R> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><? extends D> instance, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?>... args)</CODE> |
| |
| <BR> |
| Calls the non-private instance method <code>method</code> of <code>instance</code> |
| using <code>args</code> and assigns the result to <code>target</code>.</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><D,V> void</CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../com/google/dexmaker/Code.html#iput(com.google.dexmaker.FieldId, com.google.dexmaker.Local, com.google.dexmaker.Local)">iput</A></B>(<A HREF="../../../com/google/dexmaker/FieldId.html" title="class in com.google.dexmaker">FieldId</A><D,V> fieldId, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><D> instance, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><V> source)</CODE> |
| |
| <BR> |
| Copies the value in <code>source</code> to the instance field <code>fieldId</code> |
| of <code>instance</code>.</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="../../../com/google/dexmaker/Code.html#jump(com.google.dexmaker.Label)">jump</A></B>(<A HREF="../../../com/google/dexmaker/Label.html" title="class in com.google.dexmaker">Label</A> target)</CODE> |
| |
| <BR> |
| Transfers flow control to the instructions at <code>target</code>.</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><T> void</CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../com/google/dexmaker/Code.html#loadConstant(com.google.dexmaker.Local, T)">loadConstant</A></B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> target, |
| T value)</CODE> |
| |
| <BR> |
| Copies the constant value <code>value</code> to <code>target</code>.</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="../../../com/google/dexmaker/Code.html#mark(com.google.dexmaker.Label)">mark</A></B>(<A HREF="../../../com/google/dexmaker/Label.html" title="class in com.google.dexmaker">Label</A> label)</CODE> |
| |
| <BR> |
| Start defining instructions for the named label.</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="../../../com/google/dexmaker/Code.html#monitorEnter(com.google.dexmaker.Local)">monitorEnter</A></B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?> monitor)</CODE> |
| |
| <BR> |
| Awaits the lock on <code>monitor</code>, and acquires it.</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="../../../com/google/dexmaker/Code.html#monitorExit(com.google.dexmaker.Local)">monitorExit</A></B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?> monitor)</CODE> |
| |
| <BR> |
| Releases the held lock on <code>monitor</code>.</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><T> void</CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../com/google/dexmaker/Code.html#move(com.google.dexmaker.Local, com.google.dexmaker.Local)">move</A></B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> source)</CODE> |
| |
| <BR> |
| Copies the value in <code>source</code> to <code>target</code>.</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><T> void</CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../com/google/dexmaker/Code.html#newArray(com.google.dexmaker.Local, com.google.dexmaker.Local)">newArray</A></B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>> length)</CODE> |
| |
| <BR> |
| Assigns <code>target</code> to a newly allocated array of length <code>length</code>.</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><T> void</CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../com/google/dexmaker/Code.html#newInstance(com.google.dexmaker.Local, com.google.dexmaker.MethodId, com.google.dexmaker.Local...)">newInstance</A></B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> target, |
| <A HREF="../../../com/google/dexmaker/MethodId.html" title="class in com.google.dexmaker">MethodId</A><T,<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Void.html?is-external=true" title="class or interface in java.lang">Void</A>> constructor, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?>... args)</CODE> |
| |
| <BR> |
| Calls the constructor <code>constructor</code> using <code>args</code> and assigns |
| the new instance to <code>target</code>.</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><T> <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T></CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../com/google/dexmaker/Code.html#newLocal(com.google.dexmaker.TypeId)">newLocal</A></B>(<A HREF="../../../com/google/dexmaker/TypeId.html" title="class in com.google.dexmaker">TypeId</A><T> type)</CODE> |
| |
| <BR> |
| Allocates a new local variable of type <code>type</code>.</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><T> void</CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../com/google/dexmaker/Code.html#op(com.google.dexmaker.BinaryOp, com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local)">op</A></B>(<A HREF="../../../com/google/dexmaker/BinaryOp.html" title="enum in com.google.dexmaker">BinaryOp</A> op, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> a, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> b)</CODE> |
| |
| <BR> |
| Executes <code>op</code> and sets <code>target</code> to the result.</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><T> void</CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../com/google/dexmaker/Code.html#op(com.google.dexmaker.UnaryOp, com.google.dexmaker.Local, com.google.dexmaker.Local)">op</A></B>(<A HREF="../../../com/google/dexmaker/UnaryOp.html" title="enum in com.google.dexmaker">UnaryOp</A> op, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> source)</CODE> |
| |
| <BR> |
| Executes <code>op</code> and sets <code>target</code> to the result.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../com/google/dexmaker/Label.html" title="class in com.google.dexmaker">Label</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../com/google/dexmaker/Code.html#removeCatchClause(com.google.dexmaker.TypeId)">removeCatchClause</A></B>(<A HREF="../../../com/google/dexmaker/TypeId.html" title="class in com.google.dexmaker">TypeId</A><? extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>> toCatch)</CODE> |
| |
| <BR> |
| Deregisters the catch clause label for <code>toCatch</code> and returns it.</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="../../../com/google/dexmaker/Code.html#returnValue(com.google.dexmaker.Local)">returnValue</A></B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?> result)</CODE> |
| |
| <BR> |
| Returns the value in <code>result</code> to the calling method.</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="../../../com/google/dexmaker/Code.html#returnVoid()">returnVoid</A></B>()</CODE> |
| |
| <BR> |
| Returns from a <code>void</code> method.</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><V> void</CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../com/google/dexmaker/Code.html#sget(com.google.dexmaker.FieldId, com.google.dexmaker.Local)">sget</A></B>(<A HREF="../../../com/google/dexmaker/FieldId.html" title="class in com.google.dexmaker">FieldId</A><?,V> fieldId, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><V> target)</CODE> |
| |
| <BR> |
| Copies the value in <code>target</code> to the static field <code>fieldId</code>.</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><V> void</CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../com/google/dexmaker/Code.html#sput(com.google.dexmaker.FieldId, com.google.dexmaker.Local)">sput</A></B>(<A HREF="../../../com/google/dexmaker/FieldId.html" title="class in com.google.dexmaker">FieldId</A><?,V> fieldId, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><V> source)</CODE> |
| |
| <BR> |
| Copies the value in <code>source</code> to the static field <code>fieldId</code>.</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="../../../com/google/dexmaker/Code.html#throwValue(com.google.dexmaker.Local)">throwValue</A></B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><? extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>> toThrow)</CODE> |
| |
| <BR> |
| Throws the throwable in <code>toThrow</code>.</TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <P> |
| |
| <!-- ============ METHOD DETAIL ========== --> |
| |
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Method Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="newLocal(com.google.dexmaker.TypeId)"><!-- --></A><H3> |
| newLocal</H3> |
| <PRE> |
| public <T> <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> <B>newLocal</B>(<A HREF="../../../com/google/dexmaker/TypeId.html" title="class in com.google.dexmaker">TypeId</A><T> type)</PRE> |
| <DL> |
| <DD>Allocates a new local variable of type <code>type</code>. It is an error to |
| allocate a local after instructions have been emitted. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getParameter(int, com.google.dexmaker.TypeId)"><!-- --></A><H3> |
| getParameter</H3> |
| <PRE> |
| public <T> <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> <B>getParameter</B>(int index, |
| <A HREF="../../../com/google/dexmaker/TypeId.html" title="class in com.google.dexmaker">TypeId</A><T> type)</PRE> |
| <DL> |
| <DD>Returns the local for the parameter at index <code>index</code> and of type |
| <code>type</code>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getThis(com.google.dexmaker.TypeId)"><!-- --></A><H3> |
| getThis</H3> |
| <PRE> |
| public <T> <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> <B>getThis</B>(<A HREF="../../../com/google/dexmaker/TypeId.html" title="class in com.google.dexmaker">TypeId</A><T> type)</PRE> |
| <DL> |
| <DD>Returns the local for <code>this</code> of type <code>type</code>. It is an error |
| to call <code>getThis()</code> if this is a static method. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="mark(com.google.dexmaker.Label)"><!-- --></A><H3> |
| mark</H3> |
| <PRE> |
| public void <B>mark</B>(<A HREF="../../../com/google/dexmaker/Label.html" title="class in com.google.dexmaker">Label</A> label)</PRE> |
| <DL> |
| <DD>Start defining instructions for the named label. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="jump(com.google.dexmaker.Label)"><!-- --></A><H3> |
| jump</H3> |
| <PRE> |
| public void <B>jump</B>(<A HREF="../../../com/google/dexmaker/Label.html" title="class in com.google.dexmaker">Label</A> target)</PRE> |
| <DL> |
| <DD>Transfers flow control to the instructions at <code>target</code>. It is an |
| error to jump to a label not marked on this <code>Code</code>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="addCatchClause(com.google.dexmaker.TypeId, com.google.dexmaker.Label)"><!-- --></A><H3> |
| addCatchClause</H3> |
| <PRE> |
| public void <B>addCatchClause</B>(<A HREF="../../../com/google/dexmaker/TypeId.html" title="class in com.google.dexmaker">TypeId</A><? extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>> toCatch, |
| <A HREF="../../../com/google/dexmaker/Label.html" title="class in com.google.dexmaker">Label</A> catchClause)</PRE> |
| <DL> |
| <DD>Registers <code>catchClause</code> as a branch target for all instructions |
| in this frame that throw a class assignable to <code>toCatch</code>. This |
| includes methods invoked from this frame. Deregister the clause using |
| <A HREF="../../../com/google/dexmaker/Code.html#removeCatchClause(com.google.dexmaker.TypeId)"><CODE>removeCatchClause()</CODE></A>. It is an error to |
| register a catch clause without also <A HREF="../../../com/google/dexmaker/Code.html#mark(com.google.dexmaker.Label)"><CODE>marking it</CODE></A> in the same |
| <code>Code</code> instance. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="removeCatchClause(com.google.dexmaker.TypeId)"><!-- --></A><H3> |
| removeCatchClause</H3> |
| <PRE> |
| public <A HREF="../../../com/google/dexmaker/Label.html" title="class in com.google.dexmaker">Label</A> <B>removeCatchClause</B>(<A HREF="../../../com/google/dexmaker/TypeId.html" title="class in com.google.dexmaker">TypeId</A><? extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>> toCatch)</PRE> |
| <DL> |
| <DD>Deregisters the catch clause label for <code>toCatch</code> and returns it. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="throwValue(com.google.dexmaker.Local)"><!-- --></A><H3> |
| throwValue</H3> |
| <PRE> |
| public void <B>throwValue</B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><? extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>> toThrow)</PRE> |
| <DL> |
| <DD>Throws the throwable in <code>toThrow</code>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="loadConstant(com.google.dexmaker.Local,java.lang.Object)"><!-- --></A><A NAME="loadConstant(com.google.dexmaker.Local, T)"><!-- --></A><H3> |
| loadConstant</H3> |
| <PRE> |
| public <T> void <B>loadConstant</B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> target, |
| T value)</PRE> |
| <DL> |
| <DD>Copies the constant value <code>value</code> to <code>target</code>. The constant |
| must be a primitive, String, Class, TypeId, or null. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="move(com.google.dexmaker.Local, com.google.dexmaker.Local)"><!-- --></A><H3> |
| move</H3> |
| <PRE> |
| public <T> void <B>move</B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> source)</PRE> |
| <DL> |
| <DD>Copies the value in <code>source</code> to <code>target</code>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="op(com.google.dexmaker.UnaryOp, com.google.dexmaker.Local, com.google.dexmaker.Local)"><!-- --></A><H3> |
| op</H3> |
| <PRE> |
| public <T> void <B>op</B>(<A HREF="../../../com/google/dexmaker/UnaryOp.html" title="enum in com.google.dexmaker">UnaryOp</A> op, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> source)</PRE> |
| <DL> |
| <DD>Executes <code>op</code> and sets <code>target</code> to the result. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="op(com.google.dexmaker.BinaryOp, com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local)"><!-- --></A><H3> |
| op</H3> |
| <PRE> |
| public <T> void <B>op</B>(<A HREF="../../../com/google/dexmaker/BinaryOp.html" title="enum in com.google.dexmaker">BinaryOp</A> op, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> a, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> b)</PRE> |
| <DL> |
| <DD>Executes <code>op</code> and sets <code>target</code> to the result. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="compare(com.google.dexmaker.Comparison, com.google.dexmaker.Label, com.google.dexmaker.Local, com.google.dexmaker.Local)"><!-- --></A><H3> |
| compare</H3> |
| <PRE> |
| public <T> void <B>compare</B>(<A HREF="../../../com/google/dexmaker/Comparison.html" title="enum in com.google.dexmaker">Comparison</A> comparison, |
| <A HREF="../../../com/google/dexmaker/Label.html" title="class in com.google.dexmaker">Label</A> trueLabel, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> a, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> b)</PRE> |
| <DL> |
| <DD>Compare ints or references. If the comparison is true, execution jumps to |
| <code>trueLabel</code>. If it is false, execution continues to the next |
| instruction. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="compareFloatingPoint(com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local, int)"><!-- --></A><H3> |
| compareFloatingPoint</H3> |
| <PRE> |
| public <T extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</A>> void <B>compareFloatingPoint</B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> a, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> b, |
| int nanValue)</PRE> |
| <DL> |
| <DD>Compare floats or doubles. This stores -1 in <code>target</code> if <code>a < b</code>, 0 in <code>target</code> if <code>a == b</code> and 1 in target if <code>a > b</code>. This stores <code>nanValue</code> in <code>target</code> if either value |
| is <code>NaN</code>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="compareLongs(com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local)"><!-- --></A><H3> |
| compareLongs</H3> |
| <PRE> |
| public void <B>compareLongs</B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</A>> a, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</A>> b)</PRE> |
| <DL> |
| <DD>Compare longs. This stores -1 in <code>target</code> if <code>a < b</code>, 0 in <code>target</code> if <code>a == b</code> and 1 in target if <code>a > b</code>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="iget(com.google.dexmaker.FieldId, com.google.dexmaker.Local, com.google.dexmaker.Local)"><!-- --></A><H3> |
| iget</H3> |
| <PRE> |
| public <D,V> void <B>iget</B>(<A HREF="../../../com/google/dexmaker/FieldId.html" title="class in com.google.dexmaker">FieldId</A><D,V> fieldId, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><V> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><D> instance)</PRE> |
| <DL> |
| <DD>Copies the value in instance field <code>fieldId</code> of <code>instance</code> to |
| <code>target</code>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="iput(com.google.dexmaker.FieldId, com.google.dexmaker.Local, com.google.dexmaker.Local)"><!-- --></A><H3> |
| iput</H3> |
| <PRE> |
| public <D,V> void <B>iput</B>(<A HREF="../../../com/google/dexmaker/FieldId.html" title="class in com.google.dexmaker">FieldId</A><D,V> fieldId, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><D> instance, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><V> source)</PRE> |
| <DL> |
| <DD>Copies the value in <code>source</code> to the instance field <code>fieldId</code> |
| of <code>instance</code>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="sget(com.google.dexmaker.FieldId, com.google.dexmaker.Local)"><!-- --></A><H3> |
| sget</H3> |
| <PRE> |
| public <V> void <B>sget</B>(<A HREF="../../../com/google/dexmaker/FieldId.html" title="class in com.google.dexmaker">FieldId</A><?,V> fieldId, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><V> target)</PRE> |
| <DL> |
| <DD>Copies the value in <code>target</code> to the static field <code>fieldId</code>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="sput(com.google.dexmaker.FieldId, com.google.dexmaker.Local)"><!-- --></A><H3> |
| sput</H3> |
| <PRE> |
| public <V> void <B>sput</B>(<A HREF="../../../com/google/dexmaker/FieldId.html" title="class in com.google.dexmaker">FieldId</A><?,V> fieldId, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><V> source)</PRE> |
| <DL> |
| <DD>Copies the value in <code>source</code> to the static field <code>fieldId</code>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="newInstance(com.google.dexmaker.Local, com.google.dexmaker.MethodId, com.google.dexmaker.Local...)"><!-- --></A><H3> |
| newInstance</H3> |
| <PRE> |
| public <T> void <B>newInstance</B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> target, |
| <A HREF="../../../com/google/dexmaker/MethodId.html" title="class in com.google.dexmaker">MethodId</A><T,<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Void.html?is-external=true" title="class or interface in java.lang">Void</A>> constructor, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?>... args)</PRE> |
| <DL> |
| <DD>Calls the constructor <code>constructor</code> using <code>args</code> and assigns |
| the new instance to <code>target</code>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="invokeStatic(com.google.dexmaker.MethodId, com.google.dexmaker.Local, com.google.dexmaker.Local...)"><!-- --></A><H3> |
| invokeStatic</H3> |
| <PRE> |
| public <R> void <B>invokeStatic</B>(<A HREF="../../../com/google/dexmaker/MethodId.html" title="class in com.google.dexmaker">MethodId</A><?,R> method, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><? super R> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?>... args)</PRE> |
| <DL> |
| <DD>Calls the static method <code>method</code> using <code>args</code> and assigns the |
| result to <code>target</code>. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>target</CODE> - the local to receive the method's return value, or <code>null</code> if the return type is <code>void</code> or if its value not needed.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="invokeVirtual(com.google.dexmaker.MethodId, com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local...)"><!-- --></A><H3> |
| invokeVirtual</H3> |
| <PRE> |
| public <D,R> void <B>invokeVirtual</B>(<A HREF="../../../com/google/dexmaker/MethodId.html" title="class in com.google.dexmaker">MethodId</A><D,R> method, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><? super R> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><? extends D> instance, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?>... args)</PRE> |
| <DL> |
| <DD>Calls the non-private instance method <code>method</code> of <code>instance</code> |
| using <code>args</code> and assigns the result to <code>target</code>. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>method</CODE> - a non-private, non-static, method declared on a class. May |
| not be an interface method or a constructor.<DD><CODE>target</CODE> - the local to receive the method's return value, or <code>null</code> if the return type is <code>void</code> or if its value not needed.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="invokeDirect(com.google.dexmaker.MethodId, com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local...)"><!-- --></A><H3> |
| invokeDirect</H3> |
| <PRE> |
| public <D,R> void <B>invokeDirect</B>(<A HREF="../../../com/google/dexmaker/MethodId.html" title="class in com.google.dexmaker">MethodId</A><D,R> method, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><? super R> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><? extends D> instance, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?>... args)</PRE> |
| <DL> |
| <DD>Calls <code>method</code> of <code>instance</code> using <code>args</code> and assigns |
| the result to <code>target</code>. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>method</CODE> - either a private method or the superclass's constructor in |
| a constructor's call to <code>super()</code>.<DD><CODE>target</CODE> - the local to receive the method's return value, or <code>null</code> if the return type is <code>void</code> or if its value not needed.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="invokeSuper(com.google.dexmaker.MethodId, com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local...)"><!-- --></A><H3> |
| invokeSuper</H3> |
| <PRE> |
| public <D,R> void <B>invokeSuper</B>(<A HREF="../../../com/google/dexmaker/MethodId.html" title="class in com.google.dexmaker">MethodId</A><D,R> method, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><? super R> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><? extends D> instance, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?>... args)</PRE> |
| <DL> |
| <DD>Calls the closest superclass's virtual method <code>method</code> of <code>instance</code> using <code>args</code> and assigns the result to <code>target</code>. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>target</CODE> - the local to receive the method's return value, or <code>null</code> if the return type is <code>void</code> or if its value not needed.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="invokeInterface(com.google.dexmaker.MethodId, com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local...)"><!-- --></A><H3> |
| invokeInterface</H3> |
| <PRE> |
| public <D,R> void <B>invokeInterface</B>(<A HREF="../../../com/google/dexmaker/MethodId.html" title="class in com.google.dexmaker">MethodId</A><D,R> method, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><? super R> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><? extends D> instance, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?>... args)</PRE> |
| <DL> |
| <DD>Calls the interface method <code>method</code> of <code>instance</code> using |
| <code>args</code> and assigns the result to <code>target</code>. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>method</CODE> - a method declared on an interface.<DD><CODE>target</CODE> - the local to receive the method's return value, or <code>null</code> if the return type is <code>void</code> or if its value not needed.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="instanceOfType(com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.TypeId)"><!-- --></A><H3> |
| instanceOfType</H3> |
| <PRE> |
| public void <B>instanceOfType</B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?> source, |
| <A HREF="../../../com/google/dexmaker/TypeId.html" title="class in com.google.dexmaker">TypeId</A><?> type)</PRE> |
| <DL> |
| <DD>Tests if the value in <code>source</code> is assignable to <code>type</code>. If it |
| is, <code>target</code> is assigned to 1; otherwise <code>target</code> is assigned |
| to 0. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="cast(com.google.dexmaker.Local, com.google.dexmaker.Local)"><!-- --></A><H3> |
| cast</H3> |
| <PRE> |
| public void <B>cast</B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?> source)</PRE> |
| <DL> |
| <DD>Performs either a numeric cast or a type cast. |
| |
| <h3>Numeric Casts</h3> |
| Converts a primitive to a different representation. Numeric casts may |
| be lossy. For example, converting the double <code>1.8d</code> to an integer |
| yields <code>1</code>, losing the fractional part. Converting the integer |
| <code>0x12345678</code> to a short yields <code>0x5678</code>, losing the high |
| bytes. The following numeric casts are supported: |
| |
| <p><table border="1"> |
| <tr><th>From</th><th>To</th></tr> |
| <tr><td>int</td><td>byte, char, short, long, float, double</td></tr> |
| <tr><td>long</td><td>int, float, double</td></tr> |
| <tr><td>float</td><td>int, long, double</td></tr> |
| <tr><td>double</td><td>int, long, float</td></tr> |
| </table> |
| |
| <p>For some primitive conversions it will be necessary to chain multiple |
| cast operations. For example, to go from float to short one would first |
| cast float to int and then int to short. |
| |
| <p>Numeric casts never throw <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang"><CODE>ClassCastException</CODE></A>. |
| |
| <h3>Type Casts</h3> |
| Checks that a reference value is assignable to the target type. If it is |
| assignable it is copied to the target local. If it is not assignable a |
| <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang"><CODE>ClassCastException</CODE></A> is thrown. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="arrayLength(com.google.dexmaker.Local, com.google.dexmaker.Local)"><!-- --></A><H3> |
| arrayLength</H3> |
| <PRE> |
| public <T> void <B>arrayLength</B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> array)</PRE> |
| <DL> |
| <DD>Sets <code>target</code> to the length of the array in <code>array</code>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="newArray(com.google.dexmaker.Local, com.google.dexmaker.Local)"><!-- --></A><H3> |
| newArray</H3> |
| <PRE> |
| public <T> void <B>newArray</B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><T> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>> length)</PRE> |
| <DL> |
| <DD>Assigns <code>target</code> to a newly allocated array of length <code>length</code>. The array's type is the same as <code>target</code>'s type. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="aget(com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local)"><!-- --></A><H3> |
| aget</H3> |
| <PRE> |
| public void <B>aget</B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?> target, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?> array, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>> index)</PRE> |
| <DL> |
| <DD>Assigns <code>target</code> to the element of <code>array</code> at index <code>index</code>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="aput(com.google.dexmaker.Local, com.google.dexmaker.Local, com.google.dexmaker.Local)"><!-- --></A><H3> |
| aput</H3> |
| <PRE> |
| public void <B>aput</B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?> array, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>> index, |
| <A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?> source)</PRE> |
| <DL> |
| <DD>Sets the element at <code>index</code> in <code>array</code> the value in <code>source</code>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="returnVoid()"><!-- --></A><H3> |
| returnVoid</H3> |
| <PRE> |
| public void <B>returnVoid</B>()</PRE> |
| <DL> |
| <DD>Returns from a <code>void</code> method. After a return it is an error to |
| define further instructions after a return without first <A HREF="../../../com/google/dexmaker/Code.html#mark(com.google.dexmaker.Label)"><CODE>marking</CODE></A> an existing unmarked label. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="returnValue(com.google.dexmaker.Local)"><!-- --></A><H3> |
| returnValue</H3> |
| <PRE> |
| public void <B>returnValue</B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?> result)</PRE> |
| <DL> |
| <DD>Returns the value in <code>result</code> to the calling method. After a return |
| it is an error to define further instructions after a return without |
| first <A HREF="../../../com/google/dexmaker/Code.html#mark(com.google.dexmaker.Label)"><CODE>marking</CODE></A> an existing unmarked label. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="monitorEnter(com.google.dexmaker.Local)"><!-- --></A><H3> |
| monitorEnter</H3> |
| <PRE> |
| public void <B>monitorEnter</B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?> monitor)</PRE> |
| <DL> |
| <DD>Awaits the lock on <code>monitor</code>, and acquires it. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="monitorExit(com.google.dexmaker.Local)"><!-- --></A><H3> |
| monitorExit</H3> |
| <PRE> |
| public void <B>monitorExit</B>(<A HREF="../../../com/google/dexmaker/Local.html" title="class in com.google.dexmaker">Local</A><?> monitor)</PRE> |
| <DL> |
| <DD>Releases the held lock on <code>monitor</code>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <HR> |
| |
| |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <A NAME="navbar_bottom"><!-- --></A> |
| <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_bottom_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../com/google/dexmaker/BinaryOp.html" title="enum in com.google.dexmaker"><B>PREV CLASS</B></A> |
| <A HREF="../../../com/google/dexmaker/Comparison.html" title="enum in com.google.dexmaker"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../index.html?com/google/dexmaker/Code.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="Code.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_bottom"></A> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| |
| <HR> |
| |
| </BODY> |
| </HTML> |