KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > edu > umd > cs > findbugs > ba > XField


1 /*
2  * Bytecode Analysis Framework
3  * Copyright (C) 2003-2005, University of Maryland
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  */

19
20 package edu.umd.cs.findbugs.ba;
21
22 /**
23  * Abstract representation of a field.
24  * Note that this is called "XField" to distinguish it from
25  * BCEL's Field class. Also, you can think of the "X" as expanding
26  * to "Instance" or "Static".
27  * <p/>
28  * <p> This interface and its implementations exist because Field
29  * objects in BCEL are awkward to deal with. They are not Comparable,
30  * it is difficult to find out what class they belong to, etc.
31  */

32 public interface XField extends ClassMember {
33     /**
34      * Is the type of the field a reference type?
35      */

36     public boolean isReferenceType();
37
38     /**
39      * Is this a volatile field?
40      */

41     public boolean isVolatile();
42 }
43
44 // vim:ts=4
45
Popular Tags