Package spoon.reflect.code
package spoon.reflect.code
This package contains the meta-model part that models the executable code (methods and constructors' bodies, field initializers).
Related Documentation
-
InterfaceDescriptionThis 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.CtArrayAccess<T,E extends CtExpression<?>>This code element defines a one-dimensional array access.CtArrayRead<T>This code element defines a read access to an array.CtArrayWrite<T>This code element defines a write access to an array.CtAssert<T>This code element defines an assert clause.CtAssignment<T,A extends T>This code element defines an assignment.This interface defines a binary operator.CtBlock<R>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.CtCase<S>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.CtExecutableReferenceExpression<T,E extends CtExpression<?>>This abstract code element defines an expression which represents an executable reference.CtExpression<T>This abstract code element defines a typed expression.This code element defines an access to a field variable (read and write)CtFieldRead<T>This code element defines a read access to a field.CtFieldWrite<T>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.CtInvocation<T>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.CtLambda<T>This code element represents the creation of a lambda.CtLiteral<T>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.CtNewArray<T>This code element defines the inline creation of a new array.CtNewClass<T>This code element represents the creation of a anonymous class.CtOperatorAssignment<T,A extends T>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.CtResource<T>This code element defines a resource used in the try-with-resource statement.CtReturn<R>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.CtSwitch<S>This code element defines a switch statement.CtSwitchExpression<T,S>This code element defines a switch expression.This code element defines asynchronized
statement.CtTargetedExpression<T,E extends CtExpression<?>>This abstract code element defines an expression which contains a target expression.This code element defines a Text Block String Literal.CtThisAccess<T>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.CtTypeAccess<A>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. -
EnumDescriptionThis enumeration defines all the kinds of binary operators.Define the possible type for a tagThis enumeration defines all the kinds of unary operators.