Пример #1
0
        private void setFilter(FilterBlock newFilter)
        {
            if (filter != null)
                filter.block = null;

            filter = newFilter;

            if (newFilter != null)
            {
                if (newFilter.Parent == null)
                    newFilter.setParent(Parent);
                else if (newFilter.Parent != Parent)
                    throw new FilterAdditionProhibitedException(this,newFilter);

                newFilter.block = this;
            }
        }
Пример #2
0
 public UserFilteredBlock()
 {
     filter = null;
 }
Пример #3
0
 protected override void VisitFilterBlock(FilterBlock node, object data)
 {
     throw new NodeNotSupportedException(node);
 }
Пример #4
0
            protected internal override void VisitFilterBlock(FilterBlock node, object data)
            {
                StackTypes stack = data as StackTypes;
                if(stack.Count != 0)
                    throw new VerifierException();

                stack.Push(typeof(object));
                AddTask(node.Next,stack);
            }
Пример #5
0
 protected internal virtual void VisitFilterBlock(FilterBlock node, object data)
 {
     throw new NodeNotSupportedException(node);
 }
Пример #6
0
 protected internal override void VisitFilterBlock(FilterBlock node, object data)
 {
     throw new EmissionException(); //Not supported yet
 }