Class ExpressionStatement
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.common.ExpressionStatement
-
- net.ssehub.easy.instantiation.core.model.buildlangModel.ExpressionStatement
-
- All Implemented Interfaces:
IBuildlangElement,IRuleElement,ILanguageElement
public class ExpressionStatement extends ExpressionStatement implements IRuleElement
Represents a statement which contains just of an expression.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private ILanguageElementparent
-
Constructor Summary
Constructors Constructor Description ExpressionStatement()Constructor for serialization.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 visitor for visiting.ILanguageElementgetParent()Returns the parent element.protected voidsetParent(ILanguageElement parent)Changes the parent.-
Methods inherited from class net.ssehub.easy.instantiation.core.model.common.ExpressionStatement
accept, applyConversionTo, getExpression
-
-
-
-
Field Detail
-
parent
private ILanguageElement parent
-
-
Constructor Detail
-
ExpressionStatement
ExpressionStatement()
Constructor for serialization.
-
ExpressionStatement
public ExpressionStatement(Expression expression)
Creates an expression statement.- Parameters:
expression- the expression
-
-
Method Detail
-
accept
public java.lang.Object accept(IVisitor visitor) throws VilException
Description copied from interface:IBuildlangElementAccepts the visitor for visiting.- Specified by:
acceptin interfaceIBuildlangElement- Parameters:
visitor- the visitor to be used- Returns:
- the result of visiting this instance (may be null)
- Throws:
VilException- in case that visiting fails (e.g., execution)
-
setParent
protected void setParent(ILanguageElement parent)
Changes the parent.- Parameters:
parent- the new parent
-
getParent
public ILanguageElement getParent()
Description copied from interface:ILanguageElementReturns the parent element.- Specified by:
getParentin interfaceILanguageElement- Returns:
- the parent element (may be null if unknown)
-
-