1
/*******************************************************************************
2
* Copyright (c) 2009 Progress Software, Inc.
3
* Copyright (c) 2000, 2008 IBM Corporation and others.
5
* All rights reserved. This program and the accompanying materials
6
* are made available under the terms of the Eclipse Public License v1.0
7
* which accompanies this distribution, and is available at
8
* http://www.eclipse.org/legal/epl-v10.html
9
*******************************************************************************/
10
package org.fusesource.hawtjni.runtime;
14
* @author <a href="http://hiramchirino.com">Hiram Chirino</a>
16
public enum MethodFlag {
18
* Indicate that the item should not be generated. For example,
19
* custom natives are coded by hand.
24
* Indicate that a native method should be looked up dynamically. It
25
* is useful when having a dependence on a given library is not
26
* desirable. The library name is specified in the *_custom.h file.
31
* Indicate that the native method represents a constant or global
32
* variable instead of a function. This omits () from the generated
38
* Indicate that the C function should be casted to a prototype
39
* generated from the parameters of the native method. Useful for
40
* variable argument C functions.
45
* Indicate that the native is part of the Java Native Interface. For
46
* example: NewGlobalRef().
51
* Indicate that the native method represents a structure global
52
* variable and the address of it should be returned to Java. This is
53
* done by prepending &.
58
* Indicate that the platform source is in C++
63
* Indicate that the native method is a C++ constructor that allocates
64
* an object on the heap.
69
* Indicate that the native method is a C++ destructor that
70
* deallocates an object from the heap.
75
* Indicate that the native method is a C# constructor that allocates
76
* an object on the managed (i.e. garbage collected) heap.
81
* Indicate that the native method's return value is a
87
* Indicate that the native method represents a setter for a field in
88
* an object or structure
93
* Indicate that the native method represents a getter for a field in
94
* an object or structure.
99
* Indicate that the native method takes 2 arguments, a collection and
100
* an item, and the += operator is used to add the item to the
106
* Indicate that the return value is a pointer.
111
* Indicate that this method will be the constant initializer for
112
* the class. When called, it will set all the static constant fields
113
* to the values defined in your platform.
115
CONSTANT_INITIALIZER,
b'\\ No newline at end of file'