Exemple #1
0
 public CommandBuilder(ITokenMiniFactory tokenFactory_, IFormatFactory formatFactory_
                       , List <ICommandBuilder> command_, ITypeToken format_)
 {
     this._tokenMiniFactory = tokenFactory_;
     this._formatFactory    = formatFactory_;
     formatGenerator        = formatFactory_.FormatGenerator(tokenFactory_);
     TokenFormatConcatenation(command_, format_);
 }
Exemple #2
0
 public CommandBuilder(ITokenMiniFactory tokenFactory_, IFormatFactory formatFactory_
                       , List <ITypeToken> tokens_, ITypeToken format_ = null)
 {
     this._formatFactory    = formatFactory_;
     this._tokenMiniFactory = tokenFactory_;
     formatGenerator        = formatFactory_.FormatGenerator(tokenFactory_);
     AddTokens(tokens_);
     AddFormat(format_);
 }
Exemple #3
0
        public CommandBuilder(ITokenMiniFactory tokenFactory_, IFormatFactory formatFactory_
                              , ITypeToken token_, ITypeToken format_ = null)
        {
            List <ITypeToken> tokens_ = new List <ITypeToken>();

            tokens_.Add(token_);
            this._tokenMiniFactory = tokenFactory_;
            this._formatFactory    = formatFactory_;
            formatGenerator        = formatFactory_.FormatGenerator(tokenFactory_);
            AddTokens(tokens_);
            if (format_ != null)
            {
                AddFormat(format_);
            }
            else
            {
                AddFormat(formatGenerator.FromatFromTokenArray(tokens_));
            }
        }
Exemple #4
0
 public CommandBuilder(ITokenMiniFactory tokenFactory_, IFormatFactory formatFactory_
                       , List <ICommandBuilder> command_)
 {
     this._formatFactory = formatFactory_;
     TokenFormatConcatenation(command_, formatFactory_.FormatGenerator(tokenFactory_).FromatFromTokenArray(command_, null));
 }
Exemple #5
0
 public CommandBuilder(ITokenMiniFactory tokenFactory_, IFormatFactory formatFactory_)
 {
     this._formatFactory    = formatFactory_;
     this._tokenMiniFactory = tokenFactory_;
     formatGenerator        = formatFactory_.FormatGenerator(tokenFactory_);
 }