VariadicArg

public class VariadicArg

Wrapper class for variadic argument.

Wrap a variadic argument with one of this class’ children to force a specific conversion on it.

Fields

instance

protected Object instance

Constructors

VariadicArg

protected VariadicArg(Object instance)

Methods

createBox

public static BoxVariadicArg createBox(Object instance)

Creates a wrapper for explicit boxing.

Boxing means boxed values will be left alone.

createByValue

public static ByValueVariadicArg createByValue(StructObject s)

Creates a wrapper for explicit by-value structure.

By-value means the structure is passed on the stack and not as a reference.

createMap

public static MapVariadicArg createMap(Object instance, Class<? extends Mapper> mapper)

Creates a wrapper for explicit mapping.

createNFloat

public static NFloatVariadicArg createNFloat(Double d)

Creates a wrapper for explicit native word sized float.

createNInt

public static NIntVariadicArg createNInt(Long l)

Creates a wrapper for explicit native word sized signed integer.

createNLong

public static NLongVariadicArg createNLong(Long l)

Creates a wrapper for explicit native signed long type.

createNUInt

public static NUIntVariadicArg createNUInt(Long l)

Creates a wrapper for explicit native word sized unsigned integer.

createNULong

public static NULongVariadicArg createNULong(Long l)

Creates a wrapper for explicit native unsigned long type.

createUnbox

public static UnboxVariadicArg createUnbox(Object instance)

Creates a wrapper for explicit unboxing.

Boxing means boxed values will be unboxed.

createWCharT

public static WCharTVariadicArg createWCharT(Integer d)

Creates a wrapper for explicit native wchar_t type.

getInstance

public Object getInstance()