예제 #1
0
        private IFilter ParseIDFilter()
        {
            IFilter selector = null;

            if (CurrentToken.TokenType == SelectorTokenType.Hash)
            {
                selector = new IDFilter(CurrentToken.Text.Substring(1));
                currentPosition++;
            }
            return(selector);
        }
예제 #2
0
 public override bool Equals(object obj)
 {
     if (obj == null || GetType() != obj.GetType())
     {
         return(false);
     }
     else
     {
         IDFilter t = (IDFilter)obj;
         return(id.Equals(t.id));
     }
 }
예제 #3
0
 private IFilter ParseIDFilter()
 {
     IFilter selector = null;
     if (CurrentToken.TokenType == SelectorTokenType.Hash)
     {
         selector = new IDFilter(CurrentToken.Text.Substring(1));
         currentPosition++;
     }
     return selector;
 }