Package deltix.qsrv.hf.pub.codec.intp
Class JavaValueSetterMethod
- java.lang.Object
-
- deltix.qsrv.hf.pub.codec.intp.JavaValueSetterMethod
-
- All Implemented Interfaces:
ValueSetter
public class JavaValueSetterMethod extends java.lang.Object implements ValueSetter
Implementation, which uses Java-reflection
-
-
Constructor Summary
Constructors Constructor Description JavaValueSetterMethod(FieldLayout layout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
get(java.lang.Object obj)
java.lang.String
getSetterName()
boolean
hasNullifier()
void
nullifyValue(java.lang.Object object)
void
set(java.lang.Object obj, java.lang.Object value)
void
setBoolean(java.lang.Object obj, boolean value)
void
setByte(java.lang.Object obj, byte value)
void
setChar(java.lang.Object obj, char value)
void
setDouble(java.lang.Object obj, double value)
void
setFloat(java.lang.Object obj, float value)
void
setInt(java.lang.Object obj, int value)
void
setLong(java.lang.Object obj, long value)
void
setShort(java.lang.Object obj, short value)
-
-
-
Constructor Detail
-
JavaValueSetterMethod
public JavaValueSetterMethod(FieldLayout layout)
-
-
Method Detail
-
hasNullifier
public boolean hasNullifier()
-
nullifyValue
public void nullifyValue(java.lang.Object object) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
- Throws:
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
-
getSetterName
public java.lang.String getSetterName()
-
setBoolean
public void setBoolean(java.lang.Object obj, boolean value) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
- Specified by:
setBoolean
in interfaceValueSetter
- Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
-
setChar
public void setChar(java.lang.Object obj, char value) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
- Specified by:
setChar
in interfaceValueSetter
- Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
-
setByte
public void setByte(java.lang.Object obj, byte value) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
- Specified by:
setByte
in interfaceValueSetter
- Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
-
setShort
public void setShort(java.lang.Object obj, short value) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
- Specified by:
setShort
in interfaceValueSetter
- Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
-
setInt
public void setInt(java.lang.Object obj, int value) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
- Specified by:
setInt
in interfaceValueSetter
- Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
-
setLong
public void setLong(java.lang.Object obj, long value) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
- Specified by:
setLong
in interfaceValueSetter
- Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
-
setFloat
public void setFloat(java.lang.Object obj, float value) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
- Specified by:
setFloat
in interfaceValueSetter
- Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
-
setDouble
public void setDouble(java.lang.Object obj, double value) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
- Specified by:
setDouble
in interfaceValueSetter
- Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
-
set
public void set(java.lang.Object obj, java.lang.Object value) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
- Specified by:
set
in interfaceValueSetter
- Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
-
get
public java.lang.Object get(java.lang.Object obj) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
- Specified by:
get
in interfaceValueSetter
- Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
-
-