1 19 20 package jode.expr; 21 import jode.type.Type; 22 import jode.decompiler.TabbedPrintWriter; 23 24 33 public class NopOperator extends Expression { 34 public NopOperator(Type type) { 35 super(type); 36 } 37 38 public int getFreeOperandCount() { 39 return 1; 40 } 41 42 public int getPriority() { 43 return 1000; 44 } 45 46 public void updateSubTypes() { 47 } 48 public void updateType() { 49 } 50 51 public Expression addOperand(Expression op) { 52 op.setType(type); 53 op.parent = parent; 54 return op; 55 } 56 57 public boolean isConstant() { 58 return false; 59 } 60 61 public boolean equals(Object o) { 62 return (o instanceof NopOperator); 63 } 64 65 public Expression simplify() { 66 return this; 67 } 68 69 public void dumpExpression(TabbedPrintWriter writer) 70 throws java.io.IOException { 71 writer.print("POP"); 72 } 73 } 74 | Popular Tags |