projects
/
org.ibex.classgen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e693c6a
)
ClassFile.addMethod(Method, int)
author
adam
<adam@megacz.com>
Sun, 10 Jul 2005 03:02:40 +0000
(
03:02
+0000)
committer
adam
<adam@megacz.com>
Sun, 10 Jul 2005 03:02:40 +0000
(
03:02
+0000)
darcs-hash:
20050710030240
-5007d-
2d963d64e05f1234b3ea2fe9460cf01347d6b2ee
.gz
src/org/ibex/classgen/ClassFile.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/classgen/ClassFile.java
b/src/org/ibex/classgen/ClassFile.java
index
46f5e3e
..
9682150
100644
(file)
--- a/
src/org/ibex/classgen/ClassFile.java
+++ b/
src/org/ibex/classgen/ClassFile.java
@@
-100,6
+100,11
@@
public class ClassFile extends Type.Class.Body {
methods.addElement(mg);
return mg;
}
methods.addElement(mg);
return mg;
}
+ public final MethodGen addMethod(Type.Class.Method m, int flags) {
+ MethodGen mg = new MethodGen(m, flags);
+ methods.addElement(mg);
+ return mg;
+ }
/** Adds a new field to this class
@param name The name of the filed (not the signature, just the name)
/** Adds a new field to this class
@param name The name of the filed (not the signature, just the name)