Package com.jsoniter.spi
Class Binding
- java.lang.Object
-
- com.jsoniter.spi.Binding
-
public class Binding extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.annotation.Annotation[]annotationsbooleanasExtraWhenPresentbooleanasMissingWhenNotPresentjava.lang.ClassclazzTypeLiteralclazzTypeLiteralDecoderdecoderOmitValuedefaultValueToOmitEncoderencoderjava.lang.reflect.Fieldfieldjava.lang.String[]fromNamesintidxbooleanisCollectionValueNullablebooleanisNullablelongmaskjava.lang.reflect.Methodmethodjava.lang.StringnamebooleanshouldSkipjava.lang.String[]toNamesbooleanvalueCanReusejava.lang.reflect.TypevalueTypeTypeLiteralvalueTypeLiteral
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringdecoderCacheKey()java.lang.StringencoderCacheKey()booleanequals(java.lang.Object o)<T extends java.lang.annotation.Annotation>
TgetAnnotation(java.lang.Class<T> annotationClass)inthashCode()private static java.lang.reflect.TypesubstituteTypeVariables(java.util.Map<java.lang.String,java.lang.reflect.Type> lookup, java.lang.reflect.Type type)java.lang.StringtoString()private static java.lang.reflect.TypetranslateTypeVariable(java.util.Map<java.lang.String,java.lang.reflect.Type> lookup, java.lang.reflect.TypeVariable var)
-
-
-
Field Detail
-
clazz
public final java.lang.Class clazz
-
clazzTypeLiteral
public final TypeLiteral clazzTypeLiteral
-
annotations
public java.lang.annotation.Annotation[] annotations
-
field
public java.lang.reflect.Field field
-
method
public java.lang.reflect.Method method
-
valueCanReuse
public boolean valueCanReuse
-
name
public java.lang.String name
-
valueType
public java.lang.reflect.Type valueType
-
valueTypeLiteral
public TypeLiteral valueTypeLiteral
-
fromNames
public java.lang.String[] fromNames
-
toNames
public java.lang.String[] toNames
-
decoder
public Decoder decoder
-
encoder
public Encoder encoder
-
asMissingWhenNotPresent
public boolean asMissingWhenNotPresent
-
asExtraWhenPresent
public boolean asExtraWhenPresent
-
isNullable
public boolean isNullable
-
isCollectionValueNullable
public boolean isCollectionValueNullable
-
defaultValueToOmit
public OmitValue defaultValueToOmit
-
shouldSkip
public boolean shouldSkip
-
idx
public int idx
-
mask
public long mask
-
-
Constructor Detail
-
Binding
public Binding(ClassInfo classInfo, java.util.Map<java.lang.String,java.lang.reflect.Type> lookup, java.lang.reflect.Type valueType)
-
-
Method Detail
-
decoderCacheKey
public java.lang.String decoderCacheKey()
-
encoderCacheKey
public java.lang.String encoderCacheKey()
-
substituteTypeVariables
private static java.lang.reflect.Type substituteTypeVariables(java.util.Map<java.lang.String,java.lang.reflect.Type> lookup, java.lang.reflect.Type type)
-
translateTypeVariable
private static java.lang.reflect.Type translateTypeVariable(java.util.Map<java.lang.String,java.lang.reflect.Type> lookup, java.lang.reflect.TypeVariable var)
-
getAnnotation
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-