RECODER 0.92

recoder.java
Interface Expression

All Superinterfaces:
ModelElement, ProgramElement, SourceElement
All Known Subinterfaces:
ExpressionStatement
All Known Implementing Classes:
AnnotationUseSpecification, ArrayInitializer, ArrayReference, Assignment, BinaryAnd, BinaryAndAssignment, BinaryNot, BinaryOr, BinaryOrAssignment, BinaryXOr, BinaryXOrAssignment, BooleanLiteral, CharLiteral, ComparativeOperator, Conditional, CopyAssignment, Divide, DivideAssignment, DoubleLiteral, ElementValueArrayInitializer, Equals, FieldReference, FloatLiteral, GreaterOrEquals, GreaterThan, Instanceof, IntLiteral, LessOrEquals, LessThan, Literal, LogicalAnd, LogicalNot, LogicalOr, LongLiteral, MetaClassReference, MethodReference, Minus, MinusAssignment, Modulo, ModuloAssignment, Negative, New, NewArray, NotEquals, NullLiteral, Operator, ParenthesizedExpression, Plus, PlusAssignment, Positive, PostDecrement, PostIncrement, PreDecrement, PreIncrement, ShiftLeft, ShiftLeftAssignment, ShiftRight, ShiftRightAssignment, StringLiteral, SuperReference, ThisReference, Times, TimesAssignment, TypeCast, TypeOperator, UncollatedReferenceQualifier, UnsignedShiftRight, UnsignedShiftRightAssignment, VariableReference

public interface Expression
extends ProgramElement

General expression. In Java, any Assignment is also a valid expression.

Author:
AL, AutoDoc

Nested Class Summary
 
Nested classes/interfaces inherited from interface recoder.java.ProgramElement
ProgramElement.TreeStructure
 
Nested classes/interfaces inherited from interface recoder.java.SourceElement
SourceElement.Position
 
Field Summary
 
Fields inherited from interface recoder.java.ProgramElement
STRUCTURAL_EQUALITY, STRUCTURAL_HASH_CODE
 
Method Summary
 Expression deepClone()
          Creates a deep clone of the current source element.
 ExpressionContainer getExpressionContainer()
          Get expression container.
 void setExpressionContainer(ExpressionContainer c)
          Set expression container.
 
Methods inherited from interface recoder.java.ProgramElement
getASTParent, getComments, getID, setComments
 
Methods inherited from interface recoder.java.SourceElement
accept, getEndPosition, getFactory, getFirstElement, getLastElement, getRelativePosition, getStartPosition, setEndPosition, setRelativePosition, setStartPosition, toSource
 
Methods inherited from interface recoder.ModelElement
validate
 

Method Detail

getExpressionContainer

ExpressionContainer getExpressionContainer()
Get expression container.

Returns:
the expression container.

setExpressionContainer

void setExpressionContainer(ExpressionContainer c)
Set expression container.

Parameters:
c - an expression container.

deepClone

Expression 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 SourceElement

RECODER 0.92