added analyze method

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@498 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent c8f5ba46ac
commit 6837d30c69
  1. 34
      jode/jode/obfuscator/Identifier.java

@ -1,21 +1,22 @@
/* /* Identifier Copyright (C) 1999 Jochen Hoenicke.
* Identifier (c) 1998 Jochen Hoenicke
* *
* You may distribute under the terms of the GNU General Public License. * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
* *
* IN NO EVENT SHALL JOCHEN HOENICKE BE LIABLE TO ANY PARTY FOR DIRECT, * This program is distributed in the hope that it will be useful,
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF * but WITHOUT ANY WARRANTY; without even the implied warranty of
* THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF JOCHEN HOENICKE * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * GNU General Public License for more details.
* *
* JOCHEN HOENICKE SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT * You should have received a copy of the GNU General Public License
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A * along with this program; see the file COPYING. If not, write to
* PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
* BASIS, AND JOCHEN HOENICKE HAS NO OBLIGATION TO PROVIDE MAINTENANCE,
* SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
* *
* $Id$ * $Id$
*/ */
package jode.obfuscator; package jode.obfuscator;
import jode.Obfuscator; import jode.Obfuscator;
import java.io.*; import java.io.*;
@ -39,6 +40,7 @@ public abstract class Identifier {
this.alias = alias; this.alias = alias;
} }
/** /**
* Returns true, if this identifier is reachable in some way, false if it * Returns true, if this identifier is reachable in some way, false if it
* is dead and can be removed. * is dead and can be removed.
@ -46,6 +48,7 @@ public abstract class Identifier {
public final boolean isReachable() { public final boolean isReachable() {
return reachable; return reachable;
} }
/** /**
* true, if this identifier must preserve its name, false if the * true, if this identifier must preserve its name, false if the
* name may be obfuscated. * name may be obfuscated.
@ -229,4 +232,11 @@ public abstract class Identifier {
public abstract String getFullName(); public abstract String getFullName();
public abstract String getFullAlias(); public abstract String getFullAlias();
public abstract boolean conflicting(String newAlias, boolean strong); public abstract boolean conflicting(String newAlias, boolean strong);
/**
* This is called by ClassBundle when it a class is added with
* ClassBundle.analyzeIdentifier().
*/
public void analyze() {
}
} }

Loading…
Cancel
Save