Package org.nustaq.serialization
Class FSTClazzInfo.FSTFieldInfo
java.lang.Object
org.nustaq.serialization.FSTClazzInfo.FSTFieldInfo
- Enclosing class:
- FSTClazzInfo
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
align
(int off) void
int
getAlign()
int
int
final boolean
getBooleanValue
(Object obj) final int
getByteValue
(Object obj) final int
getCharValue
(Object obj) int
getDesc()
final double
getDoubleValue
(Object obj) getField()
final float
getFloatValue
(Object obj) int
static int
getIntegralCode
(Class type) int
only set if is not an array, but a direct native field typefinal int
getIntValue
(Object obj) final int
getIntValueUnsafe
(Object obj) final long
getLongValue
(Object obj) final long
getLongValueUnsafe
(Object obj) long
getName()
final Object
getObjectValue
(Object obj) Warning: crashes if not an object ref !String[]
getOneOf()
Class[]
final int
getShortValue
(Object obj) int
int
final Class
getType()
byte
boolean
isArray()
boolean
boolean
isFlat()
boolean
boolean
isIntegral
(Class type) boolean
boolean
final void
setBooleanValue
(Object newObj, boolean i1) void
setBufferedName
(Object bufferedName) final void
setByteValue
(Object newObj, byte b) final void
setCharValue
(Object newObj, char c) final void
setDoubleValue
(Object newObj, double l) final void
setFloatValue
(Object newObj, float l) final void
setIntValue
(Object newObj, int i1) void
setLastInfo
(FSTClazzInfo lastInfo) final void
setLongValue
(Object newObj, long i1) final void
setObjectValue
(Object target, Object value) final void
setShortValue
(Object newObj, short i1) void
setStructOffset
(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
-