Package org.nustaq.serialization
Class FSTClazzInfo.FSTFieldInfo
java.lang.Object
org.nustaq.serialization.FSTClazzInfo.FSTFieldInfo
- Enclosing class:
- FSTClazzInfo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintalign(int off) voidintgetAlign()intintfinal booleangetBooleanValue(Object obj) final intgetByteValue(Object obj) final intgetCharValue(Object obj) intgetDesc()final doublegetDoubleValue(Object obj) getField()final floatgetFloatValue(Object obj) intstatic intgetIntegralCode(Class type) intonly set if is not an array, but a direct native field typefinal intgetIntValue(Object obj) final intgetIntValueUnsafe(Object obj) final longgetLongValue(Object obj) final longgetLongValueUnsafe(Object obj) longgetName()final ObjectgetObjectValue(Object obj) Warning: crashes if not an object ref !String[]getOneOf()Class[]final intgetShortValue(Object obj) intintfinal ClassgetType()bytebooleanisArray()booleanbooleanisFlat()booleanbooleanisIntegral(Class type) booleanbooleanfinal voidsetBooleanValue(Object newObj, boolean i1) voidsetBufferedName(Object bufferedName) final voidsetByteValue(Object newObj, byte b) final voidsetCharValue(Object newObj, char c) final voidsetDoubleValue(Object newObj, double l) final voidsetFloatValue(Object newObj, float l) final voidsetIntValue(Object newObj, int i1) voidsetLastInfo(FSTClazzInfo lastInfo) final voidsetLongValue(Object newObj, long i1) final voidsetObjectValue(Object target, Object value) final voidsetShortValue(Object newObj, short i1) voidsetStructOffset(int structOffset) toString()
-
Field Details
-
BOOL
public static final int BOOL- See Also:
-
BYTE
public static final int BYTE- See Also:
-
CHAR
public static final int CHAR- See Also:
-
SHORT
public static final int SHORT- See Also:
-
INT
public static final int INT- See Also:
-
LONG
public static final int LONG- See Also:
-
FLOAT
public static final int FLOAT- See Also:
-
DOUBLE
public static final int DOUBLE- See Also:
-
fakeName
-
-
Constructor Details
-
FSTFieldInfo
-
-
Method Details
-
getVersion
public byte getVersion() -
getBufferedName
-
setBufferedName
-
align
public int align(int off) -
getIndexId
public int getIndexId() -
getStructOffset
public int getStructOffset() -
setStructOffset
public void setStructOffset(int structOffset) -
getOneOf
-
getMemOffset
public long getMemOffset() -
getAlign
public int getAlign() -
getAlignPad
public int getAlignPad() -
isConditional
public boolean isConditional() -
getLastInfo
-
setLastInfo
-
isVolatile
public boolean isVolatile() -
getType
-
isArray
public boolean isArray() -
getArrayDepth
public int getArrayDepth() -
getArrayType
-
getPossibleClasses
-
getField
-
calcIntegral
public void calcIntegral() -
getIntegralCode
-
getIntegralType
public int getIntegralType()only set if is not an array, but a direct native field type- Returns:
-
isIntegral
-
isIntegral
public boolean isIntegral()- Returns:
- wether this is primitive or an array of primitives
-
getDesc
-
toString
-
isFlat
public boolean isFlat() -
getComponentStructSize
public int getComponentStructSize() -
getStructSize
public int getStructSize() -
isPrimitive
public boolean isPrimitive() -
getByteValue
- Throws:
IllegalAccessException
-
getCharValue
- Throws:
IllegalAccessException
-
getShortValue
- Throws:
IllegalAccessException
-
getIntValueUnsafe
- Throws:
IllegalAccessException
-
getLongValueUnsafe
- Throws:
IllegalAccessException
-
getBooleanValue
- Throws:
IllegalAccessException
-
getObjectValue
Warning: crashes if not an object ref ! use getField().get() for a safe version ..- Parameters:
obj-- Returns:
- Throws:
IllegalAccessException
-
getFloatValue
- Throws:
IllegalAccessException
-
setCharValue
- Throws:
IllegalAccessException
-
setShortValue
- Throws:
IllegalAccessException
-
setObjectValue
- Throws:
IllegalAccessException
-
setFloatValue
- Throws:
IllegalAccessException
-
setDoubleValue
- Throws:
IllegalAccessException
-
setLongValue
- Throws:
IllegalAccessException
-
getLongValue
- Throws:
IllegalAccessException
-
getDoubleValue
- Throws:
IllegalAccessException
-
setIntValue
- Throws:
IllegalAccessException
-
getIntValue
- Throws:
IllegalAccessException
-
setBooleanValue
- Throws:
IllegalAccessException
-
setByteValue
- Throws:
IllegalAccessException
-
getName
-