KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > innig > macker > structure > ReferenceType


1 /*______________________________________________________________________________
2  *
3  * Macker http://innig.net/macker/
4  *
5  * Copyright 2002-2003 Paul Cantrell
6  *
7  * This program is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License version 2, as published by the
9  * Free Software Foundation. See the file LICENSE.html for more information.
10  *
11  * This program is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY, including the implied warranty of MERCHANTABILITY or FITNESS
13  * FOR A PARTICULAR PURPOSE. See the license for more details.
14  *
15  * You should have received a copy of the GNU General Public License along with
16  * this program; if not, write to the Free Software Foundation, Inc. / 59 Temple
17  * Place, Suite 330 / Boston, MA 02111-1307 / USA.
18  *______________________________________________________________________________
19  */

20  
21 package net.innig.macker.structure;
22
23 import net.innig.util.GraphType;
24
25 /**
26     Taxonomy of different kinds of references between classes.
27     
28     @see Reference
29 */

30 public class ReferenceType
31     extends GraphType
32     {
33     public static final ReferenceType
34         SIGNATURE = new ReferenceType("signature"),
35             MEMBER_SIGNATURE = new ReferenceType("member-signature", SIGNATURE),
36                 METHOD_SIGNATURE = new ReferenceType("method-signature", MEMBER_SIGNATURE),
37                     METHOD_PARAM = new ReferenceType("method-param", METHOD_SIGNATURE),
38                     METHOD_RETURNS = new ReferenceType("method-returns", METHOD_SIGNATURE),
39                     METHOD_THROWS = new ReferenceType("method-throws", METHOD_SIGNATURE),
40                 FIELD_SIGNATURE = new ReferenceType("field-signature", MEMBER_SIGNATURE),
41             SUPER = new ReferenceType("super"),
42                 EXTENDS = new ReferenceType("extends", SUPER),
43                 IMPLEMENTS = new ReferenceType("implements", SUPER),
44         INTERNAL = new ReferenceType("internal"),
45             CONSTANT_POOL = new ReferenceType("constant-pool", INTERNAL);
46     
47     private ReferenceType(String JavaDoc name) { super(name); }
48     private ReferenceType(String JavaDoc name, ReferenceType parent) { super(name, parent); }
49     }
50
Popular Tags