Class NestedRuleBlock
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.buildlangModel.ProjectElement
-
- net.ssehub.easy.instantiation.core.model.buildlangModel.RuleBlock
-
- net.ssehub.easy.instantiation.core.model.buildlangModel.NestedRuleBlock
-
- All Implemented Interfaces:
IBuildlangElement,IRuleBlock,ILanguageElement
public class NestedRuleBlock extends RuleBlock
A nested rule block. Please note that this block must be visited explicitly.- Author:
- Holger Eichelberger
-
-
Constructor Summary
Constructors Constructor Description NestedRuleBlock()Constructor for serialization.NestedRuleBlock(IRuleElement[] body)Creates a nested rule block.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectaccept(IVisitor visitor)Accepts the visitor for visiting.booleanisVirtual()Returns whether this block is a real block or consists just of a block element without brackets.booleanreturnActualValue()Returns whether this body shall return an actual value (function) or a rule execution result.-
Methods inherited from class net.ssehub.easy.instantiation.core.model.buildlangModel.RuleBlock
addBodyElement, addBodyElement, append, getBodyElement, getBodyElementCount, setBody, setParent
-
Methods inherited from class net.ssehub.easy.instantiation.core.model.buildlangModel.ProjectElement
getName, getParent
-
-
-
-
Constructor Detail
-
NestedRuleBlock
public NestedRuleBlock()
Constructor for serialization.
-
NestedRuleBlock
public NestedRuleBlock(IRuleElement[] body)
Creates a nested rule block.- Parameters:
body- the rule body
-
-
Method Detail
-
isVirtual
public boolean isVirtual()
Description copied from interface:IRuleBlockReturns whether this block is a real block or consists just of a block element without brackets.- Returns:
trueif this block is virtual,falseelse
-
accept
public java.lang.Object accept(IVisitor visitor) throws VilException
Description copied from interface:IBuildlangElementAccepts the visitor for visiting.- Parameters:
visitor- the visitor to be used- Returns:
- the result of visiting this instance (may be null)
- Throws:
VilException- in case that visiting fails (e.g., execution)
-
returnActualValue
public boolean returnActualValue()
Description copied from interface:IRuleBlockReturns whether this body shall return an actual value (function) or a rule execution result.- Returns:
truein case of an actual value,falseelse
-
-