1 /*
2 * Copyright (c) 1994, 2006, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
24 */
25
26 package sun.tools.java;
27
28 import java.util.*;
29 import java.io.OutputStream;
30 import java.io.PrintStream;
31 import sun.tools.tree.Context;
32 import sun.tools.tree.Vset;
33 import sun.tools.tree.Expression;
34 import sun.tools.tree.LocalMember;
35 import sun.tools.tree.UplevelReference;
36
37 /**
38 * This class is a Java class definition
39 *
40 * WARNING: The contents of this source file are not part of any
41 * supported API. Code that depends on them does so at its own risk:
42 * they are subject to change or removal without notice.
43 */
44 public
45 class ClassDefinition implements Constants {
46
47 protected Object source;
48 protected long where;
49 protected int modifiers;
50 protected Identifier localName; // for local classes
51 protected ClassDeclaration declaration;
52 protected IdentifierToken superClassId;
53 protected IdentifierToken interfaceIds[];
54 protected ClassDeclaration superClass;
55 protected ClassDeclaration interfaces[];
56 protected ClassDefinition outerClass;
57 protected MemberDefinition outerMember;
58 protected MemberDefinition innerClassMember; // field for me in outerClass
59 protected MemberDefinition firstMember;
60 protected MemberDefinition lastMember;
61 protected boolean resolved;
62 protected String documentation;
63 protected boolean error;
|
1 /*
2 * Copyright (c) 1994, 2015, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
24 */
25
26 package sun.tools.java;
27
28 import java.util.*;
29 import java.io.OutputStream;
30 import java.io.PrintStream;
31 import sun.tools.tree.Context;
32 import sun.tools.tree.Vset;
33 import sun.tools.tree.Expression;
34 import sun.tools.tree.LocalMember;
35 import sun.tools.tree.UplevelReference;
36
37 /**
38 * This class is a Java class definition
39 *
40 * WARNING: The contents of this source file are not part of any
41 * supported API. Code that depends on them does so at its own risk:
42 * they are subject to change or removal without notice.
43 */
44 @SuppressWarnings("deprecation")
45 public
46 class ClassDefinition implements Constants {
47
48 protected Object source;
49 protected long where;
50 protected int modifiers;
51 protected Identifier localName; // for local classes
52 protected ClassDeclaration declaration;
53 protected IdentifierToken superClassId;
54 protected IdentifierToken interfaceIds[];
55 protected ClassDeclaration superClass;
56 protected ClassDeclaration interfaces[];
57 protected ClassDefinition outerClass;
58 protected MemberDefinition outerMember;
59 protected MemberDefinition innerClassMember; // field for me in outerClass
60 protected MemberDefinition firstMember;
61 protected MemberDefinition lastMember;
62 protected boolean resolved;
63 protected String documentation;
64 protected boolean error;
|