Uses of Interface
spoon.reflect.code.CtExpression
Packages that use CtExpression
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 visitor, scanner, and scanner-based query API for Java programs reified in the meta-model.
This package contains some default implementations for commonly used processing tasks.
This package defines the substitution and matching engines for Java templates.
This package defines a framework for well-typed pure-Java templates.
-
Uses of CtExpression in spoon.refactoring
Methods in spoon.refactoring with parameters of type CtExpressionModifier and TypeMethodDescriptionprotected boolean
CtParameterRemoveRefactoring.canRemoveExpression(CtExpression<?> toBeRemovedExpression)
Detects whether `toBeRemovedExpression` can be safely removed during the refactoringprotected void
CtParameterRemoveRefactoring.createExpressionCannotBeRemovedIssue(CtInvocation<?> invocation, CtExpression<?> toBeRemovedExpression)
Override this method to get access to details about this refactoring issue. -
Uses of CtExpression in spoon.reflect.code
Classes in spoon.reflect.code with type parameters of type CtExpressionModifier and TypeInterfaceDescriptioninterface
CtArrayAccess<T,E extends CtExpression<?>>
This code element defines a one-dimensional array access.interface
CtExecutableReferenceExpression<T,E extends CtExpression<?>>
This abstract code element defines an expression which represents an executable reference.interface
CtTargetedExpression<T,E extends CtExpression<?>>
This abstract code element defines an expression which contains a target expression.Subinterfaces of CtExpression in spoon.reflect.codeModifier and TypeInterfaceDescriptioninterface
This code element defines an access to a annotation parameter variable.interface
CtArrayAccess<T,E extends CtExpression<?>>
This code element defines a one-dimensional array access.interface
CtArrayRead<T>
This code element defines a read access to an array.interface
CtArrayWrite<T>
This code element defines a write access to an array.interface
CtAssignment<T,A extends T>
This code element defines an assignment.interface
This interface defines a binary operator.interface
This element is a code snippet that must represent an expression and can thus be inserted in the program's model as is.interface
This code element defines conditional expressions using the ? (ternary expressions).interface
This code element represents a constructor call.interface
CtExecutableReferenceExpression<T,E extends CtExpression<?>>
This abstract code element defines an expression which represents an executable reference.interface
This code element defines an access to a field variable (read and write)interface
CtFieldRead<T>
This code element defines a read access to a field.interface
CtFieldWrite<T>
This code element defines a write access to a field.interface
CtInvocation<T>
This code element defines a concrete invocation.interface
CtLambda<T>
This code element represents the creation of a lambda.interface
CtLiteral<T>
This code element defines a literal value (an int, a string, etc).interface
CtNewArray<T>
This code element defines the inline creation of a new array.interface
CtNewClass<T>
This code element represents the creation of a anonymous class.interface
CtOperatorAssignment<T,A extends T>
This code element defines an self-operated assignment such as += or *=.interface
This code element defines an access to super.interface
CtSwitchExpression<T,S>
This code element defines a switch expression.interface
CtTargetedExpression<T,E extends CtExpression<?>>
This abstract code element defines an expression which contains a target expression.interface
This code element defines a Text Block String Literal.interface
CtThisAccess<T>
This code element defines an access to this.interface
CtTypeAccess<A>
This code element represents a type reference usable as an expression.interface
This code element defines a type pattern, introduced in Java 16 by JEP 394.interface
This code element represents a unary operator.interface
This code element defines an access to a variable (read and write).interface
This code element defines an read access to a variable.interface
This code element defines a write to a variable.Methods in spoon.reflect.code with type parameters of type CtExpressionModifier and TypeMethodDescription<C extends CtExpression<T>>
CCtExpression.addTypeCast(CtTypeReference<?> type)
Adds a type cast.<C extends CtExpression<Void>>
CCtTypePattern.addTypeCast(CtTypeReference<?> type)
<E extends CtExpression<T>>
ECtCodeSnippetExpression.compile()
Compiles this expression snippet to produce the corresponding AST expression.<C extends CtExpression<T>>
CCtExpression.setTypeCasts(List<CtTypeReference<?>> types)
Sets the type casts.<C extends CtExpression<Void>>
CCtTypePattern.setTypeCasts(List<CtTypeReference<?>> types)
Methods in spoon.reflect.code that return CtExpressionModifier and TypeMethodDescriptionCtExpression.clone()
CtAssert.getAssertExpression()
Gets the assert expression.CtAssignment.getAssigned()
Returns the assigned expression on the left-hand side (where the value is stored, e.g.CtLocalVariable.getAssignment()
Useful proxy toCtVariable.getDefaultExpression()
.CtRHSReceiver.getAssignment()
Returns the right-hand side of the "=" operator.CtCase.getCaseExpression()
Gets the case expression.CtConditional.getCondition()
Gets the condition expression.CtIf.getCondition()
Gets the boolean expression that represents theif
's condition.CtConditional.getElseExpression()
Gets the "false" expression.CtAssert.getExpression()
Gets the expression of the assertion if defined.CtFor.getExpression()
Gets the end-loop test expression.CtExpression<?>
CtForEach.getExpression()
Gets the iterated expression (an iterable of an array).CtLambda.getExpression()
Gets the expression in the body.CtExpression<?>
CtSynchronized.getExpression()
Gets the expression that defines the monitored object if any.CtExpression<?>
CtYieldStatement.getExpression()
Gets the expression of the yield statement.CtArrayAccess.getIndexExpression()
Returns the expression that defines the index.CtExpression<?>
CtBinaryOperator.getLeftHandOperand()
Returns the left-hand operand.CtDo.getLoopingExpression()
Returns the looping test as a boolean expression.CtWhile.getLoopingExpression()
Gets the looping boolean test expression.CtExpression<?>
CtUnaryOperator.getOperand()
Gets the expression to which the operator is applied.CtReturn.getReturnedExpression()
Gets the returned expression.CtExpression<?>
CtBinaryOperator.getRightHandOperand()
Returns the right-hand operand.CtAbstractSwitch.getSelector()
Gets the selector.CtConditional.getThenExpression()
Gets the "true" expression.CtExpression<? extends Throwable>
CtThrow.getThrownExpression()
Returns the thrown expression (must be a throwable).Methods in spoon.reflect.code that return types with arguments of type CtExpressionModifier and TypeMethodDescriptionList<CtExpression<?>>
CtAbstractInvocation.getArguments()
The arguments of the invocation.CtCase.getCaseExpressions()
Gets the case expressions.CtNewArray.getDimensionExpressions()
Gets the expressions that define the array's dimensions.List<CtExpression<?>>
CtNewArray.getElements()
Gets the initialization expressions.Methods in spoon.reflect.code with parameters of type CtExpressionModifier and TypeMethodDescription<C extends CtAbstractInvocation<T>>
CCtAbstractInvocation.addArgument(CtExpression<?> argument)
Adds an argument expression to the invocation.<C extends CtAbstractInvocation<T>>
CCtAbstractInvocation.addArgumentAt(int position, CtExpression<?> argument)
Adds an argument expression to the invocation at the specified position.CtCase.addCaseExpression(CtExpression<S> caseExpression)
Adds case expression.<C extends CtNewArray<T>>
CCtNewArray.addDimensionExpression(CtExpression<Integer> dimension)
Adds a dimension expression.<C extends CtNewArray<T>>
CCtNewArray.addElement(CtExpression<?> expression)
Adds an element.void
CtAbstractInvocation.removeArgument(CtExpression<?> argument)
Removes an argument expression from the invocation.boolean
CtNewArray.removeDimensionExpression(CtExpression<Integer> dimension)
Removes a dimension expression.boolean
CtNewArray.removeElement(CtExpression<?> expression)
Removes an element.CtAssert.setAssertExpression(CtExpression<Boolean> asserted)
Sets the assert expression.<C extends CtAssignment<T, A>>
CCtAssignment.setAssigned(CtExpression<T> assigned)
Sets the assigned expression (left hand side - LHS).<U extends CtRHSReceiver<T>>
UCtLocalVariable.setAssignment(CtExpression<T> assignment)
<T extends CtRHSReceiver<A>>
TCtRHSReceiver.setAssignment(CtExpression<A> assignment)
Sets the right-hand side expression (RHS) of the "=" operator.CtCase.setCaseExpression(CtExpression<S> caseExpression)
Sets the case expression.<C extends CtConditional<T>>
CCtConditional.setCondition(CtExpression<Boolean> condition)
Sets the condition expression.<T extends CtIf>
TCtIf.setCondition(CtExpression<Boolean> expression)
Sets the boolean expression that represents theif
's condition.<C extends CtVariable<T>>
CCtCatchVariable.setDefaultExpression(CtExpression<T> assignedExpression)
<C extends CtConditional<T>>
CCtConditional.setElseExpression(CtExpression<T> elseExpression)
Sets the "false" expression.CtAssert.setExpression(CtExpression<T> expression)
Sets the expression of the assertion.<T extends CtFor>
TCtFor.setExpression(CtExpression<Boolean> expression)
Sets the end-loop test expression.<T extends CtForEach>
TCtForEach.setExpression(CtExpression<?> expression)
Sets the iterated expression (an iterable of an array).CtLambda.setExpression(CtExpression<T> expression)
Sets the expression in the body of the lambda.<T extends CtSynchronized>
TCtSynchronized.setExpression(CtExpression<?> expression)
Sets the expression that defines the monitored.<T extends CtYieldStatement>
TCtYieldStatement.setExpression(CtExpression<?> expression)
Gets the expression of the yield statement.<C extends CtArrayAccess<T, E>>
CCtArrayAccess.setIndexExpression(CtExpression<Integer> expression)
Sets the expression that defines the index.<C extends CtBinaryOperator<T>>
CCtBinaryOperator.setLeftHandOperand(CtExpression<?> expression)
Sets the left-hand operand.<T extends CtDo>
TCtDo.setLoopingExpression(CtExpression<Boolean> expression)
Sets the looping test as a boolean expression.<T extends CtWhile>
TCtWhile.setLoopingExpression(CtExpression<Boolean> expression)
Sets the looping boolean test expression.<C extends CtUnaryOperator>
CCtUnaryOperator.setOperand(CtExpression<?> expression)
Sets the expression to which the operator is applied.CtReturn.setReturnedExpression(CtExpression<R> returnedExpression)
Sets the returned expression.<C extends CtBinaryOperator<T>>
CCtBinaryOperator.setRightHandOperand(CtExpression<?> expression)
Sets the right-hand operand.<T extends CtAbstractSwitch<S>>
TCtAbstractSwitch.setSelector(CtExpression<S> selector)
Sets the selector.<C extends CtConditional<T>>
CCtConditional.setThenExpression(CtExpression<T> thenExpression)
Sets the "true" expression.<T extends CtThrow>
TCtThrow.setThrownExpression(CtExpression<? extends Throwable> thrownExpression)
Sets the thrown expression (must be a throwable).Method parameters in spoon.reflect.code with type arguments of type CtExpressionModifier and TypeMethodDescription<C extends CtAbstractInvocation<T>>
CCtAbstractInvocation.setArguments(List<CtExpression<?>> arguments)
Sets the invocation's arguments.CtCase.setCaseExpressions(List<CtExpression<S>> caseExpressions)
Sets the case expressions.<C extends CtNewArray<T>>
CCtNewArray.setDimensionExpressions(List<CtExpression<Integer>> dimensions)
Sets the expressions that define the array's dimensions.<C extends CtNewArray<T>>
CCtNewArray.setElements(List<CtExpression<?>> expression)
Sets the initialization expressions. -
Uses of CtExpression in spoon.reflect.declaration
Subinterfaces of CtExpression in spoon.reflect.declarationModifier and TypeInterfaceDescriptioninterface
CtAnnotation<A extends Annotation>
This element represents an annotation on an element.Methods in spoon.reflect.declaration with type parameters of type CtExpressionModifier and TypeMethodDescription<T extends CtExpression>
TGets a value, as a CtExpression, for a given key without any conversion.<T extends CtExpression>
TCtAnnotation.getWrappedValue(String key)
Gets a value for a given key and try to fix its type based on the annotation type.<C extends CtExpression<A>>
CCtAnnotation.setTypeCasts(List<CtTypeReference<?>> types)
Methods in spoon.reflect.declaration that return CtExpressionModifier and TypeMethodDescriptionCtField.getAssignment()
Useful proxy toCtVariable.getDefaultExpression()
.CtAnnotationMethod.getDefaultExpression()
Gets the default expression assigned to the annotation method.CtVariable.getDefaultExpression()
Gets the initialization expression assigned to the variable (also known as the initializer), when declared.Methods in spoon.reflect.declaration that return types with arguments of type CtExpressionModifier and TypeMethodDescriptionCtAnnotation.getAllValues()
Get all values ofCtAnnotation.getValues()
, plus the default ones defined in the annotation type.CtAnnotation.getValues()
Returns this annotation's elements and their values.Methods in spoon.reflect.declaration with parameters of type CtExpressionModifier and TypeMethodDescription<U extends CtRHSReceiver<T>>
UCtEnumValue.setAssignment(CtExpression<T> assignment)
<U extends CtRHSReceiver<T>>
UCtField.setAssignment(CtExpression<T> assignment)
<C extends CtAnnotationMethod<T>>
CCtAnnotationMethod.setDefaultExpression(CtExpression<T> assignedExpression)
Sets the default expression assigned to the annotation method.<C extends CtVariable<T>>
CCtParameter.setDefaultExpression(CtExpression<T> assignedExpression)
<C extends CtVariable<T>>
CCtVariable.setDefaultExpression(CtExpression<T> assignedExpression)
Sets the initialization expression assigned to the variable, when declared.Method parameters in spoon.reflect.declaration with type arguments of type CtExpressionModifier and TypeMethodDescription<T extends CtAnnotation<A>>
TCtAnnotation.addValue(String elementName, CtNewArray<? extends CtExpression> value)
Adds a new key-array pair for this annotation.<T extends CtAnnotation<A>>
TCtAnnotation.setValues(Map<String,CtExpression> values)
Set's this annotation's element names and their values. -
Uses of CtExpression in spoon.reflect.factory
Methods in spoon.reflect.factory with type parameters of type CtExpressionModifier and TypeMethodDescription<T, E extends CtExpression<?>>
CtExecutableReferenceExpression<T,E>CoreFactory.createExecutableReferenceExpression()
Creates a new executable reference expression.<T, E extends CtExpression<?>>
CtExecutableReferenceExpression<T,E>Factory.createExecutableReferenceExpression()
<T, E extends CtExpression<?>>
CtExecutableReferenceExpression<T,E>FactoryImpl.createExecutableReferenceExpression()
Methods in spoon.reflect.factory that return types with arguments of type CtExpressionModifier and TypeMethodDescriptionList<CtExpression<?>>
CodeFactory.createVariableReads(List<? extends CtVariable<?>> variables)
Creates a list of variable accesses for read.List<CtExpression<?>>
Factory.createVariableReads(List<? extends CtVariable<?>> variables)
List<CtExpression<?>>
FactoryImpl.createVariableReads(List<? extends CtVariable<?>> variables)
Methods in spoon.reflect.factory with parameters of type CtExpressionModifier and TypeMethodDescription<T> CtField<T>
FieldFactory.create(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference<T> type, String name, CtExpression<T> defaultExpression)
Creates a field.<T> CtBinaryOperator<T>
CodeFactory.createBinaryOperator(CtExpression<?> left, CtExpression<?> right, BinaryOperatorKind kind)
Creates a binary operator.<T> CtBinaryOperator<T>
Factory.createBinaryOperator(CtExpression<?> left, CtExpression<?> right, BinaryOperatorKind kind)
<T> CtBinaryOperator<T>
FactoryImpl.createBinaryOperator(CtExpression<?> left, CtExpression<?> right, BinaryOperatorKind kind)
<T> CtConstructorCall<T>
CodeFactory.createConstructorCall(CtTypeReference<T> type, CtExpression<?>... parameters)
Creates a constructor call.<T> CtConstructorCall<T>
Factory.createConstructorCall(CtTypeReference<T> type, CtExpression<?>... parameters)
<T> CtConstructorCall<T>
FactoryImpl.createConstructorCall(CtTypeReference<T> type, CtExpression<?>... parameters)
Factory.createField(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference type, String name, CtExpression defaultExpression)
FactoryImpl.createField(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference type, String name, CtExpression defaultExpression)
<T> CtInvocation<T>
CodeFactory.createInvocation(CtExpression<?> target, CtExecutableReference<T> executable, List<CtExpression<?>> arguments)
Creates an invocation (can be a statement or an expression).<T> CtInvocation<T>
CodeFactory.createInvocation(CtExpression<?> target, CtExecutableReference<T> executable, CtExpression<?>... arguments)
Creates an invocation (can be a statement or an expression).<T> CtInvocation<T>
Factory.createInvocation(CtExpression<?> target, CtExecutableReference<T> executable, List<CtExpression<?>> arguments)
<T> CtInvocation<T>
Factory.createInvocation(CtExpression<?> target, CtExecutableReference<T> executable, CtExpression<?>... arguments)
<T> CtInvocation<T>
FactoryImpl.createInvocation(CtExpression<?> target, CtExecutableReference<T> executable, List<CtExpression<?>> arguments)
<T> CtInvocation<T>
FactoryImpl.createInvocation(CtExpression<?> target, CtExecutableReference<T> executable, CtExpression<?>... arguments)
<T> CtLocalVariable<T>
CodeFactory.createLocalVariable(CtTypeReference<T> type, String name, CtExpression<T> defaultExpression)
Creates a local variable declaration.<T> CtLocalVariable<T>
Factory.createLocalVariable(CtTypeReference<T> type, String name, CtExpression<T> defaultExpression)
<T> CtLocalVariable<T>
FactoryImpl.createLocalVariable(CtTypeReference<T> type, String name, CtExpression<T> defaultExpression)
<T> CtNewClass<T>
CodeFactory.createNewClass(CtType<T> superClass, CtExpression<?>... parameters)
Creates a new anonymous class.CtNewClass<?>
Factory.createNewClass(CtType<?> superClass, CtExpression<?>... parameters)
Creates an anonymous classCtNewClass<?>
FactoryImpl.createNewClass(CtType<?> superClass, CtExpression<?>... parameters)
<T> CtExecutableReference<T>
ConstructorFactory.createReference(CtTypeReference<T> type, CtExpression<?>... parameters)
Creates a constructor reference.<A, T extends A>
CtAssignment<A,T>CodeFactory.createVariableAssignment(CtVariableReference<A> variable, boolean isStatic, CtExpression<T> expression)
Creates a variable assignment (can be an expression or a statement).<A, T extends A>
CtAssignment<A,T>Factory.createVariableAssignment(CtVariableReference<A> variable, boolean isStatic, CtExpression<T> expression)
<A, T extends A>
CtAssignment<A,T>FactoryImpl.createVariableAssignment(CtVariableReference<A> variable, boolean isStatic, CtExpression<T> expression)
Method parameters in spoon.reflect.factory with type arguments of type CtExpressionModifier and TypeMethodDescription<T> CtInvocation<T>
CodeFactory.createInvocation(CtExpression<?> target, CtExecutableReference<T> executable, List<CtExpression<?>> arguments)
Creates an invocation (can be a statement or an expression).<T> CtInvocation<T>
Factory.createInvocation(CtExpression<?> target, CtExecutableReference<T> executable, List<CtExpression<?>> arguments)
<T> CtInvocation<T>
FactoryImpl.createInvocation(CtExpression<?> target, CtExecutableReference<T> executable, List<CtExpression<?>> arguments)
-
Uses of CtExpression in spoon.reflect.visitor
Methods in spoon.reflect.visitor with type parameters of type CtExpressionModifier and TypeMethodDescription<T, E extends CtExpression<?>>
voidCtInheritanceScanner.scanCtArrayAccess(CtArrayAccess<T,E> arrayAccess)
Scans an array access (read and write).<T, E extends CtExpression<?>>
voidCtInheritanceScanner.scanCtTargetedExpression(CtTargetedExpression<T,E> targetedExpression)
Scans an abstract targeted expression.<T, E extends CtExpression<?>>
voidCtAbstractVisitor.visitCtExecutableReferenceExpression(CtExecutableReferenceExpression<T,E> expression)
<T, E extends CtExpression<?>>
voidCtBiScannerDefault.visitCtExecutableReferenceExpression(CtExecutableReferenceExpression<T,E> expression)
<T, E extends CtExpression<?>>
voidCtInheritanceScanner.visitCtExecutableReferenceExpression(CtExecutableReferenceExpression<T,E> e)
<T, E extends CtExpression<?>>
voidCtScanner.visitCtExecutableReferenceExpression(CtExecutableReferenceExpression<T,E> expression)
<T, E extends CtExpression<?>>
voidCtVisitor.visitCtExecutableReferenceExpression(CtExecutableReferenceExpression<T,E> expression)
Visits a reference to an executable.<T, E extends CtExpression<?>>
voidDefaultJavaPrettyPrinter.visitCtExecutableReferenceExpression(CtExecutableReferenceExpression<T,E> expression)
Methods in spoon.reflect.visitor with parameters of type CtExpressionModifier and TypeMethodDescriptionprotected void
DefaultJavaPrettyPrinter.enterCtExpression(CtExpression<?> e)
Enters an expression.protected void
DefaultJavaPrettyPrinter.exitCtExpression(CtExpression<?> e)
Exits an expression.static Optional<CtTypeReference<?>>
OperatorHelper.getPromotedType(BinaryOperatorKind operator, CtExpression<?> left, CtExpression<?> right)
Get the promoted type of the binary operator, as defined by the Java Language Specification.static Optional<CtTypeReference<?>>
OperatorHelper.getPromotedType(UnaryOperatorKind operator, CtExpression<?> operand)
Gets the promoted type of the unary operator, as defined by the Java Language Specification.<T> void
CtInheritanceScanner.scanCtExpression(CtExpression<T> expression)
Scans an abstract expression. -
Uses of CtExpression in spoon.support
Methods in spoon.support with type parameters of type CtExpressionModifier and TypeMethodDescription<T, E extends CtExpression<?>>
CtExecutableReferenceExpression<T,E>DefaultCoreFactory.createExecutableReferenceExpression()
-
Uses of CtExpression in spoon.support.compiler
Methods in spoon.support.compiler that return CtExpressionModifier and TypeMethodDescriptionstatic <T> CtExpression<T>
SnippetCompilationHelper.compileExpression(CtCodeSnippetExpression<T> expr)
-
Uses of CtExpression in spoon.support.compiler.jdt
Methods in spoon.support.compiler.jdt with type parameters of type CtExpressionModifier and TypeMethodDescription<T, E extends CtExpression<?>>
voidParentExiter.scanCtTargetedExpression(CtTargetedExpression<T,E> targetedExpression)
<T, E extends CtExpression<?>>
voidParentExiter.visitCtExecutableReferenceExpression(CtExecutableReferenceExpression<T,E> expression)
Methods in spoon.support.compiler.jdt with parameters of type CtExpressionModifier and TypeMethodDescription<T> CtFieldAccess<T>
JDTTreeBuilderHelper.createFieldAccess(CtVariableReference<T> variableReference, CtExpression<?> target, boolean isReadAccess)
Creates variable access from aCtVariableReference
. -
Uses of CtExpression in spoon.support.reflect.code
Classes in spoon.support.reflect.code with type parameters of type CtExpressionModifier and TypeClassDescriptionclass
CtArrayAccessImpl<T,V extends CtExpression<?>>
class
CtExecutableReferenceExpressionImpl<T,E extends CtExpression<?>>
class
CtTargetedExpressionImpl<E,T extends CtExpression<?>>
Classes in spoon.support.reflect.code that implement CtExpressionModifier and TypeClassDescriptionclass
class
CtArrayAccessImpl<T,V extends CtExpression<?>>
class
class
class
CtAssignmentImpl<T,A extends T>
class
class
class
class
class
CtExecutableReferenceExpressionImpl<T,E extends CtExpression<?>>
class
class
class
class
class
class
CtLambdaImpl<T>
class
class
class
class
CtOperatorAssignmentImpl<T,A extends T>
class
class
CtSwitchExpressionImpl<T,S>
class
CtTargetedExpressionImpl<E,T extends CtExpression<?>>
class
class
class
class
class
class
class
class
Methods in spoon.support.reflect.code with type parameters of type CtExpressionModifier and TypeMethodDescription<C extends CtExpression<T>>
CCtAssignmentImpl.addTypeCast(CtTypeReference<?> type)
<C extends CtExpression<T>>
CCtExpressionImpl.addTypeCast(CtTypeReference<?> type)
<E extends CtExpression<T>>
ECtCodeSnippetExpressionImpl.compile()
<C extends CtTargetedExpression<T, CtExpression<?>>>
CCtFieldAccessImpl.setTarget(CtExpression<?> target)
<C extends CtTargetedExpression<T, CtExpression<?>>>
CCtSuperAccessImpl.setTarget(CtExpression<?> target)
<C extends CtExpression<T>>
CCtAssignmentImpl.setTypeCasts(List<CtTypeReference<?>> casts)
<C extends CtExpression<T>>
CCtExpressionImpl.setTypeCasts(List<CtTypeReference<?>> casts)
Methods in spoon.support.reflect.code that return CtExpressionModifier and TypeMethodDescriptionCtExpressionImpl.clone()
CtAssertImpl.getAssertExpression()
CtAssignmentImpl.getAssigned()
CtAssignmentImpl.getAssignment()
CtLocalVariableImpl.getAssignment()
CtCaseImpl.getCaseExpression()
CtConditionalImpl.getCondition()
CtIfImpl.getCondition()
CtCatchVariableImpl.getDefaultExpression()
CtLocalVariableImpl.getDefaultExpression()
CtConditionalImpl.getElseExpression()
CtAssertImpl.getExpression()
CtExpression<?>
CtForEachImpl.getExpression()
CtForImpl.getExpression()
CtLambdaImpl.getExpression()
CtExpression<?>
CtSynchronizedImpl.getExpression()
CtExpression<?>
CtYieldStatementImpl.getExpression()
CtArrayAccessImpl.getIndexExpression()
CtExpression<?>
CtBinaryOperatorImpl.getLeftHandOperand()
CtDoImpl.getLoopingExpression()
CtWhileImpl.getLoopingExpression()
CtExpression<?>
CtUnaryOperatorImpl.getOperand()
CtReturnImpl.getReturnedExpression()
CtExpression<?>
CtBinaryOperatorImpl.getRightHandOperand()
CtSwitchExpressionImpl.getSelector()
CtSwitchImpl.getSelector()
CtExpression<?>
CtFieldAccessImpl.getTarget()
CtExpression<?>
CtSuperAccessImpl.getTarget()
CtConditionalImpl.getThenExpression()
CtExpression<? extends Throwable>
CtThrowImpl.getThrownExpression()
Methods in spoon.support.reflect.code that return types with arguments of type CtExpressionModifier and TypeMethodDescriptionList<CtExpression<?>>
CtConstructorCallImpl.getArguments()
List<CtExpression<?>>
CtInvocationImpl.getArguments()
CtCaseImpl.getCaseExpressions()
CtNewArrayImpl.getDimensionExpressions()
List<CtExpression<?>>
CtNewArrayImpl.getElements()
Methods in spoon.support.reflect.code with parameters of type CtExpressionModifier and TypeMethodDescription<C extends CtAbstractInvocation<T>>
CCtConstructorCallImpl.addArgument(CtExpression<?> argument)
<C extends CtAbstractInvocation<T>>
CCtInvocationImpl.addArgument(CtExpression<?> argument)
<C extends CtAbstractInvocation<T>>
CCtConstructorCallImpl.addArgumentAt(int position, CtExpression<?> argument)
<C extends CtAbstractInvocation<T>>
CCtInvocationImpl.addArgumentAt(int position, CtExpression<?> argument)
CtCaseImpl.addCaseExpression(CtExpression<E> caseExpression)
<C extends CtNewArray<T>>
CCtNewArrayImpl.addDimensionExpression(CtExpression<Integer> dimension)
<C extends CtNewArray<T>>
CCtNewArrayImpl.addElement(CtExpression<?> expression)
void
CtConstructorCallImpl.removeArgument(CtExpression<?> argument)
void
CtInvocationImpl.removeArgument(CtExpression<?> argument)
boolean
CtNewArrayImpl.removeDimensionExpression(CtExpression<Integer> dimension)
boolean
CtNewArrayImpl.removeElement(CtExpression<?> expression)
CtAssertImpl.setAssertExpression(CtExpression<Boolean> asserted)
<C extends CtAssignment<T, A>>
CCtAssignmentImpl.setAssigned(CtExpression<T> assigned)
<C extends CtRHSReceiver<A>>
CCtAssignmentImpl.setAssignment(CtExpression<A> assignment)
<C extends CtRHSReceiver<T>>
CCtLocalVariableImpl.setAssignment(CtExpression<T> assignment)
CtCaseImpl.setCaseExpression(CtExpression<E> caseExpression)
<C extends CtConditional<T>>
CCtConditionalImpl.setCondition(CtExpression<Boolean> condition)
<T extends CtIf>
TCtIfImpl.setCondition(CtExpression<Boolean> condition)
<C extends CtVariable<T>>
CCtCatchVariableImpl.setDefaultExpression(CtExpression<T> defaultExpression)
<C extends CtVariable<T>>
CCtLocalVariableImpl.setDefaultExpression(CtExpression<T> defaultExpression)
<C extends CtConditional<T>>
CCtConditionalImpl.setElseExpression(CtExpression<T> elseExpression)
CtAssertImpl.setExpression(CtExpression<T> value)
<T extends CtForEach>
TCtForEachImpl.setExpression(CtExpression<?> expression)
<T extends CtFor>
TCtForImpl.setExpression(CtExpression<Boolean> expression)
CtLambdaImpl.setExpression(CtExpression<T> expression)
<T extends CtSynchronized>
TCtSynchronizedImpl.setExpression(CtExpression<?> expression)
<T extends CtYieldStatement>
TCtYieldStatementImpl.setExpression(CtExpression<?> expression)
<C extends CtArrayAccess<T, V>>
CCtArrayAccessImpl.setIndexExpression(CtExpression<Integer> expression)
<C extends CtBinaryOperator<T>>
CCtBinaryOperatorImpl.setLeftHandOperand(CtExpression<?> expression)
<T extends CtDo>
TCtDoImpl.setLoopingExpression(CtExpression<Boolean> expression)
<T extends CtWhile>
TCtWhileImpl.setLoopingExpression(CtExpression<Boolean> expression)
<C extends CtUnaryOperator>
CCtUnaryOperatorImpl.setOperand(CtExpression<?> expression)
CtReturnImpl.setReturnedExpression(CtExpression<R> expression)
<C extends CtBinaryOperator<T>>
CCtBinaryOperatorImpl.setRightHandOperand(CtExpression<?> expression)
<T extends CtAbstractSwitch<S>>
TCtSwitchExpressionImpl.setSelector(CtExpression<S> selector)
<T extends CtAbstractSwitch<S>>
TCtSwitchImpl.setSelector(CtExpression<S> selector)
<C extends CtTargetedExpression<T, CtExpression<?>>>
CCtFieldAccessImpl.setTarget(CtExpression<?> target)
<C extends CtTargetedExpression<T, CtExpression<?>>>
CCtSuperAccessImpl.setTarget(CtExpression<?> target)
<C extends CtConditional<T>>
CCtConditionalImpl.setThenExpression(CtExpression<T> thenExpression)
<T extends CtThrow>
TCtThrowImpl.setThrownExpression(CtExpression<? extends Throwable> expression)
Method parameters in spoon.support.reflect.code with type arguments of type CtExpressionModifier and TypeMethodDescription<C extends CtAbstractInvocation<T>>
CCtConstructorCallImpl.setArguments(List<CtExpression<?>> arguments)
<C extends CtAbstractInvocation<T>>
CCtInvocationImpl.setArguments(List<CtExpression<?>> arguments)
CtCaseImpl.setCaseExpressions(List<CtExpression<E>> caseExpressions)
<C extends CtNewArray<T>>
CCtNewArrayImpl.setDimensionExpressions(List<CtExpression<Integer>> dimensionExpressions)
<C extends CtNewArray<T>>
CCtNewArrayImpl.setElements(List<CtExpression<?>> expressions)
-
Uses of CtExpression in spoon.support.reflect.declaration
Classes in spoon.support.reflect.declaration that implement CtExpressionModifier and TypeClassDescriptionclass
CtAnnotationImpl<A extends Annotation>
The implementation forCtAnnotation
.Methods in spoon.support.reflect.declaration with type parameters of type CtExpressionModifier and TypeMethodDescription<T extends CtExpression>
T<T extends CtExpression>
TCtAnnotationImpl.getWrappedValue(String key)
<C extends CtExpression<A>>
CCtAnnotationImpl.setTypeCasts(List<CtTypeReference<?>> casts)
Methods in spoon.support.reflect.declaration that return CtExpressionModifier and TypeMethodDescriptionCtEnumValueImpl.getAssignment()
CtFieldImpl.getAssignment()
CtAnnotationMethodImpl.getDefaultExpression()
CtFieldImpl.getDefaultExpression()
CtParameterImpl.getDefaultExpression()
Methods in spoon.support.reflect.declaration that return types with arguments of type CtExpressionMethods in spoon.support.reflect.declaration with parameters of type CtExpressionModifier and TypeMethodDescription<C extends CtRHSReceiver<T>>
CCtFieldImpl.setAssignment(CtExpression<T> assignment)
<C extends CtAnnotationMethod<T>>
CCtAnnotationMethodImpl.setDefaultExpression(CtExpression<T> assignedExpression)
<C extends CtVariable<T>>
CCtFieldImpl.setDefaultExpression(CtExpression<T> defaultExpression)
<C extends CtVariable<T>>
CCtParameterImpl.setDefaultExpression(CtExpression<T> defaultExpression)
Method parameters in spoon.support.reflect.declaration with type arguments of type CtExpressionModifier and TypeMethodDescription<T extends CtAnnotation<A>>
TCtAnnotationImpl.addValue(String elementName, CtNewArray<? extends CtExpression> value)
<T extends CtAnnotation<A>>
TCtAnnotationImpl.setValues(Map<String,CtExpression> values)
-
Uses of CtExpression in spoon.support.reflect.eval
Methods in spoon.support.reflect.eval with parameters of type CtExpressionModifier and TypeMethodDescriptionstatic Object
EvalHelper.getCorrespondingRuntimeObject(CtExpression<?> value)
Returns the runtime object corresponding to the expression eg CtLiteral(3) -> 3static boolean
EvalHelper.isKnownAtCompileTime(CtExpression<?> exp)
returns true if the expression is known at compile time Bonus method for @oscarlvp :-) -
Uses of CtExpression in spoon.support.template
Methods in spoon.support.template with parameters of type CtExpressionModifier and TypeMethodDescriptionstatic Integer
Parameters.getIndex(CtExpression<?> e)
Gets the index of a one-dimension array (helper). -
Uses of CtExpression in spoon.support.visitor.clone
Methods in spoon.support.visitor.clone with type parameters of type CtExpressionModifier and TypeMethodDescription<T, E extends CtExpression<?>>
voidCloneVisitor.visitCtExecutableReferenceExpression(CtExecutableReferenceExpression<T,E> expression)
-
Uses of CtExpression in spoon.support.visitor.replace
Methods in spoon.support.visitor.replace with type parameters of type CtExpressionModifier and TypeMethodDescription<T, E extends CtExpression<?>>
voidReplacementVisitor.visitCtExecutableReferenceExpression(CtExecutableReferenceExpression<T,E> expression)
-
Uses of CtExpression in spoon.template
Methods in spoon.template that return CtExpressionModifier and TypeMethodDescriptionstatic <T> CtExpression<T>
ExpressionTemplate.getExpression(CtClass<? extends ExpressionTemplate<?>> p)
Returns the expression.static CtExpression<?>
Substitution.substituteFieldDefaultExpression(CtType<?> targetType, Template<?> template, String fieldName)
Gets a default expression from a template field with all the template parameters substituted.