/** Create a method definition from a method symbol, method type * and a method body. */ public JCMethodDecl MethodDef(MethodSymbol m, Type mtype, JCBlock body) { return (JCMethodDecl) new JCMethodDecl( Modifiers(m.flags(), Annotations(m.getRawAttributes())), m.name, Type(mtype.getReturnType()), TypeParams(mtype.getTypeArguments()), null, // receiver type Params(mtype.getParameterTypes(), m), Types(mtype.getThrownTypes()), body, null, m).setPos(pos).setType(mtype); }
/** Create a method definition from a method symbol, method type * and a method body. */ public JCMethodDecl MethodDef(MethodSymbol m, Type mtype, JCBlock body) { return (JCMethodDecl) new JCMethodDecl( Modifiers(m.flags(), Annotations(m.getRawAttributes())), m.name, Type(mtype.getReturnType()), TypeParams(mtype.getTypeArguments()), null, // receiver type Params(mtype.getParameterTypes(), m), Types(mtype.getThrownTypes()), body, null, m).setPos(pos).setType(mtype); }