openjdk.tools.javac.file.RelativePath.RelativeDirectory
19 | */
20 | public Map extends Object, Path> getPackages(Path archivePath);
21 | }
22 |
--------------------------------------------------------------------------------
/src/java.compiler/share/classes/com/itsaky/androidide/zipfs2/ZipFileAttributes.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2009, 2018, 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
23 | * questions.
24 | */
25 |
26 | package com.itsaky.androidide.zipfs2;
27 |
28 | import java.nio.file.attribute.BasicFileAttributes;
29 |
30 | /**
31 | * The attributes of a file stored in a zip file.
32 | *
33 | * @author Xueming Shen, Rajendra Gutupalli,Jaya Hangal
34 | */
35 | public interface ZipFileAttributes extends BasicFileAttributes {
36 | public long compressedSize();
37 | public long crc();
38 | public int method();
39 | public byte[] extra();
40 | public byte[] comment();
41 | public String toString();
42 | }
43 |
--------------------------------------------------------------------------------
/src/java.compiler/share/classes/jdkx/annotation/processing/Completion.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2006, 2020, 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
23 | * questions.
24 | */
25 |
26 | package jdkx.annotation.processing;
27 |
28 | /**
29 | * A suggested {@linkplain Processor#getCompletions completion} for an
30 | * annotation. A completion is text meant to be inserted into a
31 | * program as part of an annotation.
32 | *
33 | * @author Joseph D. Darcy
34 | * @author Scott Seligman
35 | * @author Peter von der Ahé
36 | * @since 1.6
37 | */
38 | public interface Completion {
39 |
40 | /**
41 | * {@return the text of the suggested completion}
42 | */
43 | String getValue();
44 |
45 | /**
46 | * {@return an informative message about the completion}
47 | */
48 | String getMessage();
49 | }
50 |
--------------------------------------------------------------------------------
/src/java.compiler/share/classes/jdkx/lang/model/element/Parameterizable.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2009, 2017, 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
23 | * questions.
24 | */
25 |
26 | package jdkx.lang.model.element;
27 |
28 | import java.util.List;
29 |
30 | /**
31 | * A mixin interface for an element that has type parameters.
32 | *
33 | * @author Joseph D. Darcy
34 | * @since 1.7
35 | */
36 | public interface Parameterizable extends Element {
37 | /**
38 | * Returns the formal type parameters of an element in
39 | * declaration order.
40 | *
41 | * @return the formal type parameters, or an empty list
42 | * if there are none
43 | */
44 | List extends TypeParameterElement> getTypeParameters();
45 | }
46 |
--------------------------------------------------------------------------------
/src/java.compiler/share/classes/jdkx/lang/model/element/QualifiedNameable.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2009, 2020, 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
23 | * questions.
24 | */
25 |
26 | package jdkx.lang.model.element;
27 |
28 | /**
29 | * A mixin interface for an element that has a qualified name.
30 | *
31 | * @author Joseph D. Darcy
32 | * @since 1.7
33 | */
34 | public interface QualifiedNameable extends Element {
35 | /**
36 | * {@return the fully qualified name of an element}
37 | */
38 | Name getQualifiedName();
39 | }
40 |
--------------------------------------------------------------------------------
/src/java.compiler/share/classes/jdkx/lang/model/type/ArrayType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2005, 2020, 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
23 | * questions.
24 | */
25 |
26 | package jdkx.lang.model.type;
27 |
28 |
29 | /**
30 | * Represents an array type.
31 | * A multidimensional array type is represented as an array type
32 | * whose component type is also an array type.
33 | *
34 | * @author Joseph D. Darcy
35 | * @author Scott Seligman
36 | * @author Peter von der Ahé
37 | * @since 1.6
38 | */
39 | public interface ArrayType extends ReferenceType {
40 |
41 | /**
42 | * {@return the component type of this array type}
43 | */
44 | TypeMirror getComponentType();
45 | }
46 |
--------------------------------------------------------------------------------
/src/java.compiler/share/classes/jdkx/lang/model/type/ErrorType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2005, 2008, 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
23 | * questions.
24 | */
25 |
26 | package jdkx.lang.model.type;
27 |
28 | /**
29 | * Represents a class or interface type that cannot be properly modeled.
30 | * This may be the result of a processing error,
31 | * such as a missing class file or erroneous source code.
32 | * Most queries for
33 | * information derived from such a type (such as its members or its
34 | * supertype) will not, in general, return meaningful results.
35 | *
36 | * @author Joseph D. Darcy
37 | * @author Scott Seligman
38 | * @author Peter von der Ahé
39 | * @since 1.6
40 | */
41 | public interface ErrorType extends DeclaredType {
42 | }
43 |
--------------------------------------------------------------------------------
/src/java.compiler/share/classes/jdkx/lang/model/type/NullType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2005, 2020, 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
23 | * questions.
24 | */
25 |
26 | package jdkx.lang.model.type;
27 |
28 |
29 | /**
30 | * Represents the null type.
31 | * This is the type of the expression {@code null},
32 | *
33 | * @author Joseph D. Darcy
34 | * @author Scott Seligman
35 | * @author Peter von der Ahé
36 | * @jls 3.10.7 The Null Literal
37 | * @jls 4.1 The Kinds of Types and Values
38 | * @since 1.6
39 | */
40 |
41 | public interface NullType extends ReferenceType {
42 | }
43 |
--------------------------------------------------------------------------------
/src/java.compiler/share/classes/jdkx/lang/model/type/PrimitiveType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2005, 2020, 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
23 | * questions.
24 | */
25 |
26 | package jdkx.lang.model.type;
27 |
28 |
29 | /**
30 | * Represents a primitive type. These include
31 | * {@code boolean}, {@code byte}, {@code short}, {@code int},
32 | * {@code long}, {@code char}, {@code float}, and {@code double}.
33 | *
34 | * @author Joseph D. Darcy
35 | * @author Scott Seligman
36 | * @author Peter von der Ahé
37 | * @jls 4.2 Primitive Types and Values
38 | * @since 1.6
39 | */
40 | public interface PrimitiveType extends TypeMirror {
41 | }
42 |
--------------------------------------------------------------------------------
/src/java.compiler/share/classes/jdkx/lang/model/type/ReferenceType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2005, 2020, 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
23 | * questions.
24 | */
25 |
26 | package jdkx.lang.model.type;
27 |
28 |
29 | /**
30 | * Represents a reference type.
31 | * These include class and interface types, array types, type variables,
32 | * and the null type.
33 | *
34 | * @author Joseph D. Darcy
35 | * @author Scott Seligman
36 | * @author Peter von der Ahé
37 | * @jls 4.3 Reference Types and Values
38 | * @since 1.6
39 | */
40 | public interface ReferenceType extends TypeMirror {
41 | }
42 |
--------------------------------------------------------------------------------
/src/java.compiler/share/classes/jdkx/lang/model/type/UnionType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2010, 2020, 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
23 | * questions.
24 | */
25 |
26 | package jdkx.lang.model.type;
27 |
28 | import java.util.List;
29 |
30 | /**
31 | * Represents a union type.
32 | *
33 | * Union types can appear as the type of a multi-catch exception
34 | * parameter.
35 | *
36 | * @jls 14.20 The try statement
37 | * @since 1.7
38 | */
39 | public interface UnionType extends TypeMirror {
40 |
41 | /**
42 | * {@return the alternatives comprising this union type}
43 | */
44 | List extends TypeMirror> getAlternatives();
45 | }
46 |
--------------------------------------------------------------------------------
/src/java.compiler/share/classes/jdkx/tools/OptionChecker.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 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
23 | * questions.
24 | */
25 |
26 | package jdkx.tools;
27 |
28 | /**
29 | * Interface for recognizing options.
30 | *
31 | * @author Peter von der Ahé
32 | * @since 1.6
33 | */
34 | public interface OptionChecker {
35 |
36 | /**
37 | * Determines if the given option is supported and if so, the
38 | * number of arguments the option takes.
39 | *
40 | * @param option an option
41 | * @return the number of arguments the given option takes or -1 if
42 | * the option is not supported
43 | */
44 | int isSupportedOption(String option);
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/src/jdk.compiler/share/classes/javac/internal/shellsupport/doc/resources/javadocformatter.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016, 2020, 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
23 | # questions.
24 | #
25 |
26 | CAP_TypeParameters=Type Parameters:
27 | CAP_Parameters=Parameters:
28 | CAP_Returns=Returns:
29 | CAP_Thrown_Exceptions=Thrown Exceptions:
30 | Inline_Returns=Returns {0}.
31 |
--------------------------------------------------------------------------------
/src/jdk.compiler/share/classes/openjdk/source/doctree/AuthorTree.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2011, 2020, 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
23 | * questions.
24 | */
25 |
26 | package openjdk.source.doctree;
27 |
28 | import java.util.List;
29 |
30 | /**
31 | * A tree node for an {@code @author} block tag.
32 | *
33 | * 34 | * @author name-text 35 | *36 | * 37 | * @since 1.8 38 | */ 39 | public interface AuthorTree extends BlockTagTree { 40 | /** 41 | * Returns the name of the author. 42 | * @return the name 43 | */ 44 | List extends DocTree> getName(); 45 | } 46 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/BlockTagTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2014, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | /** 29 | * A tree node used as the base class for the different types of 30 | * block tags. 31 | * 32 | * @since 1.8 33 | */ 34 | public interface BlockTagTree extends DocTree { 35 | /** 36 | * Returns the name of the tag. 37 | * @return the name of the tag 38 | */ 39 | String getTagName(); 40 | } 41 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/CommentTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | /** 29 | * An embedded HTML comment. 30 | * 31 | *
32 | * <!-- text --> 33 | *34 | * 35 | * @since 1.8 36 | */ 37 | public interface CommentTree extends DocTree { 38 | /** 39 | * Returns the text of the comment. 40 | * @return the comment text 41 | */ 42 | String getBody(); 43 | } 44 | 45 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/DeprecatedTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for an {@code @deprecated} block tag. 32 | * 33 | *
34 | * @deprecated deprecated text 35 | *36 | * 37 | * @since 1.8 38 | */ 39 | public interface DeprecatedTree extends BlockTagTree { 40 | /** 41 | * Returns the description explaining why an item is deprecated. 42 | * @return the description 43 | */ 44 | List extends DocTree> getBody(); 45 | } 46 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/DocRootTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | /** 29 | * A tree node for an {@code @docRoot} inline tag. 30 | * 31 | *
32 | * {@docRoot} 33 | *34 | * 35 | * @since 1.8 36 | */ 37 | public interface DocRootTree extends InlineTagTree { } 38 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/DocTypeTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | /** 29 | * A tree node for a {@code doctype} declaration. 30 | * 31 | *
32 | * <!doctype text> 33 | *34 | * 35 | * For HTML5 documents, the correct form is {@code }. 36 | * 37 | * @since 10 38 | */ 39 | public interface DocTypeTree extends DocTree { 40 | /** 41 | * Returns the text of the doctype declaration. 42 | * @return text 43 | */ 44 | String getText(); 45 | } 46 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/EndElementTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | import jdkx.lang.model.element.Name; 29 | 30 | /** 31 | * A tree node for the end of an HTML element. 32 | * 33 | *
34 | * </ name > 35 | *36 | * 37 | * @since 1.8 38 | */ 39 | public interface EndElementTree extends DocTree { 40 | /** 41 | * Returns the name of this element. 42 | * @return the name 43 | */ 44 | Name getName(); 45 | } 46 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/EntityTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | import jdkx.lang.model.element.Name; 29 | 30 | /** 31 | * A tree node for an HTML entity. 32 | * 33 | *
34 | * &name; 35 | * &#digits; 36 | * &#Xhex-digits; 37 | *38 | * 39 | * @since 1.8 40 | */ 41 | public interface EntityTree extends DocTree { 42 | /** 43 | * Returns the name or value of the entity. 44 | * @return the name or value of the entity 45 | */ 46 | Name getName(); 47 | } 48 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/ErroneousTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | import jdkx.tools.Diagnostic; 29 | import jdkx.tools.JavaFileObject; 30 | 31 | /** 32 | * A tree node to stand in for malformed text. 33 | * 34 | * @since 1.8 35 | */ 36 | public interface ErroneousTree extends TextTree { 37 | /** 38 | * Returns a diagnostic object giving details about 39 | * the reason the body text is in error. 40 | * 41 | * @return a diagnostic 42 | */ 43 | Diagnostic
34 | * @hidden 35 | *36 | * 37 | * @since 9 38 | */ 39 | public interface HiddenTree extends BlockTagTree { 40 | /** 41 | * Returns the description explaining why an item is hidden. 42 | * @return the description 43 | */ 44 | List extends DocTree> getBody(); 45 | } 46 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/IdentifierTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | import jdkx.lang.model.element.Name; 29 | 30 | /** 31 | * An identifier in a documentation comment. 32 | * 33 | *
34 | * name 35 | *36 | * 37 | * @since 1.8 38 | */ 39 | public interface IdentifierTree extends DocTree { 40 | /** 41 | * Returns the name of the identifier. 42 | * @return the name 43 | */ 44 | Name getName(); 45 | } 46 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/IndexTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for an {@code @index} inline tag. 32 | * 33 | *
34 | * {@index keyword optional description} 35 | *36 | * 37 | * @since 9 38 | */ 39 | public interface IndexTree extends InlineTagTree { 40 | /** 41 | * Returns the specified search term. 42 | * @return the search term 43 | */ 44 | DocTree getSearchTerm(); 45 | 46 | /** 47 | * Returns the description, if any. 48 | * @return the description 49 | */ 50 | List extends DocTree> getDescription(); 51 | } 52 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/InheritDocTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | /** 29 | * A tree node for an {@code @inheritDoc} inline tag. 30 | * 31 | *
32 | * {@inheritDoc} 33 | *34 | * 35 | * @since 1.8 36 | */ 37 | public interface InheritDocTree extends InlineTagTree { } 38 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/InlineTagTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2014, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | /** 29 | * A tree node used as the base class for the different types of 30 | * inline tags. 31 | * 32 | * @since 1.8 33 | */ 34 | public interface InlineTagTree extends DocTree { 35 | /** 36 | * Returns the name of the tag. 37 | * @return the name of the tag 38 | */ 39 | String getTagName(); 40 | } 41 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/LinkTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for an {@code @link} or {@code @linkplain} inline tag. 32 | * 33 | *
34 | * {@link reference label} 35 | * {@linkplain reference label} 36 | *37 | * 38 | * @since 1.8 39 | */ 40 | public interface LinkTree extends InlineTagTree { 41 | /** 42 | * Returns the reference of the link. 43 | * @return the reference 44 | */ 45 | ReferenceTree getReference(); 46 | 47 | /** 48 | * Returns the label, if any, of the link. 49 | * @return the label 50 | */ 51 | List extends DocTree> getLabel(); 52 | } 53 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/LiteralTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | /** 29 | * A tree node for an {@code @literal} or {@code @code} inline tag. 30 | * 31 | *
32 | * {@literal text} 33 | * {@code text} 34 | *35 | * 36 | * @since 1.8 37 | */ 38 | public interface LiteralTree extends InlineTagTree { 39 | /** 40 | * Returns the body of the {@code @literal} or {@code @code} tag. 41 | * @return the body of the tag 42 | */ 43 | TextTree getBody(); 44 | } 45 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/ProvidesTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for a {@code @provides} block tag. 32 | * 33 | *
34 | * @provides service-type description 35 | *36 | * 37 | * @since 9 38 | */ 39 | public interface ProvidesTree extends BlockTagTree { 40 | /** 41 | * Returns the name of the service type being documented. 42 | * @return the name of the service type 43 | */ 44 | ReferenceTree getServiceType(); 45 | 46 | /** 47 | * Returns a description of the service type being provided by the module. 48 | * @return the description 49 | */ 50 | List extends DocTree> getDescription(); 51 | } 52 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/ReferenceTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | /** 29 | * A tree node for a reference to a Java language element. 30 | * 31 | *
32 | * package.class#field 33 | * package.class#method(arg-types) 34 | *35 | * 36 | * @since 1.8 37 | */ 38 | public interface ReferenceTree extends DocTree { 39 | /** 40 | * Returns the signature of the Java language element being referenced, 41 | * as found in {@code @see} and similar nodes. 42 | * @return the signature 43 | */ 44 | String getSignature(); 45 | } 46 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/SeeTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for an {@code @see} block tag. 32 | * 33 | *
34 | * @see "string" 35 | * @see <a href="URL#value"> label </a> 36 | * @see reference 37 | *38 | * 39 | * @since 1.8 40 | */ 41 | public interface SeeTree extends BlockTagTree { 42 | /** 43 | * Returns the reference. 44 | * @return the reference 45 | */ 46 | List extends DocTree> getReference(); 47 | } 48 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/SerialDataTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for an {@code @serialData} block tag. 32 | * 33 | *
34 | * @serialData data-description 35 | *36 | * 37 | * @since 1.8 38 | */ 39 | public interface SerialDataTree extends BlockTagTree { 40 | /** 41 | * Returns the description of the serial data. 42 | * @return the description 43 | */ 44 | List extends DocTree> getDescription(); 45 | } 46 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/SerialTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for an {@code @serial} block tag. 32 | * 33 | *
34 | * @serial field-description | include | exclude 35 | *36 | * 37 | * @since 1.8 38 | */ 39 | public interface SerialTree extends BlockTagTree { 40 | /** 41 | * Returns the description of the field, or the word 42 | * "include" or "exclude". 43 | * @return the description of the field 44 | */ 45 | List extends DocTree> getDescription(); 46 | } 47 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/SinceTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for an {@code @since} block tag. 32 | * 33 | *
34 | * @since since-text 35 | *36 | * 37 | * @since 1.8 38 | */ 39 | public interface SinceTree extends BlockTagTree { 40 | /** 41 | * Returns the text explaining the availability of the item being documented. 42 | * @return the text 43 | */ 44 | List extends DocTree> getBody(); 45 | } 46 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/SummaryTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for an {@code @summary} inline tag. 32 | * 33 | *
34 | * {@summary text} 35 | *36 | * 37 | * @since 10 38 | */ 39 | public interface SummaryTree extends InlineTagTree { 40 | /** 41 | * Returns the summary or the first line of a comment. 42 | * @return the summary text 43 | */ 44 | List extends DocTree> getSummary(); 45 | } 46 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/SystemPropertyTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2018, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | import jdkx.lang.model.element.Name; 29 | 30 | /** 31 | * A tree node for an {@code @systemProperty} inline tag. 32 | * 33 | *
34 | * {@systemProperty property-name} 35 | *36 | * 37 | * @since 12 38 | */ 39 | public interface SystemPropertyTree extends InlineTagTree { 40 | /** 41 | * Returns the specified system property name. 42 | * @return the system property name 43 | */ 44 | Name getPropertyName(); 45 | } 46 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/TextTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2014, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | /** 29 | * A tree node for plain text. 30 | * 31 | * @since 1.8 32 | */ 33 | public interface TextTree extends DocTree { 34 | /** 35 | * Returns the text. 36 | * @return the text 37 | */ 38 | String getBody(); 39 | } 40 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/UnknownBlockTagTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for an unrecognized block tag. 32 | * 33 | *
34 | * @name content 35 | *36 | * 37 | * @since 1.8 38 | */ 39 | public interface UnknownBlockTagTree extends BlockTagTree { 40 | /** 41 | * Returns the content of an unrecognized block tag. 42 | * @return the content 43 | */ 44 | List extends DocTree> getContent(); 45 | } 46 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/UnknownInlineTagTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for an unrecognized inline tag. 32 | * 33 | *
34 | * {@name content} 35 | *36 | * 37 | * @since 1.8 38 | */ 39 | public interface UnknownInlineTagTree extends InlineTagTree { 40 | /** 41 | * Returns the content of an unrecognized inline tag. 42 | * @return the content 43 | */ 44 | List extends DocTree> getContent(); 45 | } 46 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/UsesTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for an {@code @uses} block tag. 32 | * 33 | *
34 | * @uses service-type description 35 | *36 | * 37 | * @since 9 38 | */ 39 | public interface UsesTree extends BlockTagTree { 40 | /** 41 | * Returns the name of the service type being documented. 42 | * @return the name of the service type 43 | */ 44 | ReferenceTree getServiceType(); 45 | 46 | /** 47 | * Returns a description of the use of service type within the module. 48 | * @return the description 49 | */ 50 | List extends DocTree> getDescription(); 51 | } 52 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/ValueTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | /** 29 | * A tree node for an {@code @value} inline tag. 30 | * 31 | *
32 | * {@value reference} 33 | *34 | * 35 | * @since 1.8 36 | */ 37 | public interface ValueTree extends InlineTagTree { 38 | /** 39 | * Returns the reference to the value. 40 | * @return the reference 41 | */ 42 | ReferenceTree getReference(); 43 | } 44 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/VersionTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.doctree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for an {@code @version} block tag. 32 | * 33 | *
34 | * @version version-text 35 | *36 | * 37 | * @since 1.8 38 | */ 39 | public interface VersionTree extends BlockTagTree { 40 | /** 41 | * Returns the body of the tag. 42 | * @return the body 43 | */ 44 | List extends DocTree> getBody(); 45 | } 46 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/doctree/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2018, 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 23 | * questions. 24 | */ 25 | 26 | /** 27 | * Provides interfaces to represent documentation comments as abstract syntax 28 | * trees (AST). 29 | * 30 | * @author Jonathan Gibbons 31 | * @since 1.8 32 | * 33 | * @see 34 | * Documentation Comment Specification for the Standard Doclet 35 | */ 36 | package openjdk.source.doctree; 37 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/ArrayTypeTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2014, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | /** 29 | * A tree node for an array type. 30 | * 31 | * For example: 32 | *
33 | * type [] 34 | *35 | * 36 | * @jls 10.1 Array Types 37 | * 38 | * @author Peter von der Ahé 39 | * @author Jonathan Gibbons 40 | * @since 1.6 41 | */ 42 | public interface ArrayTypeTree extends Tree { 43 | /** 44 | * Returns the element type of this array type. 45 | * @return the element type 46 | */ 47 | Tree getType(); 48 | } 49 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/BindingPatternTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017, 2019, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | /** 29 | * A binding pattern tree 30 | * 31 | * @since 16 32 | */ 33 | public interface BindingPatternTree extends PatternTree { 34 | 35 | /** 36 | * Returns the binding variable. 37 | * @return the binding variable 38 | */ 39 | VariableTree getVariable(); 40 | 41 | } 42 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/BreakTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2019, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | import jdkx.lang.model.element.Name; 29 | 30 | /** 31 | * A tree node for a {@code break} statement. 32 | * 33 | * For example: 34 | *
35 | * break; 36 | * 37 | * break label ; 38 | *39 | * 40 | * @jls 14.15 The break Statement 41 | * 42 | * @author Peter von der Ahé 43 | * @author Jonathan Gibbons 44 | * @since 1.6 45 | */ 46 | public interface BreakTree extends StatementTree { 47 | /** 48 | * Returns the label for this {@code break} statement. 49 | * @return the label 50 | */ 51 | Name getLabel(); 52 | 53 | } 54 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/CaseLabelTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | import javac.internal.PreviewFeature; 29 | 30 | /** 31 | * A marker interface for {@code Tree}s that may be used as {@link CaseTree} labels. 32 | * 33 | * @since 17 34 | */ 35 | @PreviewFeature(feature=PreviewFeature.Feature.SWITCH_PATTERN_MATCHING, reflective=true) 36 | public interface CaseLabelTree extends Tree {} 37 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/ContinueTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2014, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | import jdkx.lang.model.element.Name; 29 | 30 | /** 31 | * A tree node for a {@code continue} statement. 32 | * 33 | * For example: 34 | *
35 | * continue; 36 | * continue label ; 37 | *38 | * 39 | * @jls 14.16 The continue Statement 40 | * 41 | * @author Peter von der Ahé 42 | * @author Jonathan Gibbons 43 | * @since 1.6 44 | */ 45 | public interface ContinueTree extends StatementTree { 46 | /** 47 | * Returns the label for this {@code continue} statement. 48 | * @return the label 49 | */ 50 | Name getLabel(); 51 | } 52 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/DefaultCaseLabelTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021, 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 23 | * questions. 24 | */ 25 | package openjdk.source.tree; 26 | 27 | import javac.internal.PreviewFeature; 28 | 29 | /** 30 | * A case label that marks {@code default} in {@code case null, default}. 31 | * 32 | * @since 17 33 | */ 34 | @PreviewFeature(feature=PreviewFeature.Feature.SWITCH_PATTERN_MATCHING, reflective=true) 35 | public interface DefaultCaseLabelTree extends CaseLabelTree {} 36 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/DirectiveTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2014, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | /** 29 | * A super-type for all the directives in a ModuleTree. 30 | */ 31 | public interface DirectiveTree extends Tree { } 32 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/EmptyStatementTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2013, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | /** 29 | * A tree node for an empty (skip) statement. 30 | * 31 | * For example: 32 | *
33 | * ; 34 | *35 | * 36 | * @jls 14.6 The Empty Statement 37 | * 38 | * @author Peter von der Ahé 39 | * @author Jonathan Gibbons 40 | * @since 1.6 41 | */ 42 | public interface EmptyStatementTree extends StatementTree {} 43 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/ErroneousTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2014, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node to stand in for a malformed expression. 32 | * 33 | * @author Peter von der Ahé 34 | * @author Jonathan Gibbons 35 | * @since 1.6 36 | */ 37 | public interface ErroneousTree extends ExpressionTree { 38 | /** 39 | * Returns any trees that were saved in this node. 40 | * @return the trees 41 | */ 42 | List extends Tree> getErrorTrees(); 43 | } 44 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/ExpressionStatementTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2014, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | /** 29 | * A tree node for an expression statement. 30 | * 31 | * For example: 32 | *
33 | * expression ; 34 | *35 | * 36 | * @jls 14.8 Expression Statements 37 | * 38 | * @author Peter von der Ahé 39 | * @author Jonathan Gibbons 40 | * @since 1.6 41 | */ 42 | public interface ExpressionStatementTree extends StatementTree { 43 | /** 44 | * Returns the expression constituting this statement. 45 | * @return the expression 46 | */ 47 | ExpressionTree getExpression(); 48 | } 49 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/ExpressionTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2013, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | /** 29 | * A tree node used as the base class for the different types of 30 | * expressions. 31 | * 32 | * @jls 15 Expressions 33 | * 34 | * @author Peter von der Ahé 35 | * @author Jonathan Gibbons 36 | * @since 1.6 37 | */ 38 | public interface ExpressionTree extends Tree, CaseLabelTree {} 39 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/GuardedPatternTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | import javac.internal.PreviewFeature; 29 | 30 | /** 31 | * A guard pattern tree. 32 | * 33 | * @since 17 34 | */ 35 | @PreviewFeature(feature=PreviewFeature.Feature.SWITCH_PATTERN_MATCHING, reflective=true) 36 | public interface GuardedPatternTree extends PatternTree { 37 | 38 | /** 39 | * The guarded pattern expression. 40 | * @return the guarded pattern 41 | */ 42 | public PatternTree getPattern(); 43 | 44 | /** 45 | * The guard expression. 46 | * @return the guard expression 47 | */ 48 | public ExpressionTree getExpression(); 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/IdentifierTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2014, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | import jdkx.lang.model.element.Name; 29 | 30 | /** 31 | * A tree node for an identifier expression. 32 | * 33 | * For example: 34 | *
35 | * name 36 | *37 | * 38 | * @jls 6.5.6.1 Simple Expression Names 39 | * 40 | * @author Peter von der Ahé 41 | * @author Jonathan Gibbons 42 | * @since 1.6 43 | */ 44 | public interface IdentifierTree extends ExpressionTree { 45 | /** 46 | * Returns the name of the identifier. 47 | * @return the name 48 | */ 49 | Name getName(); 50 | } 51 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/IntersectionTypeTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2014, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for an intersection type in a cast expression. 32 | * 33 | * @author Maurizio Cimadamore 34 | * 35 | * @since 1.8 36 | */ 37 | public interface IntersectionTypeTree extends Tree { 38 | /** 39 | * Returns the bounds of the type. 40 | * @return the bounds 41 | */ 42 | List extends Tree> getBounds(); 43 | } 44 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/LiteralTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2014, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | /** 29 | * A tree node for a literal expression. 30 | * Use {@link #getKind getKind} to determine the kind of literal. 31 | * 32 | * For example: 33 | *
34 | * value 35 | *36 | * 37 | * @jls 15.28 Constant Expressions 38 | * 39 | * @author Peter von der Ahé 40 | * @author Jonathan Gibbons 41 | * @since 1.6 42 | */ 43 | public interface LiteralTree extends ExpressionTree { 44 | /** 45 | * Returns the value of the literal expression. 46 | * The value will be a boxed primitive value, a String, or {@code null}. 47 | * @return the value 48 | */ 49 | Object getValue(); 50 | } 51 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/PackageTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * Represents the package declaration. 32 | * 33 | * @jls 7.3 Compilation Units 34 | * @jls 7.4 Package Declarations 35 | * 36 | * @author Paul Govereau 37 | * @since 9 38 | */ 39 | public interface PackageTree extends Tree { 40 | /** 41 | * Returns the annotations associated with this package declaration. 42 | * @return the annotations 43 | */ 44 | List extends AnnotationTree> getAnnotations(); 45 | 46 | /** 47 | * Returns the name of the package being declared. 48 | * @return the name 49 | */ 50 | ExpressionTree getPackageName(); 51 | } 52 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/ParenthesizedPatternTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2014, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | import javac.internal.PreviewFeature; 29 | 30 | /** 31 | * A tree node for a parenthesized pattern. 32 | * 33 | * For example: 34 | *
35 | * ( pattern ) 36 | *37 | * 38 | * @jls 14.30.1 Kinds of Patterns 39 | * 40 | * @since 17 41 | */ 42 | @PreviewFeature(feature=PreviewFeature.Feature.SWITCH_PATTERN_MATCHING, reflective=true) 43 | public interface ParenthesizedPatternTree extends PatternTree { 44 | /** 45 | * Returns the pattern within the parentheses. 46 | * @return the pattern 47 | */ 48 | PatternTree getPattern(); 49 | } 50 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/ParenthesizedTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2014, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | /** 29 | * A tree node for a parenthesized expression. Note: parentheses 30 | * not be preserved by the parser. 31 | * 32 | * For example: 33 | *
34 | * ( expression ) 35 | *36 | * 37 | * @jls 15.8.5 Parenthesized Expressions 38 | * 39 | * @author Peter von der Ahé 40 | * @author Jonathan Gibbons 41 | * @since 1.6 42 | */ 43 | public interface ParenthesizedTree extends ExpressionTree { 44 | /** 45 | * Returns the expression within the parentheses. 46 | * @return the expression 47 | */ 48 | ExpressionTree getExpression(); 49 | } 50 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/PatternTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017, 2019, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | /** 29 | * A tree node used as the base class for the different kinds of 30 | * patterns. 31 | * 32 | * @since 16 33 | */ 34 | public interface PatternTree extends Tree, CaseLabelTree {} 35 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/PrimitiveTypeTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2014, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | import jdkx.lang.model.type.TypeKind; 29 | 30 | /** 31 | * A tree node for a primitive type. 32 | * 33 | * For example: 34 | *
35 | * primitiveTypeKind 36 | *37 | * 38 | * @jls 4.2 Primitive Types and Values 39 | * 40 | * @author Peter von der Ahé 41 | * @author Jonathan Gibbons 42 | * @since 1.6 43 | */ 44 | public interface PrimitiveTypeTree extends Tree { 45 | /** 46 | * Returns the kind of this primitive type. 47 | * @return the kind of the type 48 | */ 49 | TypeKind getPrimitiveTypeKind(); 50 | } 51 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/ReturnTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2014, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | /** 29 | * A tree node for a {@code return} statement. 30 | * 31 | * For example: 32 | *
33 | * return; 34 | * return expression; 35 | *36 | * 37 | * @jls 14.17 The return Statement 38 | * 39 | * @author Peter von der Ahé 40 | * @author Jonathan Gibbons 41 | * @since 1.6 42 | */ 43 | public interface ReturnTree extends StatementTree { 44 | /** 45 | * Returns the expression to be returned. 46 | * @return the expression 47 | */ 48 | ExpressionTree getExpression(); 49 | } 50 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/StatementTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2013, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | /** 29 | * A tree node used as the base class for the different kinds of 30 | * statements. 31 | * 32 | * @jls 14 Blocks and Statements 33 | * 34 | * @author Peter von der Ahé 35 | * @author Jonathan Gibbons 36 | * @since 1.6 37 | */ 38 | public interface StatementTree extends Tree {} 39 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/ThrowTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2014, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | /** 29 | * A tree node for a {@code throw} statement. 30 | * 31 | * For example: 32 | *
33 | * throw expression; 34 | *35 | * 36 | * @jls 14.18 The throw Statement 37 | * 38 | * @author Peter von der Ahé 39 | * @author Jonathan Gibbons 40 | * @since 1.6 41 | */ 42 | public interface ThrowTree extends StatementTree { 43 | /** 44 | * Returns the expression to be thrown. 45 | * @return the expression 46 | */ 47 | ExpressionTree getExpression(); 48 | } 49 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/TypeCastTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2014, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | /** 29 | * A tree node for a type cast expression. 30 | * 31 | * For example: 32 | *
33 | * ( type ) expression 34 | *35 | * 36 | * @jls 15.16 Cast Expressions 37 | * 38 | * @author Peter von der Ahé 39 | * @author Jonathan Gibbons 40 | * @since 1.6 41 | */ 42 | public interface TypeCastTree extends ExpressionTree { 43 | /** 44 | * Returns the target type of the cast. 45 | * @return the cast 46 | */ 47 | Tree getType(); 48 | 49 | /** 50 | * Returns the expression being cast. 51 | * @return the expression 52 | */ 53 | ExpressionTree getExpression(); 54 | } 55 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/UnionTypeTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 2014, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for a union type expression in a multicatch 32 | * variable declaration. 33 | * 34 | * @author Maurizio Cimadamore 35 | * 36 | * @since 1.7 37 | */ 38 | public interface UnionTypeTree extends Tree { 39 | /** 40 | * Returns the alternative type expressions. 41 | * @return the alternative type expressions 42 | */ 43 | List extends Tree> getTypeAlternatives(); 44 | } 45 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/UsesTree.java: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved. 4 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5 | * 6 | * This code is free software; you can redistribute it and/or modify it 7 | * under the terms of the GNU General Public License version 2 only, as 8 | * published by the Free Software Foundation. Oracle designates this 9 | * particular file as subject to the "Classpath" exception as provided 10 | * by Oracle in the LICENSE file that accompanied this code. 11 | * 12 | * This code is distributed in the hope that it will be useful, but WITHOUT 13 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 14 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15 | * version 2 for more details (a copy is included in the LICENSE file that 16 | * accompanied this code). 17 | * 18 | * You should have received a copy of the GNU General Public License version 19 | * 2 along with this work; if not, write to the Free Software Foundation, 20 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 21 | * 22 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 23 | * or visit www.oracle.com if you need additional information or have any 24 | * questions. 25 | */ 26 | 27 | package openjdk.source.tree; 28 | 29 | /** 30 | * A tree node for a 'uses' directive in a module declaration. 31 | * 32 | * For example: 33 | *
34 | * uses service-name; 35 | *36 | * 37 | * @since 9 38 | */ 39 | public interface UsesTree extends DirectiveTree { 40 | /** 41 | * Returns the name of the service type. 42 | * @return the name of the service type 43 | */ 44 | ExpressionTree getServiceName(); 45 | } 46 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/WildcardTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2014, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | /** 29 | * A tree node for a wildcard type argument. 30 | * Use {@link #getKind getKind} to determine the kind of bound. 31 | * 32 | * For example: 33 | *
34 | * ? 35 | * 36 | * ? extends bound 37 | * 38 | * ? super bound 39 | *40 | * 41 | * @jls 4.5.1 Type Arguments of Parameterized Types 42 | * 43 | * @author Peter von der Ahé 44 | * @author Jonathan Gibbons 45 | * @since 1.6 46 | */ 47 | public interface WildcardTree extends Tree { 48 | /** 49 | * Returns the bound of the wildcard. 50 | * @return the bound 51 | */ 52 | Tree getBound(); 53 | } 54 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/YieldTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2019, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.source.tree; 27 | 28 | /** 29 | * A tree node for a {@code yield} statement. 30 | * 31 | * For example: 32 | *
33 | * yield expression ; 34 | *35 | * 36 | * @jls 14.21 The yield Statement 37 | * 38 | * @since 13 39 | */ 40 | public interface YieldTree extends StatementTree { 41 | 42 | /** 43 | * Returns the expression for this {@code yield} statement. 44 | * 45 | * @return the expression 46 | */ 47 | ExpressionTree getValue(); 48 | } 49 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/tree/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2013, 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 23 | * questions. 24 | */ 25 | 26 | /** 27 | * Provides interfaces to represent source code as abstract syntax 28 | * trees (AST). 29 | * 30 | * @author Peter von der Ahé 31 | * @author Jonathan Gibbons 32 | * @since 1.6 33 | */ 34 | package openjdk.source.tree; 35 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/source/util/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2013, 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 23 | * questions. 24 | */ 25 | 26 | /** 27 | * Provides utilities for operations on abstract syntax trees (AST). 28 | * 29 | * @author Peter von der Ahé 30 | * @author Jonathan Gibbons 31 | * @since 1.6 32 | */ 33 | package openjdk.source.util; 34 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/tools/doclint/HtmlVersion.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.tools.doclint; 27 | 28 | /** 29 | * Enum representing HTML version of the documentation comment. 30 | * 31 | * @author Bhavesh Patel 32 | */ 33 | public enum HtmlVersion { 34 | 35 | HTML4, 36 | HTML5, 37 | ALL; 38 | 39 | public static HtmlVersion getHtmlVersion(String argsVersion) { 40 | switch (argsVersion) { 41 | case "html4": 42 | return HtmlVersion.HTML4; 43 | case "html5": 44 | return HtmlVersion.HTML5; 45 | default: 46 | return null; 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/tools/javac/api/ClassNamesForFileOraculum.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999, 2020, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.tools.javac.api; 27 | 28 | import jdkx.tools.JavaFileObject; 29 | 30 | /** 31 | *
This is NOT part of any API supported by Sun Microsystems. 32 | * If you write code that depends on this, you do so at your own 33 | * risk. This code and its internal interfaces are subject to change 34 | * or deletion without notice.
35 | * 36 | * @author Jan Lahoda 37 | */ 38 | public interface ClassNamesForFileOraculum { 39 | 40 | public String[] divineClassName(JavaFileObject jfo); 41 | 42 | public JavaFileObject[] divineSources(String fqn); 43 | } 44 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/tools/javac/api/DuplicateClassChecker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999, 2020, 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 23 | * questions. 24 | */ 25 | package openjdk.tools.javac.api; 26 | 27 | import jdkx.lang.model.element.Name; 28 | import jdkx.tools.JavaFileObject; 29 | 30 | /** 31 | * 32 | * @author Dusan Balek 33 | */ 34 | public interface DuplicateClassChecker { 35 | 36 | boolean check(Name name, JavaFileObject jfo); 37 | } 38 | -------------------------------------------------------------------------------- /src/jdk.compiler/share/classes/openjdk/tools/javac/code/BoundKind.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003, 2005, 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 23 | * questions. 24 | */ 25 | 26 | package openjdk.tools.javac.code; 27 | 28 | /** 29 | * 30 | *This is NOT part of any supported API.
31 | * If you write code that depends on this, you do so at your own risk.
32 | * This code and its internal interfaces are subject to change or
33 | * deletion without notice.
34 | */
35 | public enum BoundKind {
36 | EXTENDS("? extends "),
37 | SUPER("? super "),
38 | UNBOUND("?");
39 |
40 | private final String name;
41 |
42 | BoundKind(String name) {
43 | this.name = name;
44 | }
45 |
46 | public String toString() { return name; }
47 | }
48 |
--------------------------------------------------------------------------------
/src/jdk.compiler/share/classes/openjdk/tools/javac/comp/AttrContextEnv.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000, 2005, 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
23 | * questions.
24 | */
25 |
26 | package openjdk.tools.javac.comp;
27 |
28 | import openjdk.tools.javac.tree.JCTree;
29 |
30 |
31 | /** {@code Env} specialized as {@code Env This is NOT part of any supported API.
34 | * If you write code that depends on this, you do so at your own risk.
35 | * This code and its internal interfaces are subject to change or
36 | * deletion without notice.
37 | */
38 | public class AttrContextEnv extends Env This is NOT part of any supported API.
30 | * If you write code that depends on this, you do so at your own risk.
31 | * This code and its internal interfaces are subject to change or
32 | * deletion without notice.
33 | */
34 | package openjdk.tools.javac.platform;
35 |
--------------------------------------------------------------------------------
/src/jdk.compiler/share/classes/openjdk/tools/javac/processing/AnnotationProcessingError.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2005, 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
23 | * questions.
24 | */
25 |
26 | package openjdk.tools.javac.processing;
27 |
28 |
29 | /**
30 | * Error thrown for problems encountered during annotation processing.
31 | *
32 | * This is NOT part of any supported API.
33 | * If you write code that depends on this, you do so at your own risk.
34 | * This code and its internal interfaces are subject to change or
35 | * deletion without notice.
36 | */
37 | public class AnnotationProcessingError extends Error {
38 | static final long serialVersionUID = 305337707019230790L;
39 | AnnotationProcessingError(Throwable cause) {
40 | super(cause);
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/src/jdk.compiler/share/classes/openjdk/tools/javac/resources/version.properties-template:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2005, 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
23 | # questions.
24 | #
25 |
26 | jdk=$(JDK_VERSION)
27 | full=$(FULL_VERSION)
28 | release=$(RELEASE)
29 |
--------------------------------------------------------------------------------
/src/jdk.compiler/share/classes/openjdk/tools/javac/util/Abort.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999, 2005, 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
23 | * questions.
24 | */
25 |
26 | package openjdk.tools.javac.util;
27 |
28 | /** Throwing an instance of
29 | * this class causes (silent) termination of the main compiler method.
30 | *
31 | * This is NOT part of any supported API.
32 | * If you write code that depends on this, you do so at your own risk.
33 | * This code and its internal interfaces are subject to change or
34 | * deletion without notice.
35 | */
36 | public class Abort extends Error {
37 | private static final long serialVersionUID = 0;
38 |
39 | public Abort(Throwable cause) {
40 | super(cause);
41 | }
42 |
43 | public Abort() {
44 | super();
45 | }
46 |
47 | }
48 |
--------------------------------------------------------------------------------
/src/jdk.compiler/share/classes/openjdk/tools/javac/util/ClientCodeException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2005, 2019, 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
23 | * questions.
24 | */
25 |
26 | package openjdk.tools.javac.util;
27 |
28 | /**
29 | * An exception used for propagating exceptions found in client code
30 | * invoked from javac.
31 | *
32 | * This is NOT part of any supported API.
33 | * If you write code that depends on this, you do so at your own risk.
34 | * This code and its internal interfaces are subject to change or
35 | * deletion without notice.
36 | */
37 | public class ClientCodeException extends RuntimeException {
38 |
39 | static final long serialVersionUID = -5674494409392415163L;
40 |
41 | public ClientCodeException(Throwable cause) {
42 | super(cause);
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/jdk.compiler/share/classes/openjdk/tools/javac/util/Filter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2010, 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
23 | * questions.
24 | */
25 |
26 | package openjdk.tools.javac.util;
27 |
28 | /**
29 | * Simple filter acting as a boolean predicate. Method accepts return true if
30 | * the supplied element matches against the filter.
31 | */
32 | public interface Filter This is NOT part of any supported API.
32 | * If you write code that depends on this, you do so at your own risk.
33 | * This code and its internal interfaces are subject to change or
34 | * deletion without notice.
35 | */
36 | public class ProblemException extends Exception {
37 | static final long serialVersionUID = -3387516993124229949L;
38 | public ProblemException(String s) {
39 | super(s);
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/jdk.compiler/share/classes/openjdk/tools/sjavac/client/PortFileInaccessibleException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 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
23 | * questions.
24 | */
25 |
26 | package openjdk.tools.sjavac.client;
27 |
28 | import java.io.IOException;
29 |
30 | public class PortFileInaccessibleException extends IOException {
31 |
32 | private static final long serialVersionUID = -4755261881545398973L;
33 |
34 | public PortFileInaccessibleException(Throwable cause) {
35 | super(cause);
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/src/jdk.compiler/share/classes/openjdk/tools/sjavac/server/Sjavac.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014, 2016, 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
23 | * questions.
24 | */
25 |
26 | package openjdk.tools.sjavac.server;
27 |
28 | import openjdk.tools.javac.main.Main.Result;
29 |
30 | import java.io.Writer;
31 |
32 |
33 | /**
34 | * Interface of the SjavacImpl, the sjavac client and all wrappers such as
35 | * PooledSjavac etc.
36 | *
37 | * This is NOT part of any supported API.
38 | * If you write code that depends on this, you do so at your own risk.
39 | * This code and its internal interfaces are subject to change or
40 | * deletion without notice.
41 | */
42 | public interface Sjavac {
43 | Result compile(String[] args);
44 | void shutdown();
45 | }
46 |
--------------------------------------------------------------------------------
/src/jdk.compiler/share/classes/openjdk/tools/sjavac/server/Terminable.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014, 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
23 | * questions.
24 | */
25 |
26 | package openjdk.tools.sjavac.server;
27 |
28 | /**
29 | * This is NOT part of any supported API.
30 | * If you write code that depends on this, you do so at your own risk.
31 | * This code and its internal interfaces are subject to change or
32 | * deletion without notice.
33 | */
34 | public interface Terminable {
35 | void shutdown(String quitMsg);
36 | }
37 |
--------------------------------------------------------------------------------
/src/jdk.compiler/share/classes/sun/tools/serialver/resources/serialver.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2010, 2019, 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
23 | # questions.
24 | #
25 |
26 | NotSerializable=\
27 | Class {0} is not Serializable.
28 | ClassNotFound=\
29 | Class {0} not found.
30 | error.parsing.classpath=\
31 | Error parsing classpath {0}.
32 | error.missing.classpath=\
33 | Missing argument for -classpath option
34 | invalid.flag=\
35 | Invalid flag {0}.
36 | usage=\
37 | use: serialver [-classpath classpath] [classname...]
38 |
--------------------------------------------------------------------------------
/src/jdk.compiler/share/classes/sun/tools/serialver/resources/serialver_ja.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2010, 2019, 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
23 | # questions.
24 | #
25 |
26 | NotSerializable=\u30AF\u30E9\u30B9{0}\u306F\u76F4\u5217\u5316\u3067\u304D\u307E\u305B\u3093\u3002
27 | ClassNotFound=\u30AF\u30E9\u30B9{0}\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002
28 | error.parsing.classpath=\u30AF\u30E9\u30B9\u30D1\u30B9{0}\u306E\u89E3\u6790\u30A8\u30E9\u30FC\u3067\u3059\u3002
29 | error.missing.classpath=-classpath\u30AA\u30D7\u30B7\u30E7\u30F3\u306E\u5F15\u6570\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093
30 | invalid.flag=\u7121\u52B9\u306A\u30D5\u30E9\u30B0{0}\u3002
31 | usage=\u4F7F\u7528\u65B9\u6CD5: serialver [-classpath classpath] [classname...]
32 |
--------------------------------------------------------------------------------
/src/jdk.compiler/share/classes/sun/tools/serialver/resources/serialver_zh_CN.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2010, 2019, 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
23 | # questions.
24 | #
25 |
26 | NotSerializable=\u7C7B{0}\u65E0\u6CD5\u5E8F\u5217\u5316\u3002
27 | ClassNotFound=\u627E\u4E0D\u5230\u7C7B{0}\u3002
28 | error.parsing.classpath=\u5BF9\u7C7B\u8DEF\u5F84 {0} \u8FDB\u884C\u8BED\u6CD5\u5206\u6790\u65F6\u51FA\u9519\u3002
29 | error.missing.classpath=\u7F3A\u5C11 -classpath \u9009\u9879\u7684\u53C2\u6570
30 | invalid.flag=\u65E0\u6548\u6807\u8BB0{0}\u3002
31 | usage=\u7528\u6CD5: serialver [-classpath classpath] [classname...]
32 |
--------------------------------------------------------------------------------
/src/jdk.jdeps/share/classes/openjdk/tools/classfile/AttributeException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2008, 2009, 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
23 | * questions.
24 | */
25 |
26 | package openjdk.tools.classfile;
27 |
28 | /*
29 | * This is NOT part of any supported API.
30 | * If you write code that depends on this, you do so at your own risk.
31 | * This code and its internal interfaces are subject to change or
32 | * deletion without notice.
33 | */
34 | public class AttributeException extends Exception {
35 | private static final long serialVersionUID = -4231486387714867770L;
36 | AttributeException() { }
37 |
38 | AttributeException(String msg) {
39 | super(msg);
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/jdk.jdeps/share/classes/openjdk/tools/classfile/ConstantPoolException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2008, 2009, 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
23 | * questions.
24 | */
25 |
26 | package openjdk.tools.classfile;
27 |
28 | /*
29 | * This is NOT part of any supported API.
30 | * If you write code that depends on this, you do so at your own risk.
31 | * This code and its internal interfaces are subject to change or
32 | * deletion without notice.
33 | */
34 | public class ConstantPoolException extends Exception {
35 | private static final long serialVersionUID = -2324397349644754565L;
36 | ConstantPoolException(int index) {
37 | this.index = index;
38 | }
39 |
40 | public final int index;
41 | }
42 |
--------------------------------------------------------------------------------
/src/jdk.jdeps/share/classes/openjdk/tools/classfile/DescriptorException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2008, 2009, 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
23 | * questions.
24 | */
25 |
26 | package openjdk.tools.classfile;
27 |
28 | /*
29 | * This is NOT part of any supported API.
30 | * If you write code that depends on this, you do so at your own risk.
31 | * This code and its internal interfaces are subject to change or
32 | * deletion without notice.
33 | */
34 | public class DescriptorException extends Exception {
35 | private static final long serialVersionUID = 2411890273788901032L;
36 | }
37 |
--------------------------------------------------------------------------------
/src/jdk.jdeps/share/classes/openjdk/tools/classfile/FatalError.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2020, 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
23 | * questions.
24 | */
25 |
26 | package openjdk.tools.classfile;
27 |
28 | /**
29 | * This is NOT part of any supported API.
30 | * If you write code that depends on this, you do so at your own risk.
31 | * This code and its internal interfaces are subject to change or
32 | * deletion without notice.
33 | */
34 | public class FatalError extends Error {
35 | private static final long serialVersionUID = 8114054446416187030L;
36 |
37 | FatalError(String message) {
38 | super(message);
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/jdk.jdeps/share/classes/openjdk/tools/classfile/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2007, 2013, 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
23 | * questions.
24 | */
25 |
26 | /**
27 | A minimalist library to read and write class files into objects closely
28 | based on the corresponding definitions in
29 | The Java Virtual Machine Specification (JVMS).
30 |
31 | This is NOT part of any supported API.
32 | If you write code that depends on this, you do so at your own risk.
33 | This code and its internal interfaces are subject to change or
34 | deletion without notice.
35 | */
36 | package openjdk.tools.classfile;
37 |
--------------------------------------------------------------------------------
/src/jdk.jdeps/share/classes/openjdk/tools/javap/Messages.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2007, 2009, 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
23 | * questions.
24 | */
25 |
26 | package openjdk.tools.javap;
27 |
28 | import java.util.Locale;
29 |
30 | /**
31 | * Access to javap messages.
32 | *
33 | * This is NOT part of any supported API.
34 | * If you write code that depends on this, you do so at your own risk.
35 | * This code and its internal interfaces are subject to change or
36 | * deletion without notice.
37 | */
38 | public interface Messages {
39 | String getMessage(String key, Object... args);
40 |
41 | String getMessage(Locale locale, String key, Object... args);
42 | }
43 |
--------------------------------------------------------------------------------
/src/jdk.jdeps/share/classes/openjdk/tools/javap/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2007, 2013, 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
23 | * questions.
24 | */
25 |
26 | /**
27 | Classes to dump class files in text format.
28 |
29 | This is NOT part of any supported API.
30 | If you write code that depends on this, you do so at your own risk.
31 | This code and its internal interfaces are subject to change or
32 | deletion without notice.
33 | */
34 | package openjdk.tools.javap;
35 |
--------------------------------------------------------------------------------
/src/jdk.jdeps/share/classes/openjdk/tools/javap/resources/version.properties-template:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2007, 2008, 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
23 | # questions.
24 | #
25 |
26 | jdk=$(JDK_VERSION)
27 | full=$(FULL_VERSION)
28 | release=$(RELEASE)
29 |
--------------------------------------------------------------------------------
/src/jdk.jdeps/share/classes/openjdk/tools/jdeps/resources/version.properties-template:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2012, 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
23 | # questions.
24 | #
25 |
26 | jdk=$(JDK_VERSION)
27 | full=$(FULL_VERSION)
28 | release=$(RELEASE)
29 |
--------------------------------------------------------------------------------
/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 |
5 | source $(dirname $0)/setup_base.sh
6 | source $(dirname $0)/setup.sh
7 |
8 | ant -f $ant_dir -Dnb.internal.action.name=test -Dignore.failing.tests=true test
--------------------------------------------------------------------------------