Exemplo n.º 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;
            }
        }
Exemplo n.º 2
0
 public UserFilteredBlock()
 {
     filter = null;
 }
Exemplo n.º 3
0
 protected override void VisitFilterBlock(FilterBlock node, object data)
 {
     throw new NodeNotSupportedException(node);
 }
Exemplo n.º 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);
            }
Exemplo n.º 5
0
 protected internal virtual void VisitFilterBlock(FilterBlock node, object data)
 {
     throw new NodeNotSupportedException(node);
 }
Exemplo n.º 6
0
 protected internal override void VisitFilterBlock(FilterBlock node, object data)
 {
     throw new EmissionException(); //Not supported yet
 }