Class ImplicitVariableDeclaration
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.common.VariableDeclaration
-
- net.ssehub.easy.instantiation.core.model.buildlangModel.VariableDeclaration
-
- net.ssehub.easy.instantiation.core.model.buildlangModel.ImplicitVariableDeclaration
-
- All Implemented Interfaces:
IVariable,IBuildlangElement,IRuleElement,ILanguageElement,IModifierHolder,IResolvable,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 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.buildlangModel.VariableDeclaration
accept, getParent, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.ssehub.easy.instantiation.core.model.expressions.IResolvable
getName
-
-
-
-
Constructor Detail
-
ImplicitVariableDeclaration
public ImplicitVariableDeclaration(java.lang.String name, TypeDescriptor<?> type, boolean isConstant, Expression expression)Creates a new 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
-
-