1 19 package gcc.generator; 20 21 public class JDeclareStatement extends JStatement 22 { 23 protected JVariable _v; 24 protected JExpression _initExpr; 25 26 public JDeclareStatement( JVariable v ) 27 { 28 this( v, null ); 29 } 30 31 public JDeclareStatement( JVariable v, JExpression initExpr ) 32 { 33 _v = v; 34 _initExpr = initExpr; 35 } 36 37 public void setVariable( JVariable s ) 38 { 39 _v = s; 40 } 41 42 public JVariable getVariable() 43 { 44 return _v; 45 } 46 47 public void setInitExpression( JExpression initExpr ) 48 { 49 _initExpr = initExpr; 50 } 51 52 public JExpression getInitExpression() 53 { 54 return _initExpr; 55 } 56 } 57 | Popular Tags |