Skip to main content

Module java

Module java 

Source
Expand description

The Java concrete syntax tree. Spec §1.

Java has annotations, type parameters and a package per file. It has no free functions and no header/source split, so the tree has neither.

Structs§

Annotation
One annotation use.
AnnotationElement
One element of an annotation type.
AnnotationType
@interface Name { ... }
Block
A block of statements.
Class
class Name<T> extends B implements I { ... }
Constructor
A constructor.
Enum
enum Name { A, B; ... }
EnumConstant
One enum constant.
Field
A field.
File
A Java source file, which holds one public type.
Import
One import.
Interface
interface Name { ... }
Method
A method.
Param
One parameter.
Record
record Name(components) { ... }
SwitchCase
One case of a switch.
TypeParam
One type parameter.

Enums§

AnnotationArg
One argument of an annotation use.
Expr
An expression.
Member
One member of a type.
Modifier
A modifier.
Primitive
A Java primitive type.
Statement
One statement.
Type
A Java type as it will be written.
TypeDecl
One type declaration.

Functions§

escape_keyword
The name a Java keyword collision escapes to.