Package com.github.javaparser.ast.body
package com.github.javaparser.ast.body
-
Class SummaryClassDescriptionAn annotation type declaration.
@interface X { ... }
The "int id();" in@interface X { int id(); }
BodyDeclaration<T extends BodyDeclaration<?>>Any declaration that can appear between the { and } of a class, interface, enum, or record.CallableDeclaration<T extends CallableDeclaration<?>>Represents a declaration which is callable eg.A method or constructor signature.A definition of a class or interface.class X { ... }
interface X { ... }
The record declaration's constructorA constructor declaration:class X { X() { } }
where X(){} is the constructor declaration.One of the values an enum can take.The declaration of an enum.enum X { ... }
The declaration of a field in a class.A (possibly static) initializer body.A method declaration.The parameters to a method or lambda.The receiver parameter feature of Java.The record declarationTypeDeclaration<T extends TypeDeclaration<?>>A base class for all types of type declarations.The declaration of a variable.
Inint x = 14, y = 3;
"int x = 14" and "int y = 3" are VariableDeclarators.