home *** CD-ROM | disk | FTP | other *** search
/ Hacker / Hacker.iso / HACKER / DECOMP / DECAF / cplonint.ads < prev    next >
Encoding:
Text File  |  1996-09-19  |  2.1 KB  |  68 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 Long_Integers :
  18. -- a constant pool Long_Integer information is used to represent
  19. -- an Integer_32 constant.
  20. --
  21. -- For more information about Java Class file format check :
  22. --    The Java Virtual Machine Specification
  23. --    (Release 1.0 Beta - Draft - August 21, 1995)
  24.  
  25. with Basic_Definitions;
  26. use Basic_Definitions;
  27.  
  28. with Byte_Utilities;
  29.  
  30. package CP.Long_Integers is
  31.  
  32.    -- the class Tag value in Java files
  33.    ------------------------------------
  34.    C_Class_Tag : constant Unsigned_8 := 5;
  35.  
  36.    type Long_Integers is new CP_Info with private;
  37.       
  38.    type Acc_Long_Integers is access all Long_Integers'Class;
  39.    
  40.    -- Decode a Constant Pool information
  41.    -------------------------------------
  42.    procedure Decode (From_File : Byte_Utilities.File_Type;
  43.                      Some_Info : access Long_Integers);
  44.  
  45.    -- Display a Constant Pool information
  46.    --------------------------------------
  47.    procedure Display (Some_Info : access Long_Integers;
  48.                       Context   : in Acc_CP_Infos);
  49.  
  50.    -- Returns True is the information uses two indexes
  51.    -- in the Constant Pool table (which is -why?- the
  52.    -- case for Long_Integer and Long_Floats)
  53.    ---------------------------------------------------
  54.    function Use_Two_Indexes_In_Table
  55.                (Some_Info : access Long_Integers) return Boolean;
  56.  
  57.    
  58. private
  59.  
  60.    -- adds the integer value
  61.    -------------------------
  62.    type Long_Integers is new CP_Info with
  63.       record
  64.          Integer_Value : Integer_64;
  65.       end record;
  66.       
  67. end CP.Long_Integers;
  68.