public ClassFile(boolean isInterface,String classname,String superclass){
  major=MAJOR_VERSION;
  minor=0;
  constPool=new ConstPool(classname);
  thisClass=constPool.getThisClassInfo();
  if (isInterface)   accessFlags=AccessFlag.INTERFACE | AccessFlag.ABSTRACT;
 else   accessFlags=AccessFlag.SUPER;
  initSuperclass(superclass);
  interfaces=null;
  fields=new ArrayList();
  methods=new ArrayList();
  thisclassname=classname;
  attributes=new ArrayList();
  attributes.add(new SourceFileAttribute(constPool,getSourcefileName(thisclassname)));
}

public ClassFile ( boolean isInterface , String classname , String superclass ) { major = MAJOR_VERSION ; minor = 0 ; constPool = new ConstPool ( classname ) ; thisClass = constPool . getThisClassInfo ( ) ; if ( isInterface ) accessFlags = AccessFlag . INTERFACE | AccessFlag . ABSTRACT ; else accessFlags = AccessFlag . SUPER ; initSuperclass ( superclass ) ; interfaces = null ; fields = new ArrayList ( ) ; methods = new ArrayList ( ) ; thisclassname = classname ; attributes = new ArrayList ( ) ; attributes . add ( new SourceFileAttribute ( constPool , getSourcefileName ( thisclassname ) ) ) ; }
constructs a class file including no members .
