1 19 package gcc.generator; 20 21 public class JIfStatement extends JBlockStatement 22 { 23 protected JExpression _expr; 24 25 public JIfStatement( JExpression e ) 26 { 27 super(); 28 _expr = e; 29 } 30 31 public JExpression getExpression() 32 { 33 return _expr; 34 } 35 36 public int hashCode() 37 { 38 return _expr.hashCode(); 39 } 40 41 public boolean equals( Object other ) 42 { 43 boolean rc = false; 44 45 if (this == other) 46 { 47 rc = true; 48 } 49 else if (other instanceof JIfStatement) 50 { 51 JIfStatement is = (JIfStatement)other; 52 53 if (is._expr == _expr) 54 { 55 rc = true; 57 } 58 } 59 60 return rc; 61 } 62 } | Popular Tags |