home *** CD-ROM | disk | FTP | other *** search
/ Hacker / Hacker.iso / HACKER / DECOMP / DECAF / atconval.adb next >
Encoding:
Text File  |  1996-09-19  |  1.2 KB  |  39 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. with Ada.Text_Io;
  18.  
  19. package body Attribute.Constant_Value is
  20.  
  21.    use Byte_Utilities;
  22.  
  23.    procedure Decode (This      : access Constant_Value_Attribute;
  24.                      From_File : in Byte_Utilities.File_Type;
  25.                      Context   : in CP.Acc_CP_Infos) is
  26.    begin
  27.       -- reads the index value
  28.       Read (From_File, This.Index);
  29.    end decode;
  30.  
  31.    procedure Display (This    : access Constant_Value_Attribute;
  32.                       Context : in CP.Acc_CP_Infos) is
  33.    begin
  34.       -- constant_pool [index] gives the constant value for this field
  35.       CP.Display (Context (This.Index), Context);
  36.    end Display;
  37.  
  38. end Attribute.Constant_Value;
  39.