setClassConstant added (.class pseudo static fields)

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@761 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 8b6fb39946
commit 6cac3aa688
  1. 11
      jode/jode/decompiler/FieldAnalyzer.java

@ -99,6 +99,17 @@ public class FieldAnalyzer implements Analyzer {
return true;
}
public boolean setClassConstant(String clazzName) {
if (constant != null)
return false;
if (fieldName.equals("class$" + clazzName.replace('.', '$'))
|| fieldName.equals("class$L" + clazzName.replace('.', '$'))) {
analyzedSynthetic();
return true;
}
return false;
}
public void analyze() {
imports.useType(type);
if (constant != null)

Loading…
Cancel
Save