/// <summary> /// Constructor - constructs a like atom of the supplied type, for the supplied single matchCharacter. /// </summary> /// <param name="atomType">The type for this LikeAtom</param> /// <param name="matchCharacter">This character will placed as a single character array in the MatchCharacters construct.</param> public LikeAtom(LikeExpressionType atomType, char matchCharacter) { AtomType = atomType; MatchCharacters = new char[1] { matchCharacter }; RangeCharacters = null; }
/// <summary> /// Constructor - constructs a like atom of the supplied type, initialising both arrays with the characters supplied. /// </summary> /// <param name="atomType"></param> /// <param name="matchCharacters"></param> /// <param name="rangeCharacters"></param> public LikeAtom(LikeExpressionType atomType, char[] matchCharacters, char[][] rangeCharacters) { AtomType = atomType; MatchCharacters = matchCharacters; RangeCharacters = rangeCharacters; }
/// <summary> /// Constructor - constructs a LikeAtom off the supplied type, both arrays will be initialised /// to null. /// </summary> /// <param name="atomType">The type for this LikeAtom</param> public LikeAtom(LikeExpressionType atomType) { AtomType = atomType; MatchCharacters = null; RangeCharacters = null; }