public final class JCRefOut<T> extends Object
JCRefOut
class represents a generic wrapper for a referenced
object into CLR context.
Some examples on its use are on https://github.com/masesgroup/JCOReflector
Modifier and Type | Method and Description |
---|---|
static <T> JCRefOut<T> |
Create(T refObj)
Initialize a new
JCRefOut using the Object. |
static <T> JCRefOut<T> |
Create(T[] refObj)
Initialize a new
JCRefOut using the Object. |
static <T> JCRefOut<T> |
CreateOut(T refObj)
Deprecated.
|
static <T> JCRefOut<T> |
CreateRef(T refObj)
Deprecated.
|
Object |
getObject() |
boolean |
isRef()
Deprecated.
|
void |
setObject(Object refObj)
Sets back the result from CLR context
|
<Y> void |
setObject(Y[] refObj)
Sets back the result from CLR context
|
@Deprecated public static <T> JCRefOut<T> CreateRef(T refObj)
JCRefOut
using the Object.T
- Type to userefObj
- The referenced objectJCRefOut
@Deprecated public static <T> JCRefOut<T> CreateOut(T refObj)
JCRefOut
using the Object.T
- Type to userefObj
- The referenced objectJCRefOut
public static <T> JCRefOut<T> Create(T refObj)
JCRefOut
using the Object.T
- Type to userefObj
- The referenced object: it can be native array (byte[], int[],
and so on), AtomicReference
, AtomicBoolean
,
AtomicInteger
, AtomicLong
,
AtomicIntegerArray
, AtomicLongArray
JCRefOut
public static <T> JCRefOut<T> Create(T[] refObj)
JCRefOut
using the Object.T
- Type to userefObj
- The referenced object: it can be native array (byte[], int[],
and so on), AtomicReference
, AtomicBoolean
,
AtomicInteger
, AtomicLong
,
AtomicIntegerArray
, AtomicLongArray
JCRefOut
@Deprecated public boolean isRef()
public Object getObject()
public void setObject(Object refObj)
refObj
- The referenced object from CLR contextpublic <Y> void setObject(Y[] refObj)
Y
- the array typerefObj
- The referenced object from CLR context