1 2 3 package soot.jimple.parser.node; 4 5 import soot.jimple.parser.analysis.*; 6 7 public final class X1PCatchClause extends XPCatchClause 8 { 9 private XPCatchClause _xPCatchClause_; 10 private PCatchClause _pCatchClause_; 11 12 public X1PCatchClause() 13 { 14 } 15 16 public X1PCatchClause( 17 XPCatchClause _xPCatchClause_, 18 PCatchClause _pCatchClause_) 19 { 20 setXPCatchClause(_xPCatchClause_); 21 setPCatchClause(_pCatchClause_); 22 } 23 24 public Object clone() 25 { 26 throw new RuntimeException ("Unsupported Operation"); 27 } 28 29 public void apply(Switch sw) 30 { 31 throw new RuntimeException ("Switch not supported."); 32 } 33 34 public XPCatchClause getXPCatchClause() 35 { 36 return _xPCatchClause_; 37 } 38 39 public void setXPCatchClause(XPCatchClause node) 40 { 41 if(_xPCatchClause_ != null) 42 { 43 _xPCatchClause_.parent(null); 44 } 45 46 if(node != null) 47 { 48 if(node.parent() != null) 49 { 50 node.parent().removeChild(node); 51 } 52 53 node.parent(this); 54 } 55 56 _xPCatchClause_ = node; 57 } 58 59 public PCatchClause getPCatchClause() 60 { 61 return _pCatchClause_; 62 } 63 64 public void setPCatchClause(PCatchClause node) 65 { 66 if(_pCatchClause_ != null) 67 { 68 _pCatchClause_.parent(null); 69 } 70 71 if(node != null) 72 { 73 if(node.parent() != null) 74 { 75 node.parent().removeChild(node); 76 } 77 78 node.parent(this); 79 } 80 81 _pCatchClause_ = node; 82 } 83 84 void removeChild(Node child) 85 { 86 if(_xPCatchClause_ == child) 87 { 88 _xPCatchClause_ = null; 89 } 90 91 if(_pCatchClause_ == child) 92 { 93 _pCatchClause_ = null; 94 } 95 } 96 97 void replaceChild(Node oldChild, Node newChild) 98 { 99 } 100 101 public String toString() 102 { 103 return "" + 104 toString(_xPCatchClause_) + 105 toString(_pCatchClause_); 106 } 107 } 108 | Popular Tags |