19bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com/*
29bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com * [The "BSD licence"]
300fc68adf2e39aeb9fed35293f2576bbe729ec4bJesusFreke@JesusFreke.com * Copyright (c) 2010 Ben Gruver (JesusFreke)
49bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com * All rights reserved.
59bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com *
69bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com * Redistribution and use in source and binary forms, with or without
79bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com * modification, are permitted provided that the following conditions
89bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com * are met:
99bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com * 1. Redistributions of source code must retain the above copyright
109bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com *    notice, this list of conditions and the following disclaimer.
119bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com * 2. Redistributions in binary form must reproduce the above copyright
129bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com *    notice, this list of conditions and the following disclaimer in the
139bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com *    documentation and/or other materials provided with the distribution.
149bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com * 3. The name of the author may not be used to endorse or promote products
159bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com *    derived from this software without specific prior written permission.
169bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com *
179bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
189bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
199bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
209bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
219bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
229bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
239bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
249bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
259bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com * INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
269bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
279bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com */
289bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com
296ef13753e78bb7abc7e7683d5e533c3395d4a9b6JesusFreke@JesusFreke.compackage org.jf.baksmali.Adaptors;
309bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com
314b72225e9d81201838f387171a68a832486903f9JesusFreke@JesusFreke.comimport org.jf.util.IndentingWriter;
327ab77bc90be62b0688c97d4476e3bd219eace0daJesusFreke@JesusFreke.com
339bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com//a "spacer" between instructions
349bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.compublic class BlankMethodItem extends MethodItem {
356eae34831fee1f116f3a453bdc5e143d68e05e03JesusFreke@JesusFreke.com    public BlankMethodItem(int codeAddress) {
3616a911620ccf7b530b873fb71cf13e8dcb88ad28JesusFreke@JesusFreke.com        super(codeAddress);
379bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com    }
389bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com
39da69b22d6fe70d082b18858aea0d15ec383f1865JesusFreke@JesusFreke.com    public double getSortOrder() {
409bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com        return Integer.MAX_VALUE;
419bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com    }
427ab77bc90be62b0688c97d4476e3bd219eace0daJesusFreke@JesusFreke.com
430b2f7d6a57e90424b3ee455c041aab3996c05f2cJesusFreke@JesusFreke.com    public boolean writeTo(IndentingWriter writer) {
446eae34831fee1f116f3a453bdc5e143d68e05e03JesusFreke@JesusFreke.com        //we didn't technically print something, but returning true indicates that a newline should be printed
456eae34831fee1f116f3a453bdc5e143d68e05e03JesusFreke@JesusFreke.com        //after this method item, which is the intended functionality
466eae34831fee1f116f3a453bdc5e143d68e05e03JesusFreke@JesusFreke.com        return true;
477ab77bc90be62b0688c97d4476e3bd219eace0daJesusFreke@JesusFreke.com    }
489bc4978139ca38e422ae89065d3062146534132dJesusFreke@JesusFreke.com}
49