Package org.fusesource.hawtjni.runtime
Enum ArgFlag
- All Implemented Interfaces:
Serializable
,Comparable<ArgFlag>
,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicate that a structure parameter should be passed by value instead of by reference.Indicate that GetPrimitiveArrayCritical() should be used instead of Get<PrimitiveType>ArrayElements() when transferring array of primitives from/to C.Indicate that the native parameter is a C# managed object.Indicate that the associated C local variable for a native method parameter should be initialized with zeros.Indicate that a native method parameter is an out only variable.Indicate that a native method parameter is an in only variable.Indicate that the parameter is a pointer.Indicate that the parameter of a native method is the sentinel (last parameter of a variable argument C function).Indicate that GetStringChars()should be used instead of GetStringUTFChars() to get the characters of a java.lang.String passed as a parameter to native methods. -
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
NO_IN
Indicate that a native method parameter is an out only variable. This only makes sense if the parameter is a structure or an array of primitives. It is an optimization to avoid copying the java memory to C memory on the way in. -
NO_OUT
Indicate that a native method parameter is an in only variable. This only makes sense if the parameter is a structure or an array of primitives. It is an optimization to avoid copying the C memory from java memory on the way out. -
CRITICAL
Indicate that GetPrimitiveArrayCritical() should be used instead of Get<PrimitiveType>ArrayElements() when transferring array of primitives from/to C. This is an optimization to avoid copying memory and must be used carefully. It is ok to be used in MoveMemory() and memmove() natives. -
INIT
Indicate that the associated C local variable for a native method parameter should be initialized with zeros. -
POINTER_ARG
Indicate that the parameter is a pointer. -
BY_VALUE
Indicate that a structure parameter should be passed by value instead of by reference. This dereferences the parameter by prepending *. The parameter must not be NULL. -
UNICODE
Indicate that GetStringChars()should be used instead of GetStringUTFChars() to get the characters of a java.lang.String passed as a parameter to native methods. -
SENTINEL
Indicate that the parameter of a native method is the sentinel (last parameter of a variable argument C function). The generated code is always the literal NULL. Some compilers expect the sentinel to be the literal NULL and output a warning if otherwise. -
CS_OBJECT
Indicate that the native parameter is a C# managed object.
-
-
Constructor Details
-
ArgFlag
private ArgFlag()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-