Package org.nustaq.serialization
Class FSTClazzInfo.FSTFieldInfo
java.lang.Object
org.nustaq.serialization.FSTClazzInfo.FSTFieldInfo
- Enclosing class:
- FSTClazzInfo
public static final class FSTClazzInfo.FSTFieldInfo extends Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description FSTFieldInfo(Class[] possibleClasses, Field fi, boolean ignoreAnnotations) -
Method Summary
-
Field Details
-
BOOL
public static final int BOOL- See Also:
- Constant Field Values
-
BYTE
public static final int BYTE- See Also:
- Constant Field Values
-
CHAR
public static final int CHAR- See Also:
- Constant Field Values
-
SHORT
public static final int SHORT- See Also:
- Constant Field Values
-
INT
public static final int INT- See Also:
- Constant Field Values
-
LONG
public static final int LONG- See Also:
- Constant Field Values
-
FLOAT
public static final int FLOAT- See Also:
- Constant Field Values
-
DOUBLE
public static final int DOUBLE- See Also:
- Constant Field Values
-
fakeName
-
-
Constructor Details
-
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
-