public StatusCodeLexerFactory([NotNull] ILexerFactory <Digit> digitLexerFactory) { if (digitLexerFactory == null) { throw new ArgumentNullException(nameof(digitLexerFactory)); } DigitLexerFactory = digitLexerFactory; }
public AbsolutePathLexerFactory([NotNull] ILexerFactory <Segment> segment) { if (segment == null) { throw new ArgumentNullException(nameof(segment)); } Segment = segment; }
public OptionalWhiteSpaceLexerFactory([NotNull] ILexerFactory <WhiteSpace> whiteSpaceLexerFactory) { if (whiteSpaceLexerFactory == null) { throw new ArgumentNullException(nameof(whiteSpaceLexerFactory)); } WhiteSpaceLexerFactory = whiteSpaceLexerFactory; }
public TokenLexerFactory([NotNull] ILexerFactory <TokenCharacter> tokenCharacterLexerFactory) { if (tokenCharacterLexerFactory == null) { throw new ArgumentNullException(nameof(tokenCharacterLexerFactory)); } TokenCharacterLexerFactory = tokenCharacterLexerFactory; }
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; }
public ContentLengthLexerFactory([NotNull] ILexerFactory <Digit> digitLexerFactory) { if (digitLexerFactory == null) { throw new ArgumentNullException(nameof(digitLexerFactory)); } DigitLexerFactory = digitLexerFactory; }
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; }
public IPv4AddressLexerFactory( [NotNull] ILexerFactory <DecimalOctet> decimaOctetLexerFactory) { if (decimaOctetLexerFactory == null) { throw new ArgumentNullException(nameof(decimaOctetLexerFactory)); } DecimaOctetLexerFactory = decimaOctetLexerFactory; }
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; }
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); } }
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); }
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; }
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; }
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; }
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; }
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; }
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; }