write type of field to table

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@332 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 301160b29b
commit f898ee7d0b
  1. 14
      jode/jode/obfuscator/FieldIdentifier.java

@ -20,6 +20,7 @@ package jode.obfuscator;
import java.lang.reflect.Modifier; import java.lang.reflect.Modifier;
import jode.bytecode.*; import jode.bytecode.*;
import java.io.*; import java.io.*;
import java.util.Hashtable;
public class FieldIdentifier extends Identifier{ public class FieldIdentifier extends Identifier{
FieldInfo info; FieldInfo info;
@ -73,6 +74,19 @@ public class FieldIdentifier extends Identifier{
return "MethodIdentifier "+getFullName()+"."+getType(); return "MethodIdentifier "+getFullName()+"."+getType();
} }
public void readTable(Hashtable table) {
String alias = (String) table.get(getFullName() + "." + getType());
if (alias == null)
alias = (String) table.get(getFullName());
if (alias != null)
setAlias(alias);
}
public void writeTable(Hashtable table) {
table.put(getFullAlias()
+ "." + clazz.bundle.getTypeAlias(getType()), getName());
}
public boolean conflicting(String newAlias, boolean strong) { public boolean conflicting(String newAlias, boolean strong) {
if (strong) { if (strong) {
return clazz.containFieldAlias(newAlias, getType()); return clazz.containFieldAlias(newAlias, getType());

Loading…
Cancel
Save