Interface ITemplateElement
-
- All Superinterfaces:
ILanguageElement,ITemplateLangElement
- All Known Implementing Classes:
AbstractTemplateElement,AlternativeStatement,ContentStatement,Def,ExpressionStatement,FlushStatement,ImplicitVariableDeclaration,LoopStatement,SwitchStatement,TemplateBlock,VariableDeclaration,WhileStatement
public interface ITemplateElement extends ITemplateLangElement
Marks a language element which may occur in a (sub-)template.- Author:
- Holger Eichelberger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanendsWithContentStatement()Returns whether this element ends with a content statement.TypeDescriptor<?>inferType()Infers the type of this language element.booleanisBlock()Returns whether this element is a block (opposite is a single statement).booleanisLoop()Returns whether this element is a loop.-
Methods inherited from interface net.ssehub.easy.instantiation.core.model.common.ILanguageElement
getParent
-
Methods inherited from interface net.ssehub.easy.instantiation.core.model.templateModel.ITemplateLangElement
accept
-
-
-
-
Method Detail
-
isBlock
boolean isBlock()
Returns whether this element is a block (opposite is a single statement).- Returns:
trueif it is a block,falseelse
-
isLoop
boolean isLoop()
Returns whether this element is a loop.- Returns:
trueif it is a loop,falseelse
-
inferType
TypeDescriptor<?> inferType() throws VilException
Infers the type of this language element.- Returns:
- the type of this language element
- Throws:
VilException- in case that type errors occur
-
endsWithContentStatement
boolean endsWithContentStatement()
Returns whether this element ends with a content statement.- Returns:
truefor end with content statement,falseelse
-
-