* The intent of this class is to represent a parsed or otherwise existing class file. Those interested in programatically
* generating classes should see the <a href="../generic/ClassGen.html">ClassGen</a> class.
*
- * @version $Id: JavaClass.java,v 1.20 2009/09/15 03:33:52 aclement Exp $
+ * @version $Id: JavaClass.java,v 1.21 2009/09/15 16:39:56 aclement Exp $
* @see org.aspectj.apache.bcel.generic.ClassGen
* @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A>
*/
/**
* Dump Java class to output stream in binary format.
- *
- * @param file Output stream
- * @exception IOException
*/
public void dump(OutputStream file) throws IOException {
dump(new DataOutputStream(file));
/**
* Dump Java class to output stream in binary format.
- *
- * @param file Output stream
- * @exception IOException
*/
public void dump(DataOutputStream file) throws IOException {
file.writeInt(0xcafebabe);
file.close();
}
- /**
- * @return Attributes of the class.
- */
public Attribute[] getAttributes() {
return attributes;
}
private ConstantPool cpool;
private boolean isRuntimeVisible = false;
- /**
- * Here we are taking a fixed annotation of type Annotation and building a modifiable AnnotationGen object. If the pool passed
- * in is for a different class file, then copyPoolEntries should have been passed as true as that will force us to do a deep
- * copy of the annotation and move the cpool entries across. We need to copy the type and the element name value pairs and the
- * visibility.
- */
public AnnotationGen(AnnotationGen a, ConstantPool cpool, boolean copyPoolEntries) {
this.cpool = cpool;
if (copyPoolEntries) {