~ubuntu-branches/ubuntu/maverick/proguard/maverick

« back to all changes in this revision

Viewing changes to src/proguard/classfile/ProgramMethodInfo.java

  • Committer: Bazaar Package Importer
  • Author(s): Sam Clegg
  • Date: 2005-11-13 09:42:59 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051113094259-432zf4yyw4890mmn
Tags: 3.4-1
* New upstream release (Closes: #338355)
* debian/control: bump standards version
* debian/copyright: update FSF address
* increase java stack size for proguard and proguardgui

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: ProgramMethodInfo.java,v 1.16 2004/10/23 16:53:01 eric Exp $
 
1
/* $Id: ProgramMethodInfo.java,v 1.19 2005/06/11 13:21:35 eric Exp $
2
2
 *
3
3
 * ProGuard -- shrinking, optimization, and obfuscation of Java class files.
4
4
 *
5
5
 * Copyright (c) 1999      Mark Welsh (markw@retrologic.com)
6
 
 * Copyright (c) 2002-2004 Eric Lafortune (eric@graphics.cornell.edu)
 
6
 * Copyright (c) 2002-2005 Eric Lafortune (eric@graphics.cornell.edu)
7
7
 *
8
8
 * This library is free software; you can redistribute it and/or modify it
9
9
 * under the terms of the GNU General Public License as published by the Free
35
35
public class ProgramMethodInfo extends ProgramMemberInfo implements MethodInfo
36
36
{
37
37
    /**
 
38
     * An extra field pointing to the ClassFile objects referenced in the
 
39
     * descriptor string. This field is filled out by the <code>{@link
 
40
     * proguard.classfile.util.ClassFileReferenceInitializer ClassFileReferenceInitializer}</code>.
 
41
     * References to primitive types are ignored.
 
42
     */
 
43
    public ClassFile[] referencedClassFiles;
 
44
 
 
45
 
 
46
    /**
38
47
     * Creates a new ProgramMethodInfo from the file format data in the DataInput stream.
39
48
     *
40
49
     * @throws IOException if class file is corrupt or incomplete
67
76
            attributes[i].accept(programClassFile, this, attrInfoVisitor);
68
77
        }
69
78
    }
 
79
 
 
80
 
 
81
    public void referencedClassesAccept(ClassFileVisitor classFileVisitor)
 
82
    {
 
83
        if (referencedClassFiles != null)
 
84
        {
 
85
            for (int i = 0; i < referencedClassFiles.length; i++)
 
86
            {
 
87
                if (referencedClassFiles[i] != null)
 
88
                {
 
89
                    referencedClassFiles[i].accept(classFileVisitor);
 
90
                }
 
91
            }
 
92
        }
 
93
    }
70
94
}