1 19 20 package soot.dava.internal.AST; 21 22 import soot.*; 23 import soot.dava.internal.javaRep.*; 24 import soot.dava.toolkits.base.AST.analysis.*; 25 26 public class ASTUnaryCondition extends ASTUnaryBinaryCondition{ 27 Value value; 28 29 public ASTUnaryCondition(Value value){ 30 this.value=value; 31 } 32 33 public void apply(Analysis a){ 34 a.caseASTUnaryCondition(this); 35 } 36 37 public Value getValue(){ 38 return value; 39 } 40 41 42 public String toString(){ 43 return value.toString(); 44 } 45 46 public void toString(UnitPrinter up){ 47 value.toString(up); 48 } 49 50 51 public void flip(){ 52 57 if(value instanceof DNotExpr){ 58 this.value=((DNotExpr)value).getOp(); 59 } 60 else{ 61 this.value=new DNotExpr(value); 62 } 63 } 64 } 65 | Popular Tags |