192 JCVariableDecl recvparam, 193 List<JCVariableDecl> params, 194 List<JCExpression> thrown, 195 JCBlock body, 196 JCExpression defaultValue) 197 { 198 JCMethodDecl tree = new JCMethodDecl(mods, 199 name, 200 restype, 201 typarams, 202 recvparam, 203 params, 204 thrown, 205 body, 206 defaultValue, 207 null); 208 tree.pos = pos; 209 return tree; 210 } 211 212 public JCVariableDecl VarDef(JCModifiers mods, Name name, JCExpression vartype, JCExpression init) { 213 JCVariableDecl tree = new JCVariableDecl(mods, name, vartype, init, null); 214 tree.pos = pos; 215 return tree; 216 } 217 218 public JCVariableDecl ReceiverVarDef(JCModifiers mods, JCExpression name, JCExpression vartype) { 219 JCVariableDecl tree = new JCVariableDecl(mods, name, vartype); 220 tree.pos = pos; 221 return tree; 222 } 223 224 public JCSkip Skip() { 225 JCSkip tree = new JCSkip(); 226 tree.pos = pos; 227 return tree; 228 } 229 230 public JCBlock Block(long flags, List<JCStatement> stats) { 231 JCBlock tree = new JCBlock(flags, stats); | 192 JCVariableDecl recvparam, 193 List<JCVariableDecl> params, 194 List<JCExpression> thrown, 195 JCBlock body, 196 JCExpression defaultValue) 197 { 198 JCMethodDecl tree = new JCMethodDecl(mods, 199 name, 200 restype, 201 typarams, 202 recvparam, 203 params, 204 thrown, 205 body, 206 defaultValue, 207 null); 208 tree.pos = pos; 209 return tree; 210 } 211 212 public JCMethodDecl MethodDef(JCModifiers mods, 213 Name name, 214 JCExpression restype, 215 List<JCTypeParameter> typarams, 216 JCVariableDecl recvparam, 217 List<JCVariableDecl> params, 218 List<JCExpression> thrown, 219 JCBlock body, 220 JCExpression defaultValue, 221 MethodSymbol mSymbol) 222 { 223 JCMethodDecl tree = new JCMethodDecl(mods, 224 name, 225 restype, 226 typarams, 227 recvparam, 228 params, 229 thrown, 230 body, 231 defaultValue, 232 mSymbol); 233 tree.pos = pos; 234 return tree; 235 } 236 237 public JCVariableDecl VarDef(JCModifiers mods, Name name, JCExpression vartype, JCExpression init) { 238 JCVariableDecl tree = new JCVariableDecl(mods, name, vartype, init, null); 239 tree.pos = pos; 240 return tree; 241 } 242 243 public JCVariableDecl ReceiverVarDef(JCModifiers mods, JCExpression name, JCExpression vartype) { 244 JCVariableDecl tree = new JCVariableDecl(mods, name, vartype); 245 tree.pos = pos; 246 return tree; 247 } 248 249 public JCSkip Skip() { 250 JCSkip tree = new JCSkip(); 251 tree.pos = pos; 252 return tree; 253 } 254 255 public JCBlock Block(long flags, List<JCStatement> stats) { 256 JCBlock tree = new JCBlock(flags, stats); |