|
1 | 1 | /* |
2 | | - * Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2005, 2024, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 | 4 | * |
5 | 5 | * This code is free software; you can redistribute it and/or modify it |
|
32 | 32 | * The interfaces in this package do not model the structure of a |
33 | 33 | * program inside a method body; for example there is no |
34 | 34 | * representation of a {@code for} loop or {@code try}-{@code finally} |
35 | | - * block. However, the interfaces can model some structures only |
36 | | - * appearing inside method bodies, such as local variables and |
37 | | - * anonymous classes. |
| 35 | + * block. Concretely, there is no model of any abstract syntax tree |
| 36 | + * (AST) structure of a Java program. However, the interfaces can |
| 37 | + * model some structures only appearing inside method bodies, such as |
| 38 | + * {@linkplain ElementKind#LOCAL_VARIABLE local variables}, |
| 39 | + * {@linkplain NestingKind#ANONYMOUS anonymous classes}, and |
| 40 | + * {@linkplain ElementKind#EXCEPTION_PARAMETER exception parameters}. |
| 41 | + * Therefore, these interfaces can be used by an AST API to model the |
| 42 | + * declarations found in the method bodies of Java compilation units |
| 43 | + * (JLS {@jls 7.3}). |
38 | 44 | * |
39 | 45 | * <p id="accurate_model">When used in the context of annotation |
40 | 46 | * processing, an accurate model of the element being represented must |
|
0 commit comments