// NOTE: these methods are a bit messy... oh well
public boolean hasDeobfuscatedName( Entry obfEntry )
{
Translator translator = getTranslator( TranslationDirection.Deobfuscating );
if( obfEntry instanceof ClassEntry )
{
return translator.translate( (ClassEntry)obfEntry ) != null;
}
else if( obfEntry instanceof FieldEntry )
{
return translator.translate( (FieldEntry)obfEntry ) != null;
}
else if( obfEntry instanceof MethodEntry )
{
return translator.translate( (MethodEntry)obfEntry ) != null;
}
else if( obfEntry instanceof ConstructorEntry )
{
// constructors have no names
return false;
}
else if( obfEntry instanceof ArgumentEntry )
{
return translator.translate( (ArgumentEntry)obfEntry ) != null;
}
else
{
throw new Error( "Unknown entry type: " + obfEntry.getClass().getName() );
}