Class ContentImportExpression
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.expressions.Expression
-
- net.ssehub.easy.instantiation.core.model.templateModel.InContentExpression
-
- net.ssehub.easy.instantiation.core.model.templateModel.ContentImportExpression
-
public class ContentImportExpression extends InContentExpression
Represents an import of a template through a in-content expression.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private IVersionRestrictionrestrictionprivate java.lang.Stringtemplate
-
Constructor Summary
Constructors Constructor Description ContentImportExpression(java.lang.String template, IVersionRestriction restriction)Creates the import expression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectaccept(IExpressionVisitor visitor)Visits the expression.java.lang.StringgetTemplate()Returns the template name.IVersionRestrictiongetVersionRestriction()Returns the version restriction.-
Methods inherited from class net.ssehub.easy.instantiation.core.model.templateModel.InContentExpression
inferType, replaceEmptyLine
-
-
-
-
Field Detail
-
template
private java.lang.String template
-
restriction
private IVersionRestriction restriction
-
-
Constructor Detail
-
ContentImportExpression
public ContentImportExpression(java.lang.String template, IVersionRestriction restriction)Creates the import expression.- Parameters:
template- the template namerestriction- the version restriction expression (may be null)
-
-
Method Detail
-
getTemplate
public java.lang.String getTemplate()
Returns the template name.- Returns:
- the template name
-
getVersionRestriction
public IVersionRestriction getVersionRestriction()
Returns the version restriction.- Returns:
- the version restriction
-
accept
public java.lang.Object accept(IExpressionVisitor visitor) throws VilException
Description copied from class:ExpressionVisits the expression.- Specified by:
acceptin classExpression- Parameters:
visitor- the visitor- Returns:
- the result of visiting this expression (may be null)
- Throws:
VilException- in case that visiting fails (e.g., execution)
-
-