~ubuntu-branches/ubuntu/quantal/hawtjni/quantal

« back to all changes in this revision

Viewing changes to hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/JniMethod.java

  • Committer: Bazaar Package Importer
  • Author(s): Miguel Landaeta
  • Date: 2010-08-05 19:40:25 UTC
  • Revision ID: james.westby@ubuntu.com-20100805194025-3004hn889accwu2i
Tags: upstream-1.0~+git0c502e20c4
ImportĀ upstreamĀ versionĀ 1.0~+git0c502e20c4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*******************************************************************************
 
2
 * Copyright (c) 2009 Progress Software, Inc.
 
3
 * 
 
4
 * All rights reserved. This program and the accompanying materials
 
5
 * are made available under the terms of the Eclipse Public License v1.0
 
6
 * which accompanies this distribution, and is available at
 
7
 * http://www.eclipse.org/legal/epl-v10.html
 
8
 *******************************************************************************/
 
9
package org.fusesource.hawtjni.runtime;
 
10
 
 
11
import java.lang.annotation.Retention;
 
12
import java.lang.annotation.RetentionPolicy;
 
13
import java.lang.annotation.Target;
 
14
 
 
15
import static java.lang.annotation.ElementType.*;
 
16
 
 
17
/**
 
18
 * 
 
19
 * @author <a href="http://hiramchirino.com">Hiram Chirino</a>
 
20
 */
 
21
@Target({METHOD})
 
22
@Retention(RetentionPolicy.RUNTIME)
 
23
public @interface JniMethod {
 
24
    
 
25
    String cast() default "";
 
26
//    Pointer pointer() default Pointer.DETERMINE_FROM_CAST;
 
27
    String accessor() default "";
 
28
    MethodFlag[] flags() default {};
 
29
    String copy() default "";
 
30
    String conditional() default "";
 
31
    
 
32
    JniArg[] callbackArgs() default {};
 
33
}