public StatusCodeLexerFactory([NotNull] ILexerFactory <Digit> digitLexerFactory)
 {
     if (digitLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(digitLexerFactory));
     }
     DigitLexerFactory = digitLexerFactory;
 }
예제 #2
0
 public AbsolutePathLexerFactory([NotNull] ILexerFactory <Segment> segment)
 {
     if (segment == null)
     {
         throw new ArgumentNullException(nameof(segment));
     }
     Segment = segment;
 }
예제 #3
0
 public OptionalWhiteSpaceLexerFactory([NotNull] ILexerFactory <WhiteSpace> whiteSpaceLexerFactory)
 {
     if (whiteSpaceLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(whiteSpaceLexerFactory));
     }
     WhiteSpaceLexerFactory = whiteSpaceLexerFactory;
 }
예제 #4
0
 public TokenLexerFactory([NotNull] ILexerFactory <TokenCharacter> tokenCharacterLexerFactory)
 {
     if (tokenCharacterLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(tokenCharacterLexerFactory));
     }
     TokenCharacterLexerFactory = tokenCharacterLexerFactory;
 }
예제 #5
0
 public FragmentLexerFactory([NotNull] ILexerFactory <PathCharacter> pathCharacterLexerFactory)
 {
     if (pathCharacterLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(pathCharacterLexerFactory));
     }
     PathCharacterLexerFactory = pathCharacterLexerFactory;
 }
 public BadWhiteSpaceLexerFactory([NotNull] ILexerFactory <OptionalWhiteSpace> optionalWhiteSpace)
 {
     if (optionalWhiteSpace == null)
     {
         throw new ArgumentNullException(nameof(optionalWhiteSpace));
     }
     OptionalWhiteSpace = optionalWhiteSpace;
 }
 public AbsoluteFormLexerFactory([NotNull] ILexerFactory <AbsoluteUri> absoluteUri)
 {
     if (absoluteUri == null)
     {
         throw new ArgumentNullException(nameof(absoluteUri));
     }
     AbsoluteUri = absoluteUri;
 }
 public MessageBodyLexerFactory([NotNull] ILexerFactory <Octet> octetLexerFactory)
 {
     if (octetLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(octetLexerFactory));
     }
     OctetLexerFactory = octetLexerFactory;
 }
 public PseudonymLexerFactory([NotNull] ILexerFactory <Token> tokenLexerFactory)
 {
     if (tokenLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(tokenLexerFactory));
     }
     TokenLexerFactory = tokenLexerFactory;
 }
 public ChunkDataLexerFactory([NotNull] ILexerFactory <Octet> octet)
 {
     if (octet == null)
     {
         throw new ArgumentNullException(nameof(octet));
     }
     Octet = octet;
 }
 public ChunkExtensionNameLexerFactory([NotNull] ILexerFactory <Token> tokenLexerFactory)
 {
     if (tokenLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(tokenLexerFactory));
     }
     TokenLexerFactory = tokenLexerFactory;
 }
 public ChunkSizeLexerFactory([NotNull] ILexerFactory <HexadecimalDigit> hexadecimalDigitLexerFactory)
 {
     if (hexadecimalDigitLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(hexadecimalDigitLexerFactory));
     }
     HexadecimalDigitLexerFactory = hexadecimalDigitLexerFactory;
 }
예제 #13
0
 public ContentLengthLexerFactory([NotNull] ILexerFactory <Digit> digitLexerFactory)
 {
     if (digitLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(digitLexerFactory));
     }
     DigitLexerFactory = digitLexerFactory;
 }
예제 #14
0
 public AuthorityFormLexerFactory([NotNull] ILexerFactory <Authority> authority)
 {
     if (authority == null)
     {
         throw new ArgumentNullException(nameof(authority));
     }
     Authority = authority;
 }
 public TransferCodingLexerFactory([NotNull] ILexerFactory <TransferExtension> transferExtensionLexerFactory)
 {
     if (transferExtensionLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(transferExtensionLexerFactory));
     }
     TransferExtensionLexerFactory = transferExtensionLexerFactory;
 }
예제 #16
0
 public IPv4AddressLexerFactory(
     [NotNull] ILexerFactory <DecimalOctet> decimaOctetLexerFactory)
 {
     if (decimaOctetLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(decimaOctetLexerFactory));
     }
     DecimaOctetLexerFactory = decimaOctetLexerFactory;
 }
예제 #17
0
 public DecimalOctetLexerFactory(
     [NotNull] ILexerFactory <Digit> digitLexerFactory)
 {
     if (digitLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(digitLexerFactory));
     }
     DigitLexerFactory = digitLexerFactory;
 }
 public PathAbsoluteOrEmptyLexerFactory(
     [NotNull] ILexerFactory <Segment> segmentLexerFactory)
 {
     if (segmentLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(segmentLexerFactory));
     }
     SegmentLexerFactory = segmentLexerFactory;
 }
 public PercentEncodingLexerFactory(
     [NotNull] ILexerFactory <HexadecimalDigit> hexadecimalDigitLexerFactory)
 {
     if (hexadecimalDigitLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(hexadecimalDigitLexerFactory));
     }
     HexadecimalDigitLexerFactory = hexadecimalDigitLexerFactory;
 }
예제 #20
0
 public MapParser(ILexerFactory lexerFactory,
                  IMappedDataExpressionParser expressionParser,
                  IMapExampleLoader exampleLoader,
                  ILogger <MapParser> logger)
 {
     this.lexerFactory     = lexerFactory;
     this.expressionParser = expressionParser;
     this.exampleLoader    = exampleLoader;
     this.logger           = logger;
 }
        public static IEnumerable <IToken> Parse(this ILexerFactory factory, TextReader input)
        {
            var lexer = factory.CreateLexer();

            lexer.Reset(input);

            while (lexer.MoveNext())
            {
                yield return(lexer.Current);
            }
        }
예제 #22
0
        public LuceneIndexEngine(
            string indexDirectory      = null,
            ILexerFactory lexerFactory = null)
        {
            IndexDirectory = indexDirectory ?? "lucene-index";

            lexerFactory    = lexerFactory ?? new DefaultLexerFactory();
            _writerLexer    = lexerFactory.CreateLexer();
            _writerAnalyzer = new GenericAnalyzer(_writerLexer);

            QueryBuilder = new LuceneQueryBuilder(lexerFactory, ContentFieldName);
        }
예제 #23
0
 public RequiredWhiteSpaceLexerFactory(
     [NotNull] ILexerFactory <Space> spaceFactory,
     [NotNull] ILexerFactory <HorizontalTab> horizontalTabLexerFactory)
 {
     if (spaceFactory == null)
     {
         throw new ArgumentNullException(nameof(spaceFactory));
     }
     if (horizontalTabLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(horizontalTabLexerFactory));
     }
     SpaceFactory = spaceFactory;
     HorizontalTabLexerFactory = horizontalTabLexerFactory;
 }
 public FieldVisibleCharacterLexerFactory(
     [NotNull] ILexerFactory <VisibleCharacter> visibleCharacterLexerFactory,
     [NotNull] ILexerFactory <ObsoleteText> obsoleteTextLexerFactory)
 {
     if (visibleCharacterLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(visibleCharacterLexerFactory));
     }
     if (obsoleteTextLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(obsoleteTextLexerFactory));
     }
     VisibleCharacterLexerFactory = visibleCharacterLexerFactory;
     ObsoleteTextLexerFactory     = obsoleteTextLexerFactory;
 }
예제 #25
0
 public TransferCodingCollectionLexerFactory(
     [NotNull] ILexerFactory <TransferCoding> transferCodingLexerFactory,
     [NotNull] ILexerFactory <TransferCodingRank> transferCodingRankLexerFactory)
 {
     if (transferCodingLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(transferCodingLexerFactory));
     }
     if (transferCodingRankLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(transferCodingRankLexerFactory));
     }
     TransferCodingLexerFactory     = transferCodingLexerFactory;
     TransferCodingRankLexerFactory = transferCodingRankLexerFactory;
 }
예제 #26
0
 public UpgradeLexerFactory(
     [NotNull] IRequiredDelimitedListLexerFactory requiredDelimitedListLexerFactory,
     [NotNull] ILexerFactory <Protocol> protocoLexerFactory)
 {
     if (requiredDelimitedListLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(requiredDelimitedListLexerFactory));
     }
     if (protocoLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(protocoLexerFactory));
     }
     RequiredDelimitedListLexerFactory = requiredDelimitedListLexerFactory;
     ProtocoLexerFactory = protocoLexerFactory;
 }
 public TrailerLexerFactory(
     [NotNull] IRequiredDelimitedListLexerFactory requiredDelimitedListLexerFactory,
     [NotNull] ILexerFactory <FieldName> fieldNameLexerFactory)
 {
     if (requiredDelimitedListLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(requiredDelimitedListLexerFactory));
     }
     if (fieldNameLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(fieldNameLexerFactory));
     }
     RequiredDelimitedListLexerFactory = requiredDelimitedListLexerFactory;
     FieldNameLexerFactory             = fieldNameLexerFactory;
 }
예제 #28
0
 public LeastSignificantInt32LexerFactory(
     [NotNull] ILexerFactory <HexadecimalInt16> hexadecimalInt16LexerFactory,
     [NotNull] ILexerFactory <IPv4Address> ipv4AddressLexerFactory)
 {
     if (hexadecimalInt16LexerFactory == null)
     {
         throw new ArgumentNullException(nameof(hexadecimalInt16LexerFactory));
     }
     if (ipv4AddressLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(ipv4AddressLexerFactory));
     }
     HexadecimalInt16LexerFactory = hexadecimalInt16LexerFactory;
     Ipv4AddressLexerFactory      = ipv4AddressLexerFactory;
 }
예제 #29
0
 public IPv6AddressLexerFactory(
     [NotNull] ILexerFactory <HexadecimalInt16> hexadecimalInt16LexerFactory,
     [NotNull] ILexerFactory <LeastSignificantInt32> leastSignificantInt32LexerFactory)
 {
     if (hexadecimalInt16LexerFactory == null)
     {
         throw new ArgumentNullException(nameof(hexadecimalInt16LexerFactory));
     }
     if (leastSignificantInt32LexerFactory == null)
     {
         throw new ArgumentNullException(nameof(leastSignificantInt32LexerFactory));
     }
     HexadecimalInt16LexerFactory      = hexadecimalInt16LexerFactory;
     LeastSignificantInt32LexerFactory = leastSignificantInt32LexerFactory;
 }
예제 #30
0
 public ChunkExtensionValueLexerFactory(
     [NotNull] ILexerFactory <Token> token,
     [NotNull] ILexerFactory <QuotedString> quotedString)
 {
     if (token == null)
     {
         throw new ArgumentNullException(nameof(token));
     }
     if (quotedString == null)
     {
         throw new ArgumentNullException(nameof(quotedString));
     }
     Token        = token;
     QuotedString = quotedString;
 }