duke@1: /* jfranck@1491: * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. duke@1: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. duke@1: * duke@1: * This code is free software; you can redistribute it and/or modify it duke@1: * under the terms of the GNU General Public License version 2 only, as ohair@554: * published by the Free Software Foundation. Oracle designates this duke@1: * particular file as subject to the "Classpath" exception as provided ohair@554: * by Oracle in the LICENSE file that accompanied this code. duke@1: * duke@1: * This code is distributed in the hope that it will be useful, but WITHOUT duke@1: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or duke@1: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License duke@1: * version 2 for more details (a copy is included in the LICENSE file that duke@1: * accompanied this code). duke@1: * duke@1: * You should have received a copy of the GNU General Public License version duke@1: * 2 along with this work; if not, write to the Free Software Foundation, duke@1: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. duke@1: * ohair@554: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@554: * or visit www.oracle.com if you need additional information or have any ohair@554: * questions. duke@1: */ duke@1: duke@1: package com.sun.tools.javac.code; duke@1: alundblad@2100: import java.lang.annotation.Annotation; alundblad@2100: import java.lang.annotation.Inherited; duke@1: import java.util.Set; duke@1: import java.util.concurrent.Callable; jjg@1357: duke@1: import javax.lang.model.element.*; duke@1: import javax.tools.JavaFileObject; duke@1: duke@1: import com.sun.tools.javac.code.Type.*; jjg@1802: import com.sun.tools.javac.comp.Annotate; duke@1: import com.sun.tools.javac.comp.Attr; duke@1: import com.sun.tools.javac.comp.AttrContext; duke@1: import com.sun.tools.javac.comp.Env; duke@1: import com.sun.tools.javac.jvm.*; jjg@1357: import com.sun.tools.javac.util.*; jjg@1357: import com.sun.tools.javac.util.Name; duke@1: import static com.sun.tools.javac.code.Flags.*; duke@1: import static com.sun.tools.javac.code.Kinds.*; jjg@1374: import static com.sun.tools.javac.code.TypeTag.CLASS; jjg@1374: import static com.sun.tools.javac.code.TypeTag.FORALL; jjg@1374: import static com.sun.tools.javac.code.TypeTag.TYPEVAR; jlahoda@2028: import com.sun.tools.javac.tree.JCTree.JCVariableDecl; duke@1: duke@1: /** Root class for Java symbols. It contains subclasses duke@1: * for specific sorts of symbols, such as variables, methods and operators, duke@1: * types, packages. Each subclass is represented as a static inner class duke@1: * inside Symbol. duke@1: * jjg@581: *
This is NOT part of any supported API.
jjg@581: * If you write code that depends on this, you do so at your own risk.
duke@1: * This code and its internal interfaces are subject to change or
duke@1: * deletion without notice.
duke@1: */
alundblad@2100: public abstract class Symbol extends AnnoConstruct implements Element {
duke@1:
duke@1: /** The kind of this symbol.
duke@1: * @see Kinds
duke@1: */
duke@1: public int kind;
duke@1:
duke@1: /** The flags of this symbol.
duke@1: */
duke@1: public long flags_field;
duke@1:
duke@1: /** An accessor method for the flags of this symbol.
duke@1: * Flags of class symbols should be accessed through the accessor
duke@1: * method to make sure that the class symbol is loaded.
duke@1: */
duke@1: public long flags() { return flags_field; }
duke@1:
duke@1: /** The name of this symbol in Utf8 representation.
duke@1: */
duke@1: public Name name;
duke@1:
duke@1: /** The type of this symbol.
duke@1: */
duke@1: public Type type;
duke@1:
duke@1: /** The owner of this symbol.
duke@1: */
duke@1: public Symbol owner;
duke@1:
duke@1: /** The completer of this symbol.
duke@1: */
duke@1: public Completer completer;
duke@1:
duke@1: /** A cache for the type erasure of this symbol.
duke@1: */
duke@1: public Type erasure_field;
duke@1:
jjg@1802: //