public class BJSONType extends BType
BJSONType represents a JSON value.pkgPath, typeName, valueClass| Constructor and Description |
|---|
BJSONType(BType constraint) |
BJSONType(String typeName,
String pkgPath)
Create a
BJSONType which represents the JSON type. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
BType |
getConstrainedType() |
<V extends BValue> |
getEmptyValue()
Get the empty initialized value of this type.
|
TypeSignature |
getSig() |
int |
getTag() |
<V extends BValue> |
getZeroValue()
Get the default value of the type.
|
String |
toString() |
getName, getPackagePath, getValueClass, hashCode, isNative, isPublicpublic BJSONType(String typeName, String pkgPath)
BJSONType which represents the JSON type.typeName - string name of the typepublic BJSONType(BType constraint)
public BType getConstrainedType()
public <V extends BValue> V getZeroValue()
BTypeBType#getInitValue().getZeroValue in class BTypeV - Type of the valuepublic <V extends BValue> V getEmptyValue()
BTypeBType#getDefaultValue()).getEmptyValue in class BTypeV - Type of the valuepublic TypeSignature getSig()
Copyright © 2018 WSO2. All rights reserved.