JavadocTodo.java revision 3827:44bdefe64114
167761Smsmith/* 267761Smsmith * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved. 367761Smsmith * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 467761Smsmith * 567761Smsmith * This code is free software; you can redistribute it and/or modify it 667761Smsmith * under the terms of the GNU General Public License version 2 only, as 767761Smsmith * published by the Free Software Foundation. Oracle designates this 867761Smsmith * particular file as subject to the "Classpath" exception as provided 967761Smsmith * by Oracle in the LICENSE file that accompanied this code. 1067761Smsmith * 1167761Smsmith * This code is distributed in the hope that it will be useful, but WITHOUT 1267761Smsmith * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1367761Smsmith * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1467761Smsmith * version 2 for more details (a copy is included in the LICENSE file that 1567761Smsmith * accompanied this code). 1667761Smsmith * 1767761Smsmith * You should have received a copy of the GNU General Public License version 1867761Smsmith * 2 along with this work; if not, write to the Free Software Foundation, 1967761Smsmith * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2067761Smsmith * 2167761Smsmith * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2267761Smsmith * or visit www.oracle.com if you need additional information or have any 2367761Smsmith * questions. 2467761Smsmith */ 2567761Smsmith 2667761Smsmithpackage jdk.javadoc.internal.tool; 27143002Sobrien 28143002Sobrienimport com.sun.tools.javac.comp.*; 29143002Sobrienimport com.sun.tools.javac.util.*; 30143002Sobrienimport com.sun.tools.javac.util.Context.Factory; 3167761Smsmith 3267761Smsmith/** 3379284Smsmith * Javadoc's own todo queue doesn't queue its inputs, as javadoc 34129811Snjl * doesn't perform attribution of method bodies or semantic checking. 3579284Smsmith * 36129879Sphk * <p><b>This is NOT part of any supported API. 37136397Simp * If you write code that depends on this, you do so at your own risk. 3867761Smsmith * This code and its internal interfaces are subject to change or 39193530Sjkim * deletion without notice.</b> 40193530Sjkim * 41193530Sjkim * @author Neal Gafter 4267761Smsmith */ 4367761Smsmithpublic class JavadocTodo extends Todo { 4467761Smsmith public static void preRegister(Context context) { 45119281Simp context.put(todoKey, (Factory<Todo>)JavadocTodo::new); 46119281Simp } 4767761Smsmith 4867761Smsmith protected JavadocTodo(Context context) { 49102447Sjhb super(context); 50102447Sjhb } 51129811Snjl 5278993Smsmith @Override 53102447Sjhb public void append(Env<AttrContext> e) { 5469744Smsmith // do nothing; Javadoc doesn't perform attribution. 55102447Sjhb } 5667761Smsmith 5767761Smsmith @Override 58131341Snjl public boolean offer(Env<AttrContext> e) { 5967761Smsmith return false; 6067761Smsmith } 6167761Smsmith} 6279284Smsmith