本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}