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