Package spoon.reflect.code
This package contains the meta-model part that models the executable code (methods and constructors' bodies, field initializers).
Related Documentation
-
Interface Summary Interface Description CtAbstractInvocation<T> This code element defines an abstract invocation on aCtExecutable
.CtAbstractSwitch<S> This code element defines an abstract switch (either switch statement or switch expression).CtAnnotationFieldAccess<T> 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.CtBinaryOperator<T> 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.CtBodyHolder This abstract code element defines an element, which contains a bodyCtBreak This code element defines a break statement.CtCase<S> This code element defines a case within a switch-case.CtCatch This code element defines acatch
of atry
.CtCatchVariable<T> This code element defines an exception variable in a catch.CtCFlowBreak This abstract code element represents all the statements that break the control flow of the program.CtCodeElement This interface is the root interface of the code elements.CtCodeSnippetExpression<T> This element is a code snippet that must represent an expression and can thus be inserted in the program's model as is.CtCodeSnippetStatement This element is a code snippet that must represent a statement and can thus be inserted in the program's model as is.CtComment This code element defines a comment Example:int x = 0; // a comment
CtConditional<T> This code element defines conditional expressions using the ? (ternary expressions).CtConstructorCall<T> This code element represents a constructor call.CtContinue This code element defines the continue statement.CtDo 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.CtFieldAccess<T> 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.CtFor This code element defines a for loop.CtForEach This code element defines a foreach statement.CtIf This code element represents anif
statement.CtInvocation<T> This code element defines a concrete invocation.CtJavaDoc This code element defines a javadoc comment Example:CtJavaDocTag This code element defines a javadoc tag Example:CtLabelledFlowBreak 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).CtLocalVariable<T> This code element defines a local variable definition (within an executable body).CtLoop 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 *=.CtPattern 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.CtRHSReceiver<A> CtStatement This abstract code element represents all the statements, which can be part of a block.CtStatementList This code element represents a list of statements.CtSuperAccess<T> 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.CtSynchronized This code element defines asynchronized
statement.CtTargetedExpression<T,E extends CtExpression<?>> This abstract code element defines an expression which contains a target expression.CtTextBlock This code element defines a Text Block String Literal.CtThisAccess<T> This code element defines an access to this.CtThrow This code element defines athrow
statement.CtTry This code element defines atry
statement.CtTryWithResource This code element defines atry
with resource statement.CtTypeAccess<A> This code element represents a type reference usable as an expression.CtTypePattern This code element defines a type pattern, introduced in Java 16 by JEP 394.CtUnaryOperator<T> This code element represents a unary operator.CtVariableAccess<T> This code element defines an access to a variable (read and write).CtVariableRead<T> This code element defines an read access to a variable.CtVariableWrite<T> This code element defines a write to a variable.CtWhile This code element defines awhile
loop.CtYieldStatement This code element defines ayield
statement. -
Enum Summary Enum Description BinaryOperatorKind This enumeration defines all the kinds of binary operators.CaseKind CtComment.CommentType CtJavaDocTag.TagType Define the possible type for a tagLiteralBase UnaryOperatorKind This enumeration defines all the kinds of unary operators.