home *** CD-ROM | disk | FTP | other *** search
/ PC User 2001 August / APC_Aug2001_CD2.iso / features / j2sdk / files / linux / j2sdklin.bin / jdk1.3.1 / include-old / signature.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-05-06  |  1.9 KB  |  70 lines

  1. /*
  2.  * @(#)signature.h    1.18 00/02/02
  3.  *
  4.  * Copyright 1994-2000 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the proprietary information of Sun Microsystems, Inc.  
  7.  * Use is subject to license terms.
  8.  * 
  9.  */
  10.  
  11. /*
  12.  * The keyletters used in type signatures
  13.  */
  14.  
  15. #ifndef _JAVASOFT_SIGNATURE_H_
  16. #define _JAVASOFT_SIGNATURE_H_
  17.  
  18. #define SIGNATURE_ANY        'A'
  19. #define SIGNATURE_ARRAY        '['
  20. #define SIGNATURE_BYTE        'B'
  21. #define SIGNATURE_CHAR        'C'
  22. #define SIGNATURE_CLASS        'L'
  23. #define SIGNATURE_ENDCLASS    ';'
  24. #define SIGNATURE_ENUM        'E'
  25. #define SIGNATURE_FLOAT        'F'
  26. #define SIGNATURE_DOUBLE        'D'
  27. #define SIGNATURE_FUNC        '('
  28. #define SIGNATURE_ENDFUNC    ')'
  29. #define SIGNATURE_INT        'I'
  30. #define SIGNATURE_LONG        'J'
  31. #define SIGNATURE_SHORT        'S'
  32. #define SIGNATURE_VOID        'V'
  33. #define SIGNATURE_BOOLEAN    'Z'
  34.  
  35. #define SIGNATURE_ANY_STRING        "A"
  36. #define SIGNATURE_ARRAY_STRING        "["
  37. #define SIGNATURE_BYTE_STRING        "B"
  38. #define SIGNATURE_CHAR_STRING        "C"
  39. #define SIGNATURE_CLASS_STRING        "L"
  40. #define SIGNATURE_ENDCLASS_STRING    ";"
  41. #define SIGNATURE_ENUM_STRING        "E"
  42. #define SIGNATURE_FLOAT_STRING        "F"
  43. #define SIGNATURE_DOUBLE_STRING           "D"
  44. #define SIGNATURE_FUNC_STRING        "("
  45. #define SIGNATURE_ENDFUNC_STRING    ")"
  46. #define SIGNATURE_INT_STRING        "I"
  47. #define SIGNATURE_LONG_STRING        "J"
  48. #define SIGNATURE_SHORT_STRING        "S"
  49. #define SIGNATURE_VOID_STRING        "V"
  50. #define SIGNATURE_BOOLEAN_STRING    "Z"
  51.  
  52. /* constants for terse representation of signatures:
  53.  * "(Ljava/net/Socket;ZI[Ljava/lang/String;)V" 
  54.  *   ---> { OBJ, BOOLEAN, INT, OBJ, ENDFUNC, VOID, END }
  55.  *
  56.  * Keep the values in this enumeration in sync with
  57.  * the assembly sysInvokeNative() and the custom
  58.  * invokers.
  59.  */
  60.  
  61. enum {
  62.     TERSE_SIG_END, /* this one should be '\0' */
  63.     TERSE_SIG_OBJECT, TERSE_SIG_LONG, TERSE_SIG_DOUBLE, 
  64.     TERSE_SIG_BOOLEAN, TERSE_SIG_BYTE, TERSE_SIG_SHORT,
  65.     TERSE_SIG_CHAR, TERSE_SIG_INT, TERSE_SIG_FLOAT,
  66.     TERSE_SIG_VOID, TERSE_SIG_ENDFUNC /* keep this one at end */
  67. };
  68.  
  69. #endif /* !_JAVASOFT_SIGNATURE_H_ */
  70.