Class ImplicitVariableDeclaration
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.common.VariableDeclaration
-
- net.ssehub.easy.instantiation.core.model.templateModel.VariableDeclaration
-
- net.ssehub.easy.instantiation.core.model.templateModel.ImplicitVariableDeclaration
-
- All Implemented Interfaces:
IVariable,ILanguageElement,IModifierHolder,IResolvable,ITemplateElement,ITemplateLangElement,IMetaParameterDeclaration
public class ImplicitVariableDeclaration extends VariableDeclaration
Defines an implicit variable declaration, i.e., one that shall not be emitted again.- Author:
- Holger Eichelberger
-
-
Constructor Summary
Constructors Constructor Description ImplicitVariableDeclaration(java.lang.String name, TypeDescriptor<?> type, boolean isConstant, Expression expression)Creates a new implicit variable declaration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisImplicit()Returns whether this variable declaration is implicit.-
Methods inherited from class net.ssehub.easy.instantiation.core.model.templateModel.VariableDeclaration
accept, endsWithContentStatement, getParent, inferType, isBlock, isLoop, setParent
-
Methods inherited from class net.ssehub.easy.instantiation.core.model.common.VariableDeclaration
accept, addModifier, getExpression, getModifier, getModifierCount, getName, getParameter, getRequiredParameterCount, getType, hasExplicitType, hasModifier, isConstant, mapDefaultedParameters, resolveOperation, setHasExplicitType, setIsConstant, toString
-
-
-
-
Constructor Detail
-
ImplicitVariableDeclaration
public ImplicitVariableDeclaration(java.lang.String name, TypeDescriptor<?> type, boolean isConstant, Expression expression)Creates a new implicit variable declaration.- Parameters:
name- the name of the variabletype- the type of the variableisConstant- whether this variable is a constantexpression- an expression denoting the initial value (may be null)
-
-
Method Detail
-
isImplicit
public boolean isImplicit()
Description copied from class:VariableDeclarationReturns whether this variable declaration is implicit.- Overrides:
isImplicitin classVariableDeclaration- Returns:
truefor implicit,falseelse
-
-