KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jode > obfuscator > LocalIdentifier


1 /* LocalIdentifier Copyright (C) 1999-2002 Jochen Hoenicke.
2  *
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 2, or (at your option)
6  * any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; see the file COPYING. If not, write to
15  * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
16  *
17  * $Id: LocalIdentifier.java.in,v 1.1.2.1 2002/05/28 17:34:14 hoenicke Exp $
18  */

19
20 package jode.obfuscator;
21
22 import java.util.Collections JavaDoc;
23 import java.util.Iterator JavaDoc;
24
25 public class LocalIdentifier extends Identifier {
26     String JavaDoc name;
27     String JavaDoc type;
28
29     public LocalIdentifier(String JavaDoc name, String JavaDoc type, MethodIdentifier mIdent) {
30     super(name);
31     this.name = name;
32     this.type = type;
33     }
34
35     public String JavaDoc getName() {
36     return name;
37     }
38
39     public String JavaDoc getType() {
40     return type;
41     }
42
43     public Iterator JavaDoc getChilds() {
44     return Collections.EMPTY_LIST.iterator();
45     }
46
47     public Identifier getParent() {
48     return null;
49     }
50
51     public String JavaDoc getFullName() {
52     return name;
53     }
54
55     public String JavaDoc getFullAlias() {
56     return getAlias();
57     }
58
59     public boolean conflicting(String JavaDoc newAlias) {
60     return false;
61     }
62 }
63
Popular Tags