Class ExpressionStatement
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.common.ExpressionStatement
-
- Direct Known Subclasses:
ExpressionStatement,ExpressionStatement
public class ExpressionStatement extends java.lang.ObjectRepresents a statement which contains just of an expression.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private Expressionexpression
-
Constructor Summary
Constructors Constructor Description ExpressionStatement(Expression expression)Creates an expression statement.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectaccept(IVisitor visitor)Accepts the given visitor for visiting this instance.voidapplyConversionTo(OperationDescriptor op)Changes this statement by applying a conversion operation toexpression.ExpressiongetExpression()Returns the expression.
-
-
-
Field Detail
-
expression
private Expression expression
-
-
Constructor Detail
-
ExpressionStatement
public ExpressionStatement(Expression expression)
Creates an expression statement.- Parameters:
expression- the expression
-
-
Method Detail
-
getExpression
public Expression getExpression()
Returns the expression.- Returns:
- the expression
-
accept
public java.lang.Object accept(IVisitor visitor) throws VilException
Accepts the given visitor for visiting this instance.- Parameters:
visitor- the visitor- Returns:
- the result of visiting the given statement (may be null)
- Throws:
VilException- in case that visiting fails (e.g., execution)
-
applyConversionTo
public void applyConversionTo(OperationDescriptor op) throws VilException
Changes this statement by applying a conversion operation toexpression.- Parameters:
op- the conversion operation- Throws:
VilException- in case that applying the conversion fails
-
-