< prev index next >

src/java.xml/share/classes/com/sun/org/apache/bcel/internal/classfile/JavaClass.java

Print this page




 444 
 445   /**
 446    * @return Class name index.
 447    */
 448   public int getSuperclassNameIndex() { return superclass_name_index; }
 449 
 450   static {
 451     // Debugging ... on/off
 452     String debug = null, sep = null;
 453 
 454     try {
 455       debug = SecuritySupport.getSystemProperty("JavaClass.debug");
 456       // Get path separator either / or \ usually
 457       sep = SecuritySupport.getSystemProperty("file.separator");
 458     }
 459     catch (SecurityException e) {
 460         // falls through
 461     }
 462 
 463     if(debug != null)
 464       JavaClass.debug = new Boolean(debug).booleanValue();
 465 
 466     if(sep != null)
 467       try {
 468         JavaClass.sep = sep.charAt(0);
 469       } catch(StringIndexOutOfBoundsException e) {} // Never reached
 470   }
 471 
 472   /**
 473    * @param attributes .
 474    */
 475   public void setAttributes(Attribute[] attributes) {
 476     this.attributes = attributes;
 477   }
 478 
 479   /**
 480    * @param class_name .
 481    */
 482   public void setClassName(String class_name) {
 483     this.class_name = class_name;
 484   }




 444 
 445   /**
 446    * @return Class name index.
 447    */
 448   public int getSuperclassNameIndex() { return superclass_name_index; }
 449 
 450   static {
 451     // Debugging ... on/off
 452     String debug = null, sep = null;
 453 
 454     try {
 455       debug = SecuritySupport.getSystemProperty("JavaClass.debug");
 456       // Get path separator either / or \ usually
 457       sep = SecuritySupport.getSystemProperty("file.separator");
 458     }
 459     catch (SecurityException e) {
 460         // falls through
 461     }
 462 
 463     if(debug != null)
 464       JavaClass.debug = Boolean.parseBoolean(debug);
 465 
 466     if(sep != null)
 467       try {
 468         JavaClass.sep = sep.charAt(0);
 469       } catch(StringIndexOutOfBoundsException e) {} // Never reached
 470   }
 471 
 472   /**
 473    * @param attributes .
 474    */
 475   public void setAttributes(Attribute[] attributes) {
 476     this.attributes = attributes;
 477   }
 478 
 479   /**
 480    * @param class_name .
 481    */
 482   public void setClassName(String class_name) {
 483     this.class_name = class_name;
 484   }


< prev index next >