org.bridj.ann
Enum Convention.Style

java.lang.Object
  extended by java.lang.Enum<Convention.Style>
      extended by org.bridj.ann.Convention.Style
All Implemented Interfaces:
Serializable, Comparable<Convention.Style>
Enclosing class:
Convention

public static enum Convention.Style
extends Enum<Convention.Style>

Calling convention enums


Enum Constant Summary
CDecl
          __cdecl convention (default for regular C functions)
CLRCall
          __clrcall convention (not supported, specific to Windows .NET mixed-mode assemblies)
FastCall
          __fastcall convention
Pascal
           
StdCall
          __stdcall convention (specific to Windows x86, won't have any effect on other platforms)
ThisCall
          __thiscall convention (default for regular C++ methods)
 
Method Summary
static Convention.Style valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Convention.Style[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

StdCall

public static final Convention.Style StdCall
__stdcall convention (specific to Windows x86, won't have any effect on other platforms)


FastCall

public static final Convention.Style FastCall
__fastcall convention


CDecl

public static final Convention.Style CDecl
__cdecl convention (default for regular C functions)


Pascal

public static final Convention.Style Pascal

CLRCall

public static final Convention.Style CLRCall
__clrcall convention (not supported, specific to Windows .NET mixed-mode assemblies)


ThisCall

public static final Convention.Style ThisCall
__thiscall convention (default for regular C++ methods)

Method Detail

values

public static Convention.Style[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Convention.Style c : Convention.Style.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Convention.Style valueOf(String name)
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 name
NullPointerException - if the argument is null


Copyright © 2009-2012. All Rights Reserved.