Class InContentExpression
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.expressions.Expression
-
- net.ssehub.easy.instantiation.core.model.templateModel.InContentExpression
-
- Direct Known Subclasses:
ContentAlternativeExpression,ContentImportExpression,ContentLoopExpression,ContentVarDeclExpression
public abstract class InContentExpression extends Expression
Introduces a common type for in-content expressions/statements.- Author:
- Holger Eichelberger
-
-
Constructor Summary
Constructors Constructor Description InContentExpression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeDescriptor<?>inferType()Infers the type of this expression including the type of the contained sub-expressions.booleanreplaceEmptyLine()In content replacement, replace an entire line if this expression is evaluated to an empty string.-
Methods inherited from class net.ssehub.easy.instantiation.core.model.expressions.Expression
accept
-
-
-
-
Method Detail
-
replaceEmptyLine
public boolean replaceEmptyLine()
Description copied from class:ExpressionIn content replacement, replace an entire line if this expression is evaluated to an empty string.- Overrides:
replaceEmptyLinein classExpression- Returns:
truefor replace entire line,false(default) else
-
inferType
public TypeDescriptor<?> inferType() throws VilException
Description copied from class:ExpressionInfers the type of this expression including the type of the contained sub-expressions.- Specified by:
inferTypein classExpression- Returns:
- the type of this expression
- Throws:
VilException- in case that inferring the type fails
-
-