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[]
annotations
boolean
asExtraWhenPresent
boolean
asMissingWhenNotPresent
java.lang.Class
clazz
TypeLiteral
clazzTypeLiteral
Decoder
decoder
OmitValue
defaultValueToOmit
Encoder
encoder
java.lang.reflect.Field
field
java.lang.String[]
fromNames
int
idx
boolean
isCollectionValueNullable
boolean
isNullable
long
mask
java.lang.reflect.Method
method
java.lang.String
name
boolean
shouldSkip
java.lang.String[]
toNames
boolean
valueCanReuse
java.lang.reflect.Type
valueType
TypeLiteral
valueTypeLiteral
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
decoderCacheKey()
java.lang.String
encoderCacheKey()
boolean
equals(java.lang.Object o)
<T extends java.lang.annotation.Annotation>
TgetAnnotation(java.lang.Class<T> annotationClass)
int
hashCode()
private static java.lang.reflect.Type
substituteTypeVariables(java.util.Map<java.lang.String,java.lang.reflect.Type> lookup, java.lang.reflect.Type type)
java.lang.String
toString()
private static java.lang.reflect.Type
translateTypeVariable(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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-