当前位置: 首页>>代码示例>>C#>>正文


C# com.getMask方法代码示例

本文整理汇总了C#中com.getMask方法的典型用法代码示例。如果您正苦于以下问题:C# com.getMask方法的具体用法?C# com.getMask怎么用?C# com.getMask使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com的用法示例。


在下文中一共展示了com.getMask方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: isEnabled

 /*
 /**********************************************************
 /* Configuration
 /**********************************************************
 */
 public override sealed bool isEnabled(com.fasterxml.jackson.core.JsonGenerator.Feature
     f)
 {
     return (_features & f.getMask()) != 0;
 }
开发者ID:davidraleigh,项目名称:jackson-parser-cs,代码行数:10,代码来源:GeneratorBase.cs

示例2: disable

 public override com.fasterxml.jackson.core.JsonGenerator disable(com.fasterxml.jackson.core.JsonGenerator.Feature
     f)
 {
     int mask = f.getMask();
     _features &= ~mask;
     if ((mask & DERIVED_FEATURES_MASK) != 0)
     {
         if (f == com.fasterxml.jackson.core.JsonGenerator.Feature.WRITE_NUMBERS_AS_STRINGS)
         {
             _cfgNumbersAsStrings = false;
         }
         else
         {
             if (f == com.fasterxml.jackson.core.JsonGenerator.Feature.ESCAPE_NON_ASCII)
             {
                 setHighestNonEscapedChar(0);
             }
             else
             {
                 if (f == com.fasterxml.jackson.core.JsonGenerator.Feature.STRICT_DUPLICATE_DETECTION)
                 {
                     _writeContext = _writeContext.withDupDetector(null);
                 }
             }
         }
     }
     return this;
 }
开发者ID:davidraleigh,项目名称:jackson-parser-cs,代码行数:28,代码来源:GeneratorBase.cs

示例3: enable

 //public JsonGenerator configure(Feature f, boolean state) { }
 public override com.fasterxml.jackson.core.JsonGenerator enable(com.fasterxml.jackson.core.JsonGenerator.Feature
     f)
 {
     int mask = f.getMask();
     _features |= mask;
     if ((mask & DERIVED_FEATURES_MASK) != 0)
     {
         if (f == com.fasterxml.jackson.core.JsonGenerator.Feature.WRITE_NUMBERS_AS_STRINGS)
         {
             _cfgNumbersAsStrings = true;
         }
         else
         {
             if (f == com.fasterxml.jackson.core.JsonGenerator.Feature.ESCAPE_NON_ASCII)
             {
                 setHighestNonEscapedChar(127);
             }
             else
             {
                 if (f == com.fasterxml.jackson.core.JsonGenerator.Feature.STRICT_DUPLICATE_DETECTION)
                 {
                     if (_writeContext.getDupDetector() == null)
                     {
                         // but only if disabled currently
                         _writeContext = _writeContext.withDupDetector(com.fasterxml.jackson.core.json.DupDetector
                             .rootDetector(this));
                     }
                 }
             }
         }
     }
     return this;
 }
开发者ID:davidraleigh,项目名称:jackson-parser-cs,代码行数:34,代码来源:GeneratorBase.cs

示例4: isEnabled

		/// <summary>Check whether specified generator feature is enabled.</summary>
		public bool isEnabled(com.fasterxml.jackson.core.JsonGenerator.Feature f)
		{
			return (_generatorFeatures & f.getMask()) != 0;
		}
开发者ID:davidraleigh,项目名称:jackson-parser-cs,代码行数:5,代码来源:JsonFactory.cs

示例5: disable

		/// <summary>
		/// Method for disabling specified generator feature
		/// (check
		/// <see cref="Feature"/>
		/// for list of features)
		/// </summary>
		public virtual com.fasterxml.jackson.core.JsonFactory disable(com.fasterxml.jackson.core.JsonGenerator.Feature
			 f)
		{
			_generatorFeatures &= ~f.getMask();
			return this;
		}
开发者ID:davidraleigh,项目名称:jackson-parser-cs,代码行数:12,代码来源:JsonFactory.cs

示例6: enable

		/// <summary>
		/// Method for enabling specified parser feature
		/// (check
		/// <see cref="Feature"/>
		/// for list of features)
		/// </summary>
		public virtual com.fasterxml.jackson.core.JsonFactory enable(com.fasterxml.jackson.core.JsonParser.Feature
			 f)
		{
			_parserFeatures |= f.getMask();
			return this;
		}
开发者ID:davidraleigh,项目名称:jackson-parser-cs,代码行数:12,代码来源:JsonFactory.cs


注:本文中的com.getMask方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。