< prev index next >

src/java.base/share/classes/jdk/internal/classfile/ClassElement.java

Print this page

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 jdk.internal.classfile;
26 
27 import jdk.internal.classfile.attribute.CompilationIDAttribute;
28 import jdk.internal.classfile.attribute.DeprecatedAttribute;
29 import jdk.internal.classfile.attribute.EnclosingMethodAttribute;
30 import jdk.internal.classfile.attribute.InnerClassesAttribute;
31 import jdk.internal.classfile.attribute.ModuleAttribute;
32 import jdk.internal.classfile.attribute.ModuleHashesAttribute;
33 import jdk.internal.classfile.attribute.ModuleMainClassAttribute;
34 import jdk.internal.classfile.attribute.ModulePackagesAttribute;
35 import jdk.internal.classfile.attribute.ModuleResolutionAttribute;
36 import jdk.internal.classfile.attribute.ModuleTargetAttribute;
37 import jdk.internal.classfile.attribute.NestHostAttribute;
38 import jdk.internal.classfile.attribute.NestMembersAttribute;
39 import jdk.internal.classfile.attribute.PermittedSubclassesAttribute;

40 import jdk.internal.classfile.attribute.RecordAttribute;
41 import jdk.internal.classfile.attribute.RuntimeInvisibleAnnotationsAttribute;
42 import jdk.internal.classfile.attribute.RuntimeInvisibleTypeAnnotationsAttribute;
43 import jdk.internal.classfile.attribute.RuntimeVisibleAnnotationsAttribute;
44 import jdk.internal.classfile.attribute.RuntimeVisibleTypeAnnotationsAttribute;
45 import jdk.internal.classfile.attribute.SignatureAttribute;
46 import jdk.internal.classfile.attribute.SourceDebugExtensionAttribute;
47 import jdk.internal.classfile.attribute.SourceFileAttribute;
48 import jdk.internal.classfile.attribute.SourceIDAttribute;
49 import jdk.internal.classfile.attribute.SyntheticAttribute;
50 import jdk.internal.classfile.attribute.UnknownAttribute;
51 
52 /**
53  * A {@link ClassfileElement} that can appear when traversing the elements
54  * of a {@link ClassModel} or be presented to a {@link ClassBuilder}.
55  */
56 public sealed interface ClassElement extends ClassfileElement
57         permits AccessFlags, Superclass, Interfaces, ClassfileVersion,
58                 FieldModel, MethodModel,
59                 CustomAttribute, CompilationIDAttribute, DeprecatedAttribute,
60                 EnclosingMethodAttribute, InnerClassesAttribute,
61                 ModuleAttribute, ModuleHashesAttribute, ModuleMainClassAttribute,
62                 ModulePackagesAttribute, ModuleResolutionAttribute, ModuleTargetAttribute,
63                 NestHostAttribute, NestMembersAttribute, PermittedSubclassesAttribute,
64                 RecordAttribute,
65                 RuntimeInvisibleAnnotationsAttribute, RuntimeInvisibleTypeAnnotationsAttribute,
66                 RuntimeVisibleAnnotationsAttribute, RuntimeVisibleTypeAnnotationsAttribute,
67                 SignatureAttribute, SourceDebugExtensionAttribute,
68                 SourceFileAttribute, SourceIDAttribute, SyntheticAttribute, UnknownAttribute {
69 }

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 jdk.internal.classfile;
26 
27 import jdk.internal.classfile.attribute.CompilationIDAttribute;
28 import jdk.internal.classfile.attribute.DeprecatedAttribute;
29 import jdk.internal.classfile.attribute.EnclosingMethodAttribute;
30 import jdk.internal.classfile.attribute.InnerClassesAttribute;
31 import jdk.internal.classfile.attribute.ModuleAttribute;
32 import jdk.internal.classfile.attribute.ModuleHashesAttribute;
33 import jdk.internal.classfile.attribute.ModuleMainClassAttribute;
34 import jdk.internal.classfile.attribute.ModulePackagesAttribute;
35 import jdk.internal.classfile.attribute.ModuleResolutionAttribute;
36 import jdk.internal.classfile.attribute.ModuleTargetAttribute;
37 import jdk.internal.classfile.attribute.NestHostAttribute;
38 import jdk.internal.classfile.attribute.NestMembersAttribute;
39 import jdk.internal.classfile.attribute.PermittedSubclassesAttribute;
40 import jdk.internal.classfile.attribute.PreloadAttribute;
41 import jdk.internal.classfile.attribute.RecordAttribute;
42 import jdk.internal.classfile.attribute.RuntimeInvisibleAnnotationsAttribute;
43 import jdk.internal.classfile.attribute.RuntimeInvisibleTypeAnnotationsAttribute;
44 import jdk.internal.classfile.attribute.RuntimeVisibleAnnotationsAttribute;
45 import jdk.internal.classfile.attribute.RuntimeVisibleTypeAnnotationsAttribute;
46 import jdk.internal.classfile.attribute.SignatureAttribute;
47 import jdk.internal.classfile.attribute.SourceDebugExtensionAttribute;
48 import jdk.internal.classfile.attribute.SourceFileAttribute;
49 import jdk.internal.classfile.attribute.SourceIDAttribute;
50 import jdk.internal.classfile.attribute.SyntheticAttribute;
51 import jdk.internal.classfile.attribute.UnknownAttribute;
52 
53 /**
54  * A {@link ClassfileElement} that can appear when traversing the elements
55  * of a {@link ClassModel} or be presented to a {@link ClassBuilder}.
56  */
57 public sealed interface ClassElement extends ClassfileElement
58         permits AccessFlags, Superclass, Interfaces, ClassfileVersion,
59                 FieldModel, MethodModel,
60                 CustomAttribute, CompilationIDAttribute, DeprecatedAttribute,
61                 EnclosingMethodAttribute, InnerClassesAttribute,
62                 ModuleAttribute, ModuleHashesAttribute, ModuleMainClassAttribute,
63                 ModulePackagesAttribute, ModuleResolutionAttribute, ModuleTargetAttribute,
64                 NestHostAttribute, NestMembersAttribute, PermittedSubclassesAttribute, PreloadAttribute,
65                 RecordAttribute,
66                 RuntimeInvisibleAnnotationsAttribute, RuntimeInvisibleTypeAnnotationsAttribute,
67                 RuntimeVisibleAnnotationsAttribute, RuntimeVisibleTypeAnnotationsAttribute,
68                 SignatureAttribute, SourceDebugExtensionAttribute,
69                 SourceFileAttribute, SourceIDAttribute, SyntheticAttribute, UnknownAttribute {
70 }
< prev index next >