home *** CD-ROM | disk | FTP | other *** search
/ Hacker / Hacker.iso / HACKER / DECOMP / DECAF / cpstring.ads < prev    next >
Encoding:
Text File  |  1996-09-19  |  1.8 KB  |  59 lines

  1. --
  2. -- Copyright (C) 1996 Ada Resource Association (ARA), Columbus, Ohio.
  3. -- Author: Gilles Demailly
  4. --
  5. --
  6. -- Permission to use, copy, modify, and distribute this software and its
  7. -- documentation for any purpose and without fee is hereby granted,
  8. -- provided that the above copyright and authorship notice appear in all
  9. -- copies and that both that copyright notice and this permission notice
  10. -- appear in supporting documentation.
  11. -- 
  12. -- The ARA makes no representations about the suitability of this software
  13. -- for any purpose.  It is provided "as is" without express
  14. -- or implied warranty.
  15. -- 
  16.  
  17. -- This child package provides the class Strings :
  18. -- a constant pool String information is used to represent string constants.
  19. --
  20. -- For more information about Java Class file format check :
  21. --    The Java Virtual Machine Specification
  22. --    (Release 1.0 Beta - Draft - August 21, 1995)
  23.  
  24. with Basic_Definitions;
  25. use Basic_Definitions;
  26.  
  27. with Byte_Utilities;
  28.  
  29. package CP.Strings is
  30.  
  31.    -- the class Tag value in Java files
  32.    ------------------------------------
  33.    C_Class_Tag : constant Unsigned_8 := 8;
  34.  
  35.    type Strings is new CP_Info with private;
  36.       
  37.    type Acc_Strings is access all Strings'Class;
  38.    
  39.    -- Decode a Constant Pool information
  40.    -------------------------------------
  41.    procedure Decode (From_File : Byte_Utilities.File_Type;
  42.                      Some_Info : access Strings);
  43.  
  44.    -- Display a Constant Pool information
  45.    --------------------------------------
  46.    procedure Display (Some_Info : access Strings;
  47.                       Context   : in Acc_CP_Infos);
  48.  
  49. private
  50.    
  51.    -- adds the string index in the constant pool
  52.    ---------------------------------------------
  53.    type Strings is new CP_Info with
  54.       record
  55.          String_Index : Unsigned_16;
  56.       end record;
  57.       
  58. end CP.Strings;
  59.