Modifier and Type | Class and Description |
---|---|
class |
ArrayCreationLevel
In
new int[1][2]; there are two ArrayCreationLevel objects,
the first one contains the expression "1",
the second the expression "2". |
class |
CompilationUnit
This class represents the entire compilation unit.
|
class |
ImportDeclaration
An import declaration.
|
class |
Modifier
A modifier, like private, public, or volatile.
|
class |
Node
Base class for all nodes of the abstract syntax tree.
|
class |
NodeList<N extends Node>
A list of nodes.
|
class |
PackageDeclaration
A package declaration.
|
Modifier and Type | Class and Description |
---|---|
class |
AnnotationDeclaration
An annotation type declaration.
|
class |
AnnotationMemberDeclaration
The "int id();" in
@interface X { int id(); }
All annotations preceding the type will be set on this object, not on the type. |
class |
BodyDeclaration<T extends BodyDeclaration<?>>
Any declaration that can appear between the { and } of a class, interface, enum, or record.
|
class |
CallableDeclaration<T extends CallableDeclaration<?>>
Represents a declaration which is callable eg. a method or a constructor.
|
class |
ClassOrInterfaceDeclaration
A definition of a class or interface.
|
class |
CompactConstructorDeclaration
The record declaration's constructor
WARNING: This implementation is subject to change.
|
class |
ConstructorDeclaration
A constructor declaration:
class X { X() { } } where X(){} is the constructor declaration. |
class |
EnumConstantDeclaration
One of the values an enum can take.
|
class |
EnumDeclaration
The declaration of an enum.
|
class |
FieldDeclaration
The declaration of a field in a class.
|
class |
InitializerDeclaration
A (possibly static) initializer body.
|
class |
MethodDeclaration
A method declaration.
|
class |
Parameter
The parameters to a method or lambda.
|
class |
ReceiverParameter
The receiver parameter feature of Java.
|
class |
RecordDeclaration
The record declaration
WARNING: This implementation is subject to change.
|
class |
TypeDeclaration<T extends TypeDeclaration<?>>
A base class for all types of type declarations.
|
class |
VariableDeclarator
The declaration of a variable.
|
Modifier and Type | Class and Description |
---|---|
class |
BlockComment
AST node that represent block comments.
|
class |
Comment
Abstract class for all AST nodes that represent comments.
|
class |
JavadocComment
A Javadoc comment.
|
class |
LineComment
AST node that represent line comments.
|
Modifier and Type | Class and Description |
---|---|
class |
AnnotationExpr
A base class for the different types of annotations.
|
class |
ArrayAccessExpr
Array brackets [] being used to get a value from an array.
|
class |
ArrayCreationExpr
new int[5][4][][] or new int[][]{{1},{2,3}} . |
class |
ArrayInitializerExpr
The initialization of an array.
|
class |
AssignExpr
An assignment expression.
|
class |
BinaryExpr
An expression with an expression on the left, an expression on the right, and an operator in the middle.
|
class |
BooleanLiteralExpr
The boolean literals.
|
class |
CastExpr
A typecast.
|
class |
CharLiteralExpr
A literal character.
|
class |
ClassExpr
Defines an expression that accesses the class of a type.
|
class |
ConditionalExpr
The ternary conditional expression.
|
class |
DoubleLiteralExpr
A float or a double constant.
|
class |
EnclosedExpr
An expression between ( ).
|
class |
Expression
A base class for all expressions.
|
class |
FieldAccessExpr
Access of a field of an object or a class.
|
class |
InstanceOfExpr
The instanceof statement
Java ??
|
class |
IntegerLiteralExpr
All ways to specify an int literal.
|
class |
LambdaExpr
A lambda expression
Java 1-7
Does not exist.
|
class |
LiteralExpr
A base class for all literal expressions.
|
class |
LiteralStringValueExpr
Any literal value that is stored internally as a String.
|
class |
LongLiteralExpr
All ways to specify a long literal.
|
class |
MarkerAnnotationExpr
An annotation that uses only the annotation type name.
|
class |
MemberValuePair
A value for a member of an annotation.
|
class |
MethodCallExpr
A method call on an object or a class.
|
class |
MethodReferenceExpr
Method reference expressions introduced in Java 8 specifically designed to simplify lambda Expressions.
|
class |
Name
A name that may consist of multiple identifiers.
|
class |
NameExpr
Whenever a SimpleName is used in an expression, it is wrapped in NameExpr.
|
class |
NormalAnnotationExpr
An annotation that has zero or more key-value pairs.
|
class |
NullLiteralExpr
A literal "null".
|
class |
ObjectCreationExpr
A constructor call.
|
class |
PatternExpr
Pattern Matching in Java
Java 1.0 to 13
Not available.
|
class |
RecordPatternExpr
Record Patterns
Record patterns were officially added in Java 21 to allow the deconstruction of
record values and provide convenient access to inner fields through pattern matching.
|
class |
SimpleName
A name that consists of a single identifier.
|
class |
SingleMemberAnnotationExpr
An annotation that has a single value.
|
class |
StringLiteralExpr
A literal string.
|
class |
SuperExpr
An occurrence of the "super" keyword.
|
class |
SwitchExpr
The switch expression
Java 1.0-11
Not available.
|
class |
TextBlockLiteralExpr
A text block
Java 13-
A text block is a multi-line string.
|
class |
ThisExpr
An occurrence of the "this" keyword.
|
class |
TypeExpr
This class is just instantiated as scopes for MethodReferenceExpr nodes to encapsulate Types.
|
class |
TypePatternExpr
The instanceof statement
Java 1.0 to 13
Not available.
|
class |
UnaryExpr
An expression where an operator is applied to a single expression.
|
class |
VariableDeclarationExpr
A declaration of variables.
|
Modifier and Type | Class and Description |
---|---|
class |
ModuleDeclaration
A Java 9 Jigsaw module declaration.
|
class |
ModuleDirective
A module directive.
|
class |
ModuleExportsDirective
An exports directive in module-info.java.
|
class |
ModuleOpensDirective
An opens directive in module-info.java.
|
class |
ModuleProvidesDirective
A provides directive in module-info.java.
|
class |
ModuleRequiresDirective
A require directive in module-info.java.
|
class |
ModuleUsesDirective
A uses directive in module-info.java.
|
Modifier and Type | Class and Description |
---|---|
class |
AssertStmt
A usage of the keyword "assert"
In assert dead : "Wasn't expecting to be dead here"; the check is "dead" and the message is the string. |
class |
BlockStmt
Statements in between { and }.
|
class |
BreakStmt
The break statement
Java 1.0-11
Break has an optional label:
break;
break somewhere;
The label is in the "value" property as a NameExpr. |
class |
CatchClause
The catch part of a try-catch-finally.
|
class |
ContinueStmt
A continue statement with an optional label;
continue brains;
continue; |
class |
DoStmt
A do-while.
|
class |
EmptyStmt
An empty statement is a ";" where a statement is expected.
|
class |
ExplicitConstructorInvocationStmt
A call to super or this in a constructor or initializer.
|
class |
ExpressionStmt
Used to wrap an expression so that it can take the place of a statement.
|
class |
ForEachStmt
A for-each statement.
|
class |
ForStmt
The classic for statement
Examples:
for(int a=3, b=5; a<99; a++, b++) hello();
for(a=3, b=5; a<99; a++) { hello(); }
for(a(),b();;) hello();
initialization is a list of expressions. |
class |
IfStmt
An if-then-else statement.
|
class |
LabeledStmt
A statement that is labeled, like
label123: println("continuing"); |
class |
LocalClassDeclarationStmt
A class declaration inside a method.
|
class |
LocalRecordDeclarationStmt
A record declaration inside a method.
|
class |
ReturnStmt
The return statement, with an optional expression to return.
|
class |
Statement
A base class for all statements.
|
class |
SwitchEntry
One case in a switch statement
The main Javadoc is in
SwitchStmt
Java 1.0-11
switch (i) {
case 1:
case 2:
System.out.println(444);
break;
default:
System.out.println(0);
}
This contains three SwitchEntrys. |
class |
SwitchStmt
The switch statement
Java 1.0-1.4
The basic C-like switch statement.
|
class |
SynchronizedStmt
Usage of the synchronized keyword.
|
class |
ThrowStmt
Usage of the throw statement.
|
class |
TryStmt
The try statement
Java 1.0-6
try {
// ...
} catch (IOException e) {
// ...
} finally {
// ...
}
In this code, "// do things" is the content of the tryBlock, there is one catch clause that catches IOException e,
and there is a finally block.
|
class |
UnparsableStmt
A statement that had parse errors.
|
class |
WhileStmt
A while statement.
|
class |
YieldStmt
The yield statement
Java 1.0-11
Does not exist.
|
Modifier and Type | Class and Description |
---|---|
class |
ArrayType
To indicate that a type is an array, it gets wrapped in an ArrayType for every array level it has.
|
class |
ClassOrInterfaceType
A class or an interface type.
|
class |
IntersectionType
Represents a set of types.
|
class |
PrimitiveType
A primitive type.
|
class |
ReferenceType
Base class for reference types.
|
class |
Type
Base class for types.
|
class |
TypeParameter
A type parameter.
|
class |
UnionType
The union type
Represents a set of types.
|
class |
UnknownType
An unknown parameter type object.
|
class |
VarType
A type called "var" waiting for Java to infer it.
|
class |
VoidType
The return type of a
MethodDeclaration
when it returns void. |
class |
WildcardType
A wildcard type argument.
|
Copyright © 2007–2024. All rights reserved.