Package org.nustaq.serialization
Class FSTClazzInfo
java.lang.Object
org.nustaq.serialization.FSTClazzInfo
public final class FSTClazzInfo
extends java.lang.Object
Created with IntelliJ IDEA.
User: Möller
Date: 03.11.12
Time: 13:08
To change this template use File | Settings | File Templates.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFSTClazzInfo.FSTFieldInfo -
Field Summary
Fields Modifier and Type Field Description static booleanBufferConstructorMetastatic booleanBufferFieldMetastatic java.util.Comparator<FSTClazzInfo.FSTFieldInfo>defFieldComparatorprotected FSTClassInstantiatorinstantiatorstatic java.util.concurrent.ConcurrentHashMap<java.lang.Class,java.lang.reflect.Field[]>sharedFieldSetscache + share j.reflect.Field. -
Constructor Summary
Constructors Constructor Description FSTClazzInfo(FSTConfiguration conf, java.lang.Class clazz, FSTClazzInfoRegistry infoRegistry, boolean ignoreAnnotations) -
Method Summary
Modifier and Type Method Description protected FSTClazzInfo.FSTFieldInfocreateFieldInfo(java.lang.reflect.Field field)java.util.List<java.lang.reflect.Field>getAllFields(java.lang.Class c, java.util.List<java.lang.reflect.Field> res)byte[]getBufferedName()java.lang.ClassgetClazz()intgetClzId()FSTMap<java.lang.Class,org.nustaq.serialization.FSTClazzInfo.FSTCompatibilityInfo>getCompInfo()java.lang.ObjectgetDecoderAttached()java.lang.Object[]getEnumConstants()FSTClazzInfo.FSTFieldInfo[]getFieldInfo()FSTClazzInfo.FSTFieldInfogetFieldInfo(java.lang.String name, java.lang.Class declaringClass)FSTClazzInfo.FSTFieldInfo[]getFieldInfoFiltered(java.lang.Class... toRemove)intgetNumBoolFields()java.lang.Class[]getPredict()java.lang.reflect.MethodgetReadResolveMethod()FSTObjectSerializergetSer()sideeffecting: if no ser is found, next lookup will return null immediateFSTObjectSerializergetSerNoStore()intgetStructSize()java.lang.reflect.MethodgetWriteReplaceMethod()booleanisAsciiNameShortString()booleanisExternalizable()booleanisFlat()java.lang.ObjectnewInstance(boolean doesRequireInit)voidsetClzId(int clzId)voidsetDecoderAttached(java.lang.Object decoderAttached)java.lang.StringtoString()booleanuseCompatibleMode()
-
Field Details
-
BufferConstructorMeta
public static boolean BufferConstructorMeta -
BufferFieldMeta
public static boolean BufferFieldMeta -
sharedFieldSets
public static java.util.concurrent.ConcurrentHashMap<java.lang.Class,java.lang.reflect.Field[]> sharedFieldSetscache + share j.reflect.Field. This can be cleared in case it gets too fat/leaks mem (e.g. class reloading) -
defFieldComparator
-
instantiator
-
-
Constructor Details
-
FSTClazzInfo
public FSTClazzInfo(FSTConfiguration conf, java.lang.Class clazz, FSTClazzInfoRegistry infoRegistry, boolean ignoreAnnotations)
-
-
Method Details
-
getDecoderAttached
public java.lang.Object getDecoderAttached() -
setDecoderAttached
public void setDecoderAttached(java.lang.Object decoderAttached) -
getBufferedName
public byte[] getBufferedName() -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
isAsciiNameShortString
public boolean isAsciiNameShortString() -
getClzId
public int getClzId() -
setClzId
public void setClzId(int clzId) -
getNumBoolFields
public int getNumBoolFields() -
isExternalizable
public boolean isExternalizable() -
isFlat
public final boolean isFlat() -
getPredict
public final java.lang.Class[] getPredict() -
newInstance
public final java.lang.Object newInstance(boolean doesRequireInit) -
getAllFields
public final java.util.List<java.lang.reflect.Field> getAllFields(java.lang.Class c, java.util.List<java.lang.reflect.Field> res) -
getFieldInfo
-
getFieldInfoFiltered
-
getFieldInfo
public final FSTClazzInfo.FSTFieldInfo getFieldInfo(java.lang.String name, java.lang.Class declaringClass) -
getStructSize
public int getStructSize() -
useCompatibleMode
public boolean useCompatibleMode() -
createFieldInfo
-
getReadResolveMethod
public final java.lang.reflect.Method getReadResolveMethod() -
getWriteReplaceMethod
public final java.lang.reflect.Method getWriteReplaceMethod() -
getClazz
public final java.lang.Class getClazz() -
getEnumConstants
public java.lang.Object[] getEnumConstants() -
getCompInfo
public FSTMap<java.lang.Class,org.nustaq.serialization.FSTClazzInfo.FSTCompatibilityInfo> getCompInfo() -
getSer
sideeffecting: if no ser is found, next lookup will return null immediate- Returns:
-
getSerNoStore
-