
spoon.reflect.code.CtCodeSnippetExpression Maven / Gradle / Ivy
package spoon.reflect.code;
import spoon.reflect.declaration.CtCodeSnippet;
import spoon.support.compiler.SnippetCompilationError;
/**
* This element is a code snippet that must represent an expression and can thus
* be inserted in the program's model as is. Code snippets should be avoided
* since no controls can be performed on them.
*/
public interface CtCodeSnippetExpression extends CtCodeSnippet,
CtExpression {
/**
* Compiles this expression snippet to produce the corresponding AST expression.
*
* @throws SnippetCompilationError
* when the current snippet is not valid Java code expression
*/
> E compile() throws SnippetCompilationError;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy