1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!--NewPage--> 3<HTML> 4<HEAD> 5<!-- Generated by javadoc (build 1.6.0_26) on Tue Jan 10 12:29:35 EST 2012 --> 6<TITLE> 7BinaryOp (dexmaker) 8</TITLE> 9 10<META NAME="date" CONTENT="2012-01-10"> 11 12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"> 13 14<SCRIPT type="text/javascript"> 15function windowTitle() 16{ 17 if (location.href.indexOf('is-external=true') == -1) { 18 parent.document.title="BinaryOp (dexmaker)"; 19 } 20} 21</SCRIPT> 22<NOSCRIPT> 23</NOSCRIPT> 24 25</HEAD> 26 27<BODY BGCOLOR="white" onload="windowTitle();"> 28<HR> 29 30 31<!-- ========= START OF TOP NAVBAR ======= --> 32<A NAME="navbar_top"><!-- --></A> 33<A HREF="#skip-navbar_top" title="Skip navigation links"></A> 34<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 35<TR> 36<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 37<A NAME="navbar_top_firstrow"><!-- --></A> 38<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 39 <TR ALIGN="center" VALIGN="top"> 40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 42 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 47 </TR> 48</TABLE> 49</TD> 50<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 51</EM> 52</TD> 53</TR> 54 55<TR> 56<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 57 PREV CLASS 58 <A HREF="../../../com/google/dexmaker/Code.html" title="class in com.google.dexmaker"><B>NEXT CLASS</B></A></FONT></TD> 59<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 60 <A HREF="../../../index.html?com/google/dexmaker/BinaryOp.html" target="_top"><B>FRAMES</B></A> 61 <A HREF="BinaryOp.html" target="_top"><B>NO FRAMES</B></A> 62 <SCRIPT type="text/javascript"> 63 <!-- 64 if(window==top) { 65 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); 66 } 67 //--> 68</SCRIPT> 69<NOSCRIPT> 70 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> 71</NOSCRIPT> 72 73 74</FONT></TD> 75</TR> 76<TR> 77<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 78 SUMMARY: NESTED | <A HREF="#enum_constant_summary">ENUM CONSTANTS</A> | FIELD | <A HREF="#method_summary">METHOD</A></FONT></TD> 79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 80DETAIL: <A HREF="#enum_constant_detail">ENUM CONSTANTS</A> | FIELD | <A HREF="#method_detail">METHOD</A></FONT></TD> 81</TR> 82</TABLE> 83<A NAME="skip-navbar_top"></A> 84<!-- ========= END OF TOP NAVBAR ========= --> 85 86<HR> 87<!-- ======== START OF CLASS DATA ======== --> 88<H2> 89<FONT SIZE="-1"> 90com.google.dexmaker</FONT> 91<BR> 92Enum BinaryOp</H2> 93<PRE> 94<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> 95 <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">java.lang.Enum</A><<A HREF="../../../com/google/dexmaker/BinaryOp.html" title="enum in com.google.dexmaker">BinaryOp</A>> 96 <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.google.dexmaker.BinaryOp</B> 97</PRE> 98<DL> 99<DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</A><<A HREF="../../../com/google/dexmaker/BinaryOp.html" title="enum in com.google.dexmaker">BinaryOp</A>></DD> 100</DL> 101<HR> 102<DL> 103<DT><PRE>public enum <B>BinaryOp</B><DT>extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><<A HREF="../../../com/google/dexmaker/BinaryOp.html" title="enum in com.google.dexmaker">BinaryOp</A>></DL> 104</PRE> 105 106<P> 107An operation on two values of the same type. 108 109 <p>Math operations (<A HREF="../../../com/google/dexmaker/BinaryOp.html#ADD"><CODE>ADD</CODE></A>, <A HREF="../../../com/google/dexmaker/BinaryOp.html#SUBTRACT"><CODE>SUBTRACT</CODE></A>, <A HREF="../../../com/google/dexmaker/BinaryOp.html#MULTIPLY"><CODE>MULTIPLY</CODE></A>, 110 <A HREF="../../../com/google/dexmaker/BinaryOp.html#DIVIDE"><CODE>DIVIDE</CODE></A>, and <A HREF="../../../com/google/dexmaker/BinaryOp.html#REMAINDER"><CODE>REMAINDER</CODE></A>) support ints, longs, floats and 111 doubles. 112 113 <p>Bit operations (<A HREF="../../../com/google/dexmaker/BinaryOp.html#AND"><CODE>AND</CODE></A>, <A HREF="../../../com/google/dexmaker/BinaryOp.html#OR"><CODE>OR</CODE></A>, <A HREF="../../../com/google/dexmaker/BinaryOp.html#XOR"><CODE>XOR</CODE></A>, <A HREF="../../../com/google/dexmaker/BinaryOp.html#SHIFT_LEFT"><CODE>SHIFT_LEFT</CODE></A>, <A HREF="../../../com/google/dexmaker/BinaryOp.html#SHIFT_RIGHT"><CODE>SHIFT_RIGHT</CODE></A>, <A HREF="../../../com/google/dexmaker/BinaryOp.html#UNSIGNED_SHIFT_RIGHT"><CODE>UNSIGNED_SHIFT_RIGHT</CODE></A>) support 114 ints and longs. 115 116 <p>Division by zero behaves differently depending on the operand type. 117 For int and long operands, <A HREF="../../../com/google/dexmaker/BinaryOp.html#DIVIDE"><CODE>DIVIDE</CODE></A> and <A HREF="../../../com/google/dexmaker/BinaryOp.html#REMAINDER"><CODE>REMAINDER</CODE></A> throw 118 <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/ArithmeticException.html?is-external=true" title="class or interface in java.lang"><CODE>ArithmeticException</CODE></A> if <code>b == 0</code>. For float and double operands, 119 the operations return <code>NaN</code>. 120<P> 121 122<P> 123<HR> 124 125<P> 126<!-- =========== ENUM CONSTANT SUMMARY =========== --> 127 128<A NAME="enum_constant_summary"><!-- --></A> 129<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 130<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 131<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 132<B>Enum Constant Summary</B></FONT></TH> 133</TR> 134<TR BGCOLOR="white" CLASS="TableRowColor"> 135<TD><CODE><B><A HREF="../../../com/google/dexmaker/BinaryOp.html#ADD">ADD</A></B></CODE> 136 137<BR> 138 <code>a + b</code></TD> 139</TR> 140<TR BGCOLOR="white" CLASS="TableRowColor"> 141<TD><CODE><B><A HREF="../../../com/google/dexmaker/BinaryOp.html#AND">AND</A></B></CODE> 142 143<BR> 144 <code>a & b</code></TD> 145</TR> 146<TR BGCOLOR="white" CLASS="TableRowColor"> 147<TD><CODE><B><A HREF="../../../com/google/dexmaker/BinaryOp.html#DIVIDE">DIVIDE</A></B></CODE> 148 149<BR> 150 <code>a / b</code></TD> 151</TR> 152<TR BGCOLOR="white" CLASS="TableRowColor"> 153<TD><CODE><B><A HREF="../../../com/google/dexmaker/BinaryOp.html#MULTIPLY">MULTIPLY</A></B></CODE> 154 155<BR> 156 <code>a * b</code></TD> 157</TR> 158<TR BGCOLOR="white" CLASS="TableRowColor"> 159<TD><CODE><B><A HREF="../../../com/google/dexmaker/BinaryOp.html#OR">OR</A></B></CODE> 160 161<BR> 162 <code>a | b</code></TD> 163</TR> 164<TR BGCOLOR="white" CLASS="TableRowColor"> 165<TD><CODE><B><A HREF="../../../com/google/dexmaker/BinaryOp.html#REMAINDER">REMAINDER</A></B></CODE> 166 167<BR> 168 <code>a % b</code></TD> 169</TR> 170<TR BGCOLOR="white" CLASS="TableRowColor"> 171<TD><CODE><B><A HREF="../../../com/google/dexmaker/BinaryOp.html#SHIFT_LEFT">SHIFT_LEFT</A></B></CODE> 172 173<BR> 174 <code>a << b</code></TD> 175</TR> 176<TR BGCOLOR="white" CLASS="TableRowColor"> 177<TD><CODE><B><A HREF="../../../com/google/dexmaker/BinaryOp.html#SHIFT_RIGHT">SHIFT_RIGHT</A></B></CODE> 178 179<BR> 180 <code>a >> b</code></TD> 181</TR> 182<TR BGCOLOR="white" CLASS="TableRowColor"> 183<TD><CODE><B><A HREF="../../../com/google/dexmaker/BinaryOp.html#SUBTRACT">SUBTRACT</A></B></CODE> 184 185<BR> 186 <code>a - b</code></TD> 187</TR> 188<TR BGCOLOR="white" CLASS="TableRowColor"> 189<TD><CODE><B><A HREF="../../../com/google/dexmaker/BinaryOp.html#UNSIGNED_SHIFT_RIGHT">UNSIGNED_SHIFT_RIGHT</A></B></CODE> 190 191<BR> 192 <code>a >>> b</code></TD> 193</TR> 194<TR BGCOLOR="white" CLASS="TableRowColor"> 195<TD><CODE><B><A HREF="../../../com/google/dexmaker/BinaryOp.html#XOR">XOR</A></B></CODE> 196 197<BR> 198 <code>a ^ b</code></TD> 199</TR> 200</TABLE> 201 202<!-- ========== METHOD SUMMARY =========== --> 203 204<A NAME="method_summary"><!-- --></A> 205<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 206<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 207<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 208<B>Method Summary</B></FONT></TH> 209</TR> 210<TR BGCOLOR="white" CLASS="TableRowColor"> 211<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 212<CODE>static <A HREF="../../../com/google/dexmaker/BinaryOp.html" title="enum in com.google.dexmaker">BinaryOp</A></CODE></FONT></TD> 213<TD><CODE><B><A HREF="../../../com/google/dexmaker/BinaryOp.html#valueOf(java.lang.String)">valueOf</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</CODE> 214 215<BR> 216 Returns the enum constant of this type with the specified name.</TD> 217</TR> 218<TR BGCOLOR="white" CLASS="TableRowColor"> 219<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 220<CODE>static <A HREF="../../../com/google/dexmaker/BinaryOp.html" title="enum in com.google.dexmaker">BinaryOp</A>[]</CODE></FONT></TD> 221<TD><CODE><B><A HREF="../../../com/google/dexmaker/BinaryOp.html#values()">values</A></B>()</CODE> 222 223<BR> 224 Returns an array containing the constants of this enum type, in 225the order they are declared.</TD> 226</TR> 227</TABLE> 228 <A NAME="methods_inherited_from_class_java.lang.Enum"><!-- --></A> 229<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 230<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 231<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A></B></TH> 232</TR> 233<TR BGCOLOR="white" CLASS="TableRowColor"> 234<TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Enum.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/Enum.html?is-external=true#compareTo(E)" title="class or interface in java.lang">compareTo</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Enum.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/Enum.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/Enum.html?is-external=true#getDeclaringClass()" title="class or interface in java.lang">getDeclaringClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Enum.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/Enum.html?is-external=true#name()" title="class or interface in java.lang">name</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#ordinal()" title="class or interface in java.lang">ordinal</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Enum.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/Enum.html?is-external=true#valueOf(java.lang.Class, java.lang.String)" title="class or interface in java.lang">valueOf</A></CODE></TD> 235</TR> 236</TABLE> 237 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 238<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 239<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 240<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> 241</TR> 242<TR BGCOLOR="white" CLASS="TableRowColor"> 243<TD><CODE><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#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#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> 244</TR> 245</TABLE> 246 247<P> 248 249<!-- ============ ENUM CONSTANT DETAIL =========== --> 250 251<A NAME="enum_constant_detail"><!-- --></A> 252<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 253<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 254<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 255<B>Enum Constant Detail</B></FONT></TH> 256</TR> 257</TABLE> 258 259<A NAME="ADD"><!-- --></A><H3> 260ADD</H3> 261<PRE> 262public static final <A HREF="../../../com/google/dexmaker/BinaryOp.html" title="enum in com.google.dexmaker">BinaryOp</A> <B>ADD</B></PRE> 263<DL> 264<DD><code>a + b</code> 265<P> 266<DL> 267</DL> 268</DL> 269<HR> 270 271<A NAME="SUBTRACT"><!-- --></A><H3> 272SUBTRACT</H3> 273<PRE> 274public static final <A HREF="../../../com/google/dexmaker/BinaryOp.html" title="enum in com.google.dexmaker">BinaryOp</A> <B>SUBTRACT</B></PRE> 275<DL> 276<DD><code>a - b</code> 277<P> 278<DL> 279</DL> 280</DL> 281<HR> 282 283<A NAME="MULTIPLY"><!-- --></A><H3> 284MULTIPLY</H3> 285<PRE> 286public static final <A HREF="../../../com/google/dexmaker/BinaryOp.html" title="enum in com.google.dexmaker">BinaryOp</A> <B>MULTIPLY</B></PRE> 287<DL> 288<DD><code>a * b</code> 289<P> 290<DL> 291</DL> 292</DL> 293<HR> 294 295<A NAME="DIVIDE"><!-- --></A><H3> 296DIVIDE</H3> 297<PRE> 298public static final <A HREF="../../../com/google/dexmaker/BinaryOp.html" title="enum in com.google.dexmaker">BinaryOp</A> <B>DIVIDE</B></PRE> 299<DL> 300<DD><code>a / b</code> 301<P> 302<DL> 303</DL> 304</DL> 305<HR> 306 307<A NAME="REMAINDER"><!-- --></A><H3> 308REMAINDER</H3> 309<PRE> 310public static final <A HREF="../../../com/google/dexmaker/BinaryOp.html" title="enum in com.google.dexmaker">BinaryOp</A> <B>REMAINDER</B></PRE> 311<DL> 312<DD><code>a % b</code> 313<P> 314<DL> 315</DL> 316</DL> 317<HR> 318 319<A NAME="AND"><!-- --></A><H3> 320AND</H3> 321<PRE> 322public static final <A HREF="../../../com/google/dexmaker/BinaryOp.html" title="enum in com.google.dexmaker">BinaryOp</A> <B>AND</B></PRE> 323<DL> 324<DD><code>a & b</code> 325<P> 326<DL> 327</DL> 328</DL> 329<HR> 330 331<A NAME="OR"><!-- --></A><H3> 332OR</H3> 333<PRE> 334public static final <A HREF="../../../com/google/dexmaker/BinaryOp.html" title="enum in com.google.dexmaker">BinaryOp</A> <B>OR</B></PRE> 335<DL> 336<DD><code>a | b</code> 337<P> 338<DL> 339</DL> 340</DL> 341<HR> 342 343<A NAME="XOR"><!-- --></A><H3> 344XOR</H3> 345<PRE> 346public static final <A HREF="../../../com/google/dexmaker/BinaryOp.html" title="enum in com.google.dexmaker">BinaryOp</A> <B>XOR</B></PRE> 347<DL> 348<DD><code>a ^ b</code> 349<P> 350<DL> 351</DL> 352</DL> 353<HR> 354 355<A NAME="SHIFT_LEFT"><!-- --></A><H3> 356SHIFT_LEFT</H3> 357<PRE> 358public static final <A HREF="../../../com/google/dexmaker/BinaryOp.html" title="enum in com.google.dexmaker">BinaryOp</A> <B>SHIFT_LEFT</B></PRE> 359<DL> 360<DD><code>a << b</code> 361<P> 362<DL> 363</DL> 364</DL> 365<HR> 366 367<A NAME="SHIFT_RIGHT"><!-- --></A><H3> 368SHIFT_RIGHT</H3> 369<PRE> 370public static final <A HREF="../../../com/google/dexmaker/BinaryOp.html" title="enum in com.google.dexmaker">BinaryOp</A> <B>SHIFT_RIGHT</B></PRE> 371<DL> 372<DD><code>a >> b</code> 373<P> 374<DL> 375</DL> 376</DL> 377<HR> 378 379<A NAME="UNSIGNED_SHIFT_RIGHT"><!-- --></A><H3> 380UNSIGNED_SHIFT_RIGHT</H3> 381<PRE> 382public static final <A HREF="../../../com/google/dexmaker/BinaryOp.html" title="enum in com.google.dexmaker">BinaryOp</A> <B>UNSIGNED_SHIFT_RIGHT</B></PRE> 383<DL> 384<DD><code>a >>> b</code> 385<P> 386<DL> 387</DL> 388</DL> 389 390<!-- ============ METHOD DETAIL ========== --> 391 392<A NAME="method_detail"><!-- --></A> 393<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 394<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 395<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 396<B>Method Detail</B></FONT></TH> 397</TR> 398</TABLE> 399 400<A NAME="values()"><!-- --></A><H3> 401values</H3> 402<PRE> 403public static <A HREF="../../../com/google/dexmaker/BinaryOp.html" title="enum in com.google.dexmaker">BinaryOp</A>[] <B>values</B>()</PRE> 404<DL> 405<DD>Returns an array containing the constants of this enum type, in 406the order they are declared. This method may be used to iterate 407over the constants as follows: 408<pre> 409for (BinaryOp c : BinaryOp.values()) 410 System.out.println(c); 411</pre> 412<P> 413<DD><DL> 414 415<DT><B>Returns:</B><DD>an array containing the constants of this enum type, in 416the order they are declared</DL> 417</DD> 418</DL> 419<HR> 420 421<A NAME="valueOf(java.lang.String)"><!-- --></A><H3> 422valueOf</H3> 423<PRE> 424public static <A HREF="../../../com/google/dexmaker/BinaryOp.html" title="enum in com.google.dexmaker">BinaryOp</A> <B>valueOf</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</PRE> 425<DL> 426<DD>Returns the enum constant of this type with the specified name. 427The string must match <I>exactly</I> an identifier used to declare an 428enum constant in this type. (Extraneous whitespace characters are 429not permitted.) 430<P> 431<DD><DL> 432<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the enum constant to be returned. 433<DT><B>Returns:</B><DD>the enum constant with the specified name 434<DT><B>Throws:</B> 435<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if this enum type has no constant 436with the specified name 437<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if the argument is null</DL> 438</DD> 439</DL> 440<!-- ========= END OF CLASS DATA ========= --> 441<HR> 442 443 444<!-- ======= START OF BOTTOM NAVBAR ====== --> 445<A NAME="navbar_bottom"><!-- --></A> 446<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 447<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 448<TR> 449<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 450<A NAME="navbar_bottom_firstrow"><!-- --></A> 451<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 452 <TR ALIGN="center" VALIGN="top"> 453 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 454 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 455 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 456 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 457 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 458 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 459 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 460 </TR> 461</TABLE> 462</TD> 463<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 464</EM> 465</TD> 466</TR> 467 468<TR> 469<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 470 PREV CLASS 471 <A HREF="../../../com/google/dexmaker/Code.html" title="class in com.google.dexmaker"><B>NEXT CLASS</B></A></FONT></TD> 472<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 473 <A HREF="../../../index.html?com/google/dexmaker/BinaryOp.html" target="_top"><B>FRAMES</B></A> 474 <A HREF="BinaryOp.html" target="_top"><B>NO FRAMES</B></A> 475 <SCRIPT type="text/javascript"> 476 <!-- 477 if(window==top) { 478 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); 479 } 480 //--> 481</SCRIPT> 482<NOSCRIPT> 483 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> 484</NOSCRIPT> 485 486 487</FONT></TD> 488</TR> 489<TR> 490<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 491 SUMMARY: NESTED | <A HREF="#enum_constant_summary">ENUM CONSTANTS</A> | FIELD | <A HREF="#method_summary">METHOD</A></FONT></TD> 492<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 493DETAIL: <A HREF="#enum_constant_detail">ENUM CONSTANTS</A> | FIELD | <A HREF="#method_detail">METHOD</A></FONT></TD> 494</TR> 495</TABLE> 496<A NAME="skip-navbar_bottom"></A> 497<!-- ======== END OF BOTTOM NAVBAR ======= --> 498 499<HR> 500 501</BODY> 502</HTML> 503