recoder.java.expression
Interface ExpressionStatement
- All Superinterfaces:
- Expression, LoopInitializer, ModelElement, ProgramElement, SourceElement, Statement
- All Known Implementing Classes:
- Assignment, BinaryAndAssignment, BinaryOrAssignment, BinaryXOrAssignment, CopyAssignment, DivideAssignment, MethodReference, MinusAssignment, ModuloAssignment, New, ParenthesizedExpression, PlusAssignment, PostDecrement, PostIncrement, PreDecrement, PreIncrement, ShiftLeftAssignment, ShiftRightAssignment, TimesAssignment, UnsignedShiftRightAssignment
public interface ExpressionStatement
- extends Expression, LoopInitializer
An ExpressionStatement is a statement that may appear as an expression. Only
one kind of parent (ExpressionContainer or StatementContainer) is not null.
The expression parent is more important: if the expression parent is not
null, the statement parent is irrelevant, if the expression parent is null,
the statement parent is relevant and must not be null. There are four
direct subclasses: MethodReference, Assignment, ParenthesizedExpression, and New.
deepClone
ExpressionStatement deepClone()
- Description copied from interface:
SourceElement
- Creates a deep clone of the current source element. For
NonTerminalProgramElements, the parent roles are valid, except
that the root element is not included anywhere and hence has no set
parents, of course. This method also clones Comment
s, but does not clone derived information such as scopes.
- Specified by:
deepClone in interface Expression- Specified by:
deepClone in interface SourceElement- Specified by:
deepClone in interface Statement