1 19 20 package jode.flow; 21 import jode.decompiler.LocalInfo; 22 23 import java.util.Collections ; 24 import java.util.Set ; 25 26 33 public class RetBlock extends StructuredBlock { 34 37 LocalInfo local; 38 39 public RetBlock(LocalInfo local) { 40 this.local = local; 41 } 42 43 47 public void fillInGenSet(Set in, Set gen) { 48 in.add(local); 49 gen.add(local); 50 } 51 52 58 public VariableStack mapStackToLocal(VariableStack stack) { 59 if (!stack.isEmpty()) 60 throw new IllegalArgumentException ("stack is not empty at RET"); 61 return null; 62 } 63 64 public Set getDeclarables() { 65 return Collections.singleton(local); 66 } 67 68 public void dumpInstruction(jode.decompiler.TabbedPrintWriter writer) 69 throws java.io.IOException 70 { 71 writer.println("RET "+local); 72 } 73 } 74 | Popular Tags |