com.alibaba.fastjson.parser
枚举 Feature

java.lang.Object
  继承者 java.lang.Enum<Feature>
      继承者 com.alibaba.fastjson.parser.Feature
所有已实现的接口:
Serializable, Comparable<Feature>

public enum Feature
extends Enum<Feature>

作者:
wenshao

枚举常量摘要
AllowArbitraryCommas
          {"a":1,,,"b":2}
AllowComment
           
AllowISO8601DateFormat
           
AllowSingleQuotes
           
AllowUnQuotedFieldNames
           
AutoCloseSource
           
DisableASM
           
DisableCircularReferenceDetect
           
IgnoreNotMatch
           
InitStringFieldAsEmpty
           
InternFieldNames
           
SortFeidFastMatch
           
SupportArrayToBean
           
UseBigDecimal
           
 
方法摘要
static int config(int features, Feature feature, boolean state)
           
 int getMask()
           
static boolean isEnabled(int features, Feature feature)
           
static Feature valueOf(String name)
          返回带有指定名称的该类型的枚举常量。
static Feature[] values()
          按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。
 
从类 java.lang.Enum 继承的方法
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
从类 java.lang.Object 继承的方法
getClass, notify, notifyAll, wait, wait, wait
 

枚举常量详细信息

AutoCloseSource

public static final Feature AutoCloseSource

AllowComment

public static final Feature AllowComment

AllowUnQuotedFieldNames

public static final Feature AllowUnQuotedFieldNames

AllowSingleQuotes

public static final Feature AllowSingleQuotes

InternFieldNames

public static final Feature InternFieldNames

AllowISO8601DateFormat

public static final Feature AllowISO8601DateFormat

AllowArbitraryCommas

public static final Feature AllowArbitraryCommas
{"a":1,,,"b":2}


UseBigDecimal

public static final Feature UseBigDecimal

IgnoreNotMatch

public static final Feature IgnoreNotMatch
从以下版本开始:
1.1.2

SortFeidFastMatch

public static final Feature SortFeidFastMatch
从以下版本开始:
1.1.3

DisableASM

public static final Feature DisableASM
从以下版本开始:
1.1.3

DisableCircularReferenceDetect

public static final Feature DisableCircularReferenceDetect
从以下版本开始:
1.1.7

InitStringFieldAsEmpty

public static final Feature InitStringFieldAsEmpty
从以下版本开始:
1.1.10

SupportArrayToBean

public static final Feature SupportArrayToBean
从以下版本开始:
1.1.35
方法详细信息

values

public static Feature[] values()
按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。该方法可用于迭代 常量,如下所示:
for (Feature c : Feature.values())
    System.out.println(c);


valueOf

public static Feature valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格。)

参数:
name - 要返回的枚举常量的名称。
返回:
返回带有指定名称的枚举常量
抛出:
如果该枚举类型没有带有指定名称的常量, - 则抛出 IllegalArgumentException

getMask

public final int getMask()

isEnabled

public static boolean isEnabled(int features,
                                Feature feature)

config

public static int config(int features,
                         Feature feature,
                         boolean state)


Copyright © 2012-2014 Alibaba Group. All Rights Reserved.