Uses of Package
spoon.reflect.code
Package
Description
This package contains the meta-model part that models the executable code (methods and constructors' bodies, field initializers).
This package contains the meta-model part that models the declarations (program's structures such as classes, fields, etc).
This package defines all the sub-factories for the Spoon meta-model.
This package defines the references to program elements for the meta-model.
This package defines visitor, scanner, and scanner-based query API for Java programs reified in the meta-model.
This package contains a set of useful filters when querying the model.
This package contains some default implementations for commonly used processing tasks.
This package provides support for the sniper mode: only the transformed part of classes is rewritten to disk.
This package defines the substitution and matching engines for Java templates.
This package defines a framework for well-typed pure-Java templates.
-
-
-
ClassDescriptionThis abstract code element defines a typed expression.This code element defines a concrete invocation.This code element defines a local variable definition (within an executable body).
-
ClassDescriptionThis enumeration defines all the kinds of binary operators.This code element defines an abstract invocation on a
CtExecutable
.This code element defines an abstract switch (either switch statement or switch expression).This code element defines an access to a annotation parameter variable.This code element defines a one-dimensional array access.This code element defines a read access to an array.This code element defines a write access to an array.This code element defines an assert clause.This code element defines an assignment.This interface defines a binary operator.This code element represents a block of code, that is to say a list of statements enclosed in curly brackets.This abstract code element defines an element, which contains a bodyThis code element defines a break statement.This code element defines a case within a switch-case.This code element defines acatch
of atry
.This code element defines an exception variable in a catch.This abstract code element represents all the statements that break the control flow of the program.This interface is the root interface of the code elements.This element is a code snippet that must represent an expression and can thus be inserted in the program's model as is.This element is a code snippet that must represent a statement and can thus be inserted in the program's model as is.This code element defines a comment Example:int x = 0; // a comment
This code element defines conditional expressions using the ? (ternary expressions).This code element represents a constructor call.This code element defines the continue statement.This code element defines ado
loop.This abstract code element defines an expression which represents an executable reference.This abstract code element defines a typed expression.This code element defines an access to a field variable (read and write)This code element defines a read access to a field.This code element defines a write access to a field.This code element defines a for loop.This code element defines a foreach statement.This code element represents anif
statement.This code element defines a concrete invocation.This code element defines a javadoc comment Example:This code element defines a javadoc tag Example:Define the possible type for a tagThis abstract code element represents all the statements that break the control flow of the program and which can support a label.This code element represents the creation of a lambda.This code element defines a literal value (an int, a string, etc).This code element defines a local variable definition (within an executable body).This abstract code element defines a loop.This code element defines the inline creation of a new array.This code element represents the creation of a anonymous class.This code element defines an self-operated assignment such as += or *=.This interface represents a common super type for different patterns implemented in the Java language.This code element defines a resource used in the try-with-resource statement.This code element represents areturn
statement.This abstract code element represents all the statements, which can be part of a block.This code element represents a list of statements.This code element defines an access to super.This code element defines a switch statement.This code element defines a switch expression.This code element defines asynchronized
statement.This abstract code element defines an expression which contains a target expression.This code element defines a Text Block String Literal.This code element defines an access to this.This code element defines athrow
statement.This code element defines atry
statement.This code element defines atry
with resource statement.This code element represents a type reference usable as an expression.This code element defines a type pattern, introduced in Java 16 by JEP 394.This code element represents a unary operator.This code element defines an access to a variable (read and write).This code element defines an read access to a variable.This code element defines a write to a variable.This code element defines awhile
loop.This code element defines ayield
statement.This enumeration defines all the kinds of unary operators. -
ClassDescriptionThis code element represents a block of code, that is to say a list of statements enclosed in curly brackets.This abstract code element defines an element, which contains a bodyThis interface is the root interface of the code elements.This code element defines a comment Example:
int x = 0; // a comment
This abstract code element defines a typed expression.This code element defines an access to a field variable (read and write)This code element defines a literal value (an int, a string, etc).This code element defines the inline creation of a new array.This abstract code element represents all the statements, which can be part of a block. -
ClassDescriptionThis enumeration defines all the kinds of binary operators.This code element defines an access to a annotation parameter variable.This code element defines a read access to an array.This code element defines a write access to an array.This code element defines an assert clause.This code element defines an assignment.This interface defines a binary operator.This code element represents a block of code, that is to say a list of statements enclosed in curly brackets.This code element defines a break statement.This code element defines a case within a switch-case.This code element defines a
catch
of atry
.This code element defines an exception variable in a catch.This element is a code snippet that must represent an expression and can thus be inserted in the program's model as is.This element is a code snippet that must represent a statement and can thus be inserted in the program's model as is.This code element defines a comment Example:int x = 0; // a comment
This code element defines conditional expressions using the ? (ternary expressions).This code element represents a constructor call.This code element defines the continue statement.This code element defines ado
loop.This abstract code element defines an expression which represents an executable reference.This abstract code element defines a typed expression.This code element defines an access to a field variable (read and write)This code element defines a read access to a field.This code element defines a write access to a field.This code element defines a for loop.This code element defines a foreach statement.This code element represents anif
statement.This code element defines a concrete invocation.This code element defines a javadoc comment Example:This code element defines a javadoc tag Example:Define the possible type for a tagThis code element represents the creation of a lambda.This code element defines a literal value (an int, a string, etc).This code element defines a local variable definition (within an executable body).This code element defines the inline creation of a new array.This code element represents the creation of a anonymous class.This code element defines an self-operated assignment such as += or *=.This code element represents areturn
statement.This abstract code element represents all the statements, which can be part of a block.This code element represents a list of statements.This code element defines an access to super.This code element defines a switch statement.This code element defines a switch expression.This code element defines asynchronized
statement.This code element defines a Text Block String Literal.This code element defines an access to this.This code element defines athrow
statement.This code element defines atry
statement.This code element defines atry
with resource statement.This code element represents a type reference usable as an expression.This code element defines a type pattern, introduced in Java 16 by JEP 394.This code element represents a unary operator.This code element defines an access to a variable (read and write).This code element defines an read access to a variable.This code element defines a write to a variable.This code element defines awhile
loop.This code element defines ayield
statement. -
ClassDescriptionThis code element defines an exception variable in a catch.This code element defines a comment Example:
int x = 0; // a comment
This code element defines a local variable definition (within an executable body). -
ClassDescriptionThis enumeration defines all the kinds of binary operators.This code element defines an abstract invocation on a
CtExecutable
.This code element defines an abstract switch (either switch statement or switch expression).This code element defines an access to a annotation parameter variable.This code element defines a one-dimensional array access.This code element defines a read access to an array.This code element defines a write access to an array.This code element defines an assert clause.This code element defines an assignment.This interface defines a binary operator.This code element represents a block of code, that is to say a list of statements enclosed in curly brackets.This abstract code element defines an element, which contains a bodyThis code element defines a break statement.This code element defines a case within a switch-case.This code element defines acatch
of atry
.This code element defines an exception variable in a catch.This abstract code element represents all the statements that break the control flow of the program.This interface is the root interface of the code elements.This element is a code snippet that must represent an expression and can thus be inserted in the program's model as is.This element is a code snippet that must represent a statement and can thus be inserted in the program's model as is.This code element defines a comment Example:int x = 0; // a comment
This code element defines conditional expressions using the ? (ternary expressions).This code element represents a constructor call.This code element defines the continue statement.This code element defines ado
loop.This abstract code element defines an expression which represents an executable reference.This abstract code element defines a typed expression.This code element defines an access to a field variable (read and write)This code element defines a read access to a field.This code element defines a write access to a field.This code element defines a for loop.This code element defines a foreach statement.This code element represents anif
statement.This code element defines a concrete invocation.This code element defines a javadoc comment Example:This code element defines a javadoc tag Example:This abstract code element represents all the statements that break the control flow of the program and which can support a label.This code element represents the creation of a lambda.This code element defines a literal value (an int, a string, etc).This code element defines a local variable definition (within an executable body).This abstract code element defines a loop.This code element defines the inline creation of a new array.This code element represents the creation of a anonymous class.This code element defines an self-operated assignment such as += or *=.This interface represents a common super type for different patterns implemented in the Java language.This code element defines a resource used in the try-with-resource statement.This code element represents areturn
statement.This abstract code element represents all the statements, which can be part of a block.This code element represents a list of statements.This code element defines an access to super.This code element defines a switch statement.This code element defines a switch expression.This code element defines asynchronized
statement.This abstract code element defines an expression which contains a target expression.This code element defines a Text Block String Literal.This code element defines an access to this.This code element defines athrow
statement.This code element defines atry
statement.This code element defines atry
with resource statement.This code element represents a type reference usable as an expression.This code element defines a type pattern, introduced in Java 16 by JEP 394.This code element represents a unary operator.This code element defines an access to a variable (read and write).This code element defines an read access to a variable.This code element defines a write to a variable.This code element defines awhile
loop.This code element defines ayield
statement.This enumeration defines all the kinds of unary operators. -
ClassDescriptionThis code element defines an exception variable in a catch.This abstract code element represents all the statements that break the control flow of the program.This code element defines a concrete invocation.This code element represents the creation of a lambda.This code element defines a local variable definition (within an executable body).This abstract code element represents all the statements, which can be part of a block.This code element defines an access to a variable (read and write).
-
ClassDescriptionThis code element defines an access to a annotation parameter variable.This code element defines a read access to an array.This code element defines a write access to an array.This code element defines an assert clause.This code element defines an assignment.This interface defines a binary operator.This code element represents a block of code, that is to say a list of statements enclosed in curly brackets.This code element defines a break statement.This code element defines a case within a switch-case.This code element defines a
catch
of atry
.This code element defines an exception variable in a catch.This element is a code snippet that must represent an expression and can thus be inserted in the program's model as is.This element is a code snippet that must represent a statement and can thus be inserted in the program's model as is.This code element defines a comment Example:int x = 0; // a comment
This code element defines conditional expressions using the ? (ternary expressions).This code element represents a constructor call.This code element defines the continue statement.This code element defines ado
loop.This abstract code element defines an expression which represents an executable reference.This abstract code element defines a typed expression.This code element defines a read access to a field.This code element defines a write access to a field.This code element defines a for loop.This code element defines a foreach statement.This code element represents anif
statement.This code element defines a concrete invocation.This code element defines a javadoc comment Example:This code element defines a javadoc tag Example:This code element represents the creation of a lambda.This code element defines a literal value (an int, a string, etc).This code element defines a local variable definition (within an executable body).This code element defines the inline creation of a new array.This code element represents the creation of a anonymous class.This code element defines an self-operated assignment such as += or *=.This code element represents areturn
statement.This code element represents a list of statements.This code element defines an access to super.This code element defines a switch statement.This code element defines a switch expression.This code element defines asynchronized
statement.This code element defines a Text Block String Literal.This code element defines an access to this.This code element defines athrow
statement.This code element defines atry
statement.This code element defines atry
with resource statement.This code element represents a type reference usable as an expression.This code element defines a type pattern, introduced in Java 16 by JEP 394.This code element represents a unary operator.This code element defines an read access to a variable.This code element defines a write to a variable.This code element defines awhile
loop.This code element defines ayield
statement. -
ClassDescriptionThis element is a code snippet that must represent an expression and can thus be inserted in the program's model as is.This element is a code snippet that must represent a statement and can thus be inserted in the program's model as is.This abstract code element defines a typed expression.This abstract code element represents all the statements, which can be part of a block.
-
ClassDescriptionThis code element defines a read access to an array.This code element defines a write access to an array.This code element defines an assert clause.This code element defines an assignment.This interface defines a binary operator.This code element represents a block of code, that is to say a list of statements enclosed in curly brackets.This code element defines a break statement.This code element defines a case within a switch-case.This code element defines a
catch
of atry
.This code element defines an exception variable in a catch.This code element defines conditional expressions using the ? (ternary expressions).This code element represents a constructor call.This code element defines ado
loop.This abstract code element defines an expression which represents an executable reference.This abstract code element defines a typed expression.This code element defines an access to a field variable (read and write)This code element defines a for loop.This code element defines a foreach statement.This code element represents anif
statement.This code element defines a concrete invocation.This code element represents the creation of a lambda.This abstract code element defines a loop.This code element defines the inline creation of a new array.This code element represents the creation of a anonymous class.This code element represents areturn
statement.This code element defines an access to super.This code element defines a switch statement.This code element defines a switch expression.This code element defines asynchronized
statement.This abstract code element defines an expression which contains a target expression.This code element defines athrow
statement.This code element defines atry
statement.This code element defines atry
with resource statement.This code element defines a type pattern, introduced in Java 16 by JEP 394.This code element represents a unary operator.This code element defines an access to a variable (read and write).This code element defines awhile
loop.This code element defines ayield
statement. -
ClassDescriptionThis enumeration defines all the kinds of binary operators.This code element defines an abstract invocation on a
CtExecutable
.This code element defines an abstract switch (either switch statement or switch expression).This code element defines an access to a annotation parameter variable.This code element defines a one-dimensional array access.This code element defines a read access to an array.This code element defines a write access to an array.This code element defines an assert clause.This code element defines an assignment.This interface defines a binary operator.This code element represents a block of code, that is to say a list of statements enclosed in curly brackets.This abstract code element defines an element, which contains a bodyThis code element defines a break statement.This code element defines a case within a switch-case.This code element defines acatch
of atry
.This code element defines an exception variable in a catch.This abstract code element represents all the statements that break the control flow of the program.This interface is the root interface of the code elements.This element is a code snippet that must represent an expression and can thus be inserted in the program's model as is.This element is a code snippet that must represent a statement and can thus be inserted in the program's model as is.This code element defines a comment Example:int x = 0; // a comment
This code element defines conditional expressions using the ? (ternary expressions).This code element represents a constructor call.This code element defines the continue statement.This code element defines ado
loop.This abstract code element defines an expression which represents an executable reference.This abstract code element defines a typed expression.This code element defines an access to a field variable (read and write)This code element defines a read access to a field.This code element defines a write access to a field.This code element defines a for loop.This code element defines a foreach statement.This code element represents anif
statement.This code element defines a concrete invocation.This code element defines a javadoc comment Example:This code element defines a javadoc tag Example:Define the possible type for a tagThis abstract code element represents all the statements that break the control flow of the program and which can support a label.This code element represents the creation of a lambda.This code element defines a literal value (an int, a string, etc).This code element defines a local variable definition (within an executable body).This abstract code element defines a loop.This code element defines the inline creation of a new array.This code element represents the creation of a anonymous class.This code element defines an self-operated assignment such as += or *=.This interface represents a common super type for different patterns implemented in the Java language.This code element defines a resource used in the try-with-resource statement.This code element represents areturn
statement.This abstract code element represents all the statements, which can be part of a block.This code element represents a list of statements.This code element defines an access to super.This code element defines a switch statement.This code element defines a switch expression.This code element defines asynchronized
statement.This abstract code element defines an expression which contains a target expression.This code element defines a Text Block String Literal.This code element defines an access to this.This code element defines athrow
statement.This code element defines atry
statement.This code element defines atry
with resource statement.This code element represents a type reference usable as an expression.This code element defines a type pattern, introduced in Java 16 by JEP 394.This code element represents a unary operator.This code element defines an access to a variable (read and write).This code element defines an read access to a variable.This code element defines a write to a variable.This code element defines awhile
loop.This code element defines ayield
statement.This enumeration defines all the kinds of unary operators. -
ClassDescriptionThis code element represents a block of code, that is to say a list of statements enclosed in curly brackets.This abstract code element defines an element, which contains a bodyThis interface is the root interface of the code elements.This code element defines a comment Example:
int x = 0; // a comment
This abstract code element defines a typed expression.This code element defines an access to a field variable (read and write)This code element defines a literal value (an int, a string, etc).This code element defines the inline creation of a new array.This abstract code element represents all the statements, which can be part of a block.This code element represents a list of statements. -
ClassDescriptionThis code element defines an access to a annotation parameter variable.This code element defines an assignment.This interface defines a binary operator.This code element represents a block of code, that is to say a list of statements enclosed in curly brackets.This code element defines a
catch
of atry
.This code element defines an exception variable in a catch.This code element defines conditional expressions using the ? (ternary expressions).This code element defines ado
loop.This abstract code element defines a typed expression.This code element defines a read access to a field.This code element defines a write access to a field.This code element defines a for loop.This code element represents anif
statement.This code element defines a concrete invocation.This code element defines a literal value (an int, a string, etc).This code element defines a local variable definition (within an executable body).This code element represents areturn
statement.This code element defines asynchronized
statement.This code element defines athrow
statement.This code element represents a unary operator.This code element defines an read access to a variable.This code element defines a write to a variable.This code element defines awhile
loop. -
ClassDescriptionThis code element defines an exception variable in a catch.This code element defines a comment Example:
int x = 0; // a comment
This code element defines a local variable definition (within an executable body). -
-
-
-
-
ClassDescriptionThis code element defines a read access to a field.This code element defines a write access to a field.This code element defines a concrete invocation.
-
ClassDescriptionThis code element defines an access to a annotation parameter variable.This code element defines a read access to an array.This code element defines a write access to an array.This code element defines an assert clause.This code element defines an assignment.This interface defines a binary operator.This code element represents a block of code, that is to say a list of statements enclosed in curly brackets.This code element defines a break statement.This code element defines a case within a switch-case.This code element defines a
catch
of atry
.This code element defines an exception variable in a catch.This element is a code snippet that must represent an expression and can thus be inserted in the program's model as is.This element is a code snippet that must represent a statement and can thus be inserted in the program's model as is.This code element defines a comment Example:int x = 0; // a comment
This code element defines conditional expressions using the ? (ternary expressions).This code element represents a constructor call.This code element defines the continue statement.This code element defines ado
loop.This abstract code element defines an expression which represents an executable reference.This abstract code element defines a typed expression.This code element defines a read access to a field.This code element defines a write access to a field.This code element defines a for loop.This code element defines a foreach statement.This code element represents anif
statement.This code element defines a concrete invocation.This code element defines a javadoc comment Example:This code element defines a javadoc tag Example:This code element represents the creation of a lambda.This code element defines a literal value (an int, a string, etc).This code element defines a local variable definition (within an executable body).This code element defines the inline creation of a new array.This code element represents the creation of a anonymous class.This code element defines an self-operated assignment such as += or *=.This code element represents areturn
statement.This abstract code element represents all the statements, which can be part of a block.This code element represents a list of statements.This code element defines an access to super.This code element defines a switch statement.This code element defines a switch expression.This code element defines asynchronized
statement.This code element defines a Text Block String Literal.This code element defines an access to this.This code element defines athrow
statement.This code element defines atry
statement.This code element defines atry
with resource statement.This code element represents a type reference usable as an expression.This code element defines a type pattern, introduced in Java 16 by JEP 394.This code element represents a unary operator.This code element defines an read access to a variable.This code element defines a write to a variable.This code element defines awhile
loop.This code element defines ayield
statement. -
ClassDescriptionThis code element defines an assignment.This interface defines a binary operator.This code element defines a break statement.This code element defines the continue statement.This code element defines a literal value (an int, a string, etc).This code element defines an self-operated assignment such as += or *=.This abstract code element represents all the statements, which can be part of a block.This code element defines a Text Block String Literal.This code element represents a unary operator.
-
ClassDescriptionThis code element defines an access to a annotation parameter variable.This code element defines a read access to an array.This code element defines a write access to an array.This code element defines an assert clause.This code element defines an assignment.This interface defines a binary operator.This code element represents a block of code, that is to say a list of statements enclosed in curly brackets.This code element defines a break statement.This code element defines a case within a switch-case.This code element defines a
catch
of atry
.This code element defines an exception variable in a catch.This element is a code snippet that must represent an expression and can thus be inserted in the program's model as is.This element is a code snippet that must represent a statement and can thus be inserted in the program's model as is.This code element defines a comment Example:int x = 0; // a comment
This code element defines conditional expressions using the ? (ternary expressions).This code element represents a constructor call.This code element defines the continue statement.This code element defines ado
loop.This abstract code element defines an expression which represents an executable reference.This abstract code element defines a typed expression.This code element defines a read access to a field.This code element defines a write access to a field.This code element defines a for loop.This code element defines a foreach statement.This code element represents anif
statement.This code element defines a concrete invocation.This code element defines a javadoc comment Example:This code element defines a javadoc tag Example:This code element represents the creation of a lambda.This code element defines a literal value (an int, a string, etc).This code element defines a local variable definition (within an executable body).This code element defines the inline creation of a new array.This code element represents the creation of a anonymous class.This code element defines an self-operated assignment such as += or *=.This code element represents areturn
statement.This code element represents a list of statements.This code element defines an access to super.This code element defines a switch statement.This code element defines a switch expression.This code element defines asynchronized
statement.This code element defines a Text Block String Literal.This code element defines an access to this.This code element defines athrow
statement.This code element defines atry
statement.This code element defines atry
with resource statement.This code element represents a type reference usable as an expression.This code element defines a type pattern, introduced in Java 16 by JEP 394.This code element represents a unary operator.This code element defines an read access to a variable.This code element defines a write to a variable.This code element defines awhile
loop.This code element defines ayield
statement. -
ClassDescriptionThis code element represents a block of code, that is to say a list of statements enclosed in curly brackets.This abstract code element defines a typed expression.This abstract code element represents all the statements, which can be part of a block.