Class NestedRuleBlock

    • 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: IRuleBlock
        Returns whether this block is a real block or consists just of a block element without brackets.
        Returns:
        true if this block is virtual, false else
      • accept

        public java.lang.Object accept​(IVisitor visitor)
                                throws VilException
        Description copied from interface: IBuildlangElement
        Accepts 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: IRuleBlock
        Returns whether this body shall return an actual value (function) or a rule execution result.
        Returns:
        true in case of an actual value, false else