spoon.reflect.code.CtRHSReceiver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spoon-core Show documentation
Show all versions of spoon-core Show documentation
Spoon is a tool for meta-programming, analysis and transformation of Java programs.
/*
* SPDX-License-Identifier: (MIT OR CECILL-C)
*
* Copyright (C) 2006-2023 INRIA and contributors
*
* Spoon is available either under the terms of the MIT License (see LICENSE-MIT.txt) or the Cecill-C License (see LICENSE-CECILL-C.txt). You as the user are entitled to choose the terms under which to adopt Spoon.
*/
package spoon.reflect.code;
import spoon.reflect.declaration.CtField;
import spoon.reflect.annotations.PropertyGetter;
import spoon.reflect.annotations.PropertySetter;
import static spoon.reflect.path.CtRole.ASSIGNMENT;
/**
* Represents the right hand side of an assignment
*
* See {@link CtAssignment}, {@link CtLocalVariable}, {@link CtField}
*/
public interface CtRHSReceiver {
/**
* Returns the right-hand side of the "=" operator.
*/
@PropertyGetter(role = ASSIGNMENT)
CtExpression getAssignment();
/**
* Sets the right-hand side expression (RHS) of the "=" operator.
*/
@PropertySetter(role = ASSIGNMENT)
> T setAssignment(CtExpression assignment);
}