- All Superinterfaces:
- Expression, LoopInitializer, ModelElement, ProgramElement, SourceElement, Statement, SVSubstitute
- All Known Subinterfaces:
- ProgramConstruct
- All Known Implementing Classes:
- Assignment, BinaryAndAssignment, BinaryOrAssignment, BinaryXOrAssignment, CopyAssignment, DivideAssignment, MethodReference, MinusAssignment, ModuloAssignment, New, ParenthesizedExpression, PassiveExpression, PlusAssignment, PostDecrement, PostIncrement, PreDecrement, PreIncrement, ProgramSV, ShiftLeftAssignment, ShiftRightAssignment, TimesAssignment, UnsignedShiftRightAssignment
public interface ExpressionStatement
extends Expression, LoopInitializer
An ExpressionStatement is a statement that may appear as an expression.
There are three subclasses: MethodReference, Assignment, and New.
Strictly speaking, Java would allow any expression as a statement;
however, this does not make much sense (except backward compatibility to
awkward C code) and is even forbidden in dialects (such as Generic Java).