KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jode > obfuscator > IdentifierMatcher


1 /* IdentifierMatcher 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: IdentifierMatcher.java,v 1.3.2.1 2002/05/28 17:34:14 hoenicke Exp $
18  */

19
20 package jode.obfuscator;
21
22 public interface IdentifierMatcher {
23     /**
24      * Returns true, if the ident is matched by this matcher.
25      */

26     public boolean matches(Identifier ident);
27
28     /**
29      * Returns true, if there may be a sub ident, that is matched by
30      * this matcher.
31      * @param subIdent the name of the sub ident, or null if every
32      * name is okay.
33      */

34     public boolean matchesSub(Identifier ident, String JavaDoc subIdent);
35
36     /**
37      * Returns the unique name of the single sub item, for which matches
38      * or matchesSub returns true.
39      * @return the unique name, or null, if there is not a unique sub
40      * item.
41      */

42     public String JavaDoc getNextComponent(Identifier ident);
43 }
44
45
Popular Tags