langtools/src/share/classes/com/sun/tools/javac/tree/TreeMaker.java
changeset 14961 e731935052af
parent 14725 65836e833f59
child 15385 ee1eebe7e210
equal deleted inserted replaced
14960:ea7606a9683e 14961:e731935052af
   682      *  expression.
   682      *  expression.
   683      */
   683      */
   684     public JCVariableDecl VarDef(VarSymbol v, JCExpression init) {
   684     public JCVariableDecl VarDef(VarSymbol v, JCExpression init) {
   685         return (JCVariableDecl)
   685         return (JCVariableDecl)
   686             new JCVariableDecl(
   686             new JCVariableDecl(
   687                 Modifiers(v.flags(), Annotations(v.getAnnotationMirrors())),
   687                 Modifiers(v.flags(), Annotations(v.getRawAttributes())),
   688                 v.name,
   688                 v.name,
   689                 Type(v.type),
   689                 Type(v.type),
   690                 init,
   690                 init,
   691                 v).setPos(pos).setType(v.type);
   691                 v).setPos(pos).setType(v.type);
   692     }
   692     }
   798      *  and a method body.
   798      *  and a method body.
   799      */
   799      */
   800     public JCMethodDecl MethodDef(MethodSymbol m, Type mtype, JCBlock body) {
   800     public JCMethodDecl MethodDef(MethodSymbol m, Type mtype, JCBlock body) {
   801         return (JCMethodDecl)
   801         return (JCMethodDecl)
   802             new JCMethodDecl(
   802             new JCMethodDecl(
   803                 Modifiers(m.flags(), Annotations(m.getAnnotationMirrors())),
   803                 Modifiers(m.flags(), Annotations(m.getRawAttributes())),
   804                 m.name,
   804                 m.name,
   805                 Type(mtype.getReturnType()),
   805                 Type(mtype.getReturnType()),
   806                 TypeParams(mtype.getTypeArguments()),
   806                 TypeParams(mtype.getTypeArguments()),
   807                 Params(mtype.getParameterTypes(), m),
   807                 Params(mtype.getParameterTypes(), m),
   808                 Types(mtype.getThrownTypes()),
   808                 Types(mtype.getThrownTypes()),