797N/A * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 553N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 553N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 553N/A * or visit www.oracle.com if you need additional information or have any 0N/A * Implementation of Declaration 0N/A * "sym" should be completed before this constructor is called. 0N/A * <p> ParameterDeclarationImpl overrides this implementation. 0N/A * <p> ParameterDeclarationImpl overrides this implementation. 0N/A // Our doc comment is contained in a map in our toplevel, 0N/A // indexed by our tree. Find our enter environment, which gives 0N/A // us our toplevel. It also gives us a tree that contains our 0N/A // tree: walk it to find our tree. This is painful. 0N/A * Overridden by ClassDeclarationImpl to handle @Inherited. 0N/A // Cache for modifiers. 0N/A * Overridden in some subclasses. 0N/A // Find the toplevel. From there use a tree-walking utility 0N/A // that finds the tree for our symbol, and with it the position. 0N/A * Applies a visitor to this declaration. 0N/A * @param v the visitor operating on this declaration 0N/A * Returns the symbols of type or package members (and constructors) 0N/A * that are not synthetic or otherwise unwanted. 0N/A * Caches the result if "cache" is true. 0N/A * Tests whether this is a symbol that should never be seen by clients, 0N/A * such as a synthetic class. 0N/A * Note that a class synthesized by the compiler may not be flagged as 0N/A * synthetic: see bugid 4959932. 0N/A * Returns this declaration's enter environment, or null if it 0N/A // Get enclosing class of sym, or sym itself if it is a class