From f898ee7d0bc44ab70adb064925f4342eed276489 Mon Sep 17 00:00:00 2001 From: jochen Date: Sun, 7 Mar 1999 15:00:12 +0000 Subject: [PATCH] write type of field to table git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@332 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/obfuscator/FieldIdentifier.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/jode/jode/obfuscator/FieldIdentifier.java b/jode/jode/obfuscator/FieldIdentifier.java index 632503d..6ec7fbb 100644 --- a/jode/jode/obfuscator/FieldIdentifier.java +++ b/jode/jode/obfuscator/FieldIdentifier.java @@ -20,6 +20,7 @@ package jode.obfuscator; import java.lang.reflect.Modifier; import jode.bytecode.*; import java.io.*; +import java.util.Hashtable; public class FieldIdentifier extends Identifier{ FieldInfo info; @@ -73,6 +74,19 @@ public class FieldIdentifier extends Identifier{ 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) { if (strong) { return clazz.containFieldAlias(newAlias, getType());