Mirror of the JODE repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
jode/jode/jode/decompiler/FieldAnalyzer.java

37 lines
955 B

package jode;
import sun.tools.java.*;
import java.lang.reflect.Modifier;
public class FieldAnalyzer implements Analyzer {
FieldDefinition fdef;
JodeEnvironment env;
public FieldAnalyzer(FieldDefinition fd, JodeEnvironment e)
{
fdef = fd;
env = e;
}
public void analyze() {
}
public void dumpSource(TabbedPrintWriter writer)
throws java.io.IOException
{
String modif = Modifier.toString(fdef.getModifiers());
if (modif.length() > 0)
writer.print(modif+" ");
writer.println(fdef.getType().
typeString(fdef.getName().toString(), false, false)+";");
// writer.tab();
// if (attributes.length > 0) {
// writer.println("/* Attributes: "+attributes.length+" */");
// for (int i=0; i < attributes.length; i++)
// attributes[i].dumpSource(writer);
// }
// writer.untab();
}
}