Skip to main content

Module item

Module item 

Source
Expand description

Item types (class, interface, enum, record, module declarations).

Structs§

AnnotationElement
An annotation element declaration.
AnnotationInterfaceBody
Annotation interface body.
AnnotationInterfaceDecl
An annotation interface declaration: @interface Name { ... }.
ClassBodyDeclList
Class body: { members }.
ClassDecl
A class declaration.
CompactConstructorDecl
A compact constructor declaration for records.
ConstructorBody
A constructor body.
ConstructorDecl
A constructor declaration.
EnumBody
Enum body: { constants [,] [members] }.
EnumConstant
An enum constant: NAME[(args)] [{ class body }].
EnumDecl
An enum declaration.
ExtendsClause
An extends clause: extends SuperClass.
FieldDecl
A field declaration: [modifiers] type name [= expr] [, name [= expr]] ;.
ImplementsClause
An implements clause: implements Interface1, Interface2.
InstanceInit
An instance initializer.
InterfaceBody
An interface body: { members }.
InterfaceDecl
An interface declaration.
InterfaceExtendsClause
An interface extends clause: extends Interface1, Interface2.
MethodDecl
A method declaration.
ModuleDecl
A module declaration.
PermitsClause
A permits clause: permits Sub1, Sub2.
ReceiverParameter
A receiver parameter: Type [name.] this.
RecordBody
Record body: { members }.
RecordComponents
Record components: (Type name, Type name, ...).
RecordDecl
A record declaration (Java 16+).
StaticInit
A static initializer.
ThrowsClause
A throws clause: throws Type1, Type2.

Enums§

AnnotationInterfaceMember
A member of an annotation interface.
ClassBodyDecl
A declaration inside a class body.
ExplicitConstructorCall
An explicit constructor invocation: this(args) or super(args).
FormalParameter
A formal parameter of a method or constructor.
InterfaceMemberDecl
A member declaration inside an interface.
MethodReturnType
The return type of a method.
Modifier
A modifier (keyword or annotation).
ModuleDirective
A module directive.
RecordBodyDecl
A member of a record body.
RecordComponent
A single record component.
RequiresModifier
Requires modifier: transitive, static.
TypeDecl
A top-level type declaration or semicolon.