X-Git-Url: http://git.megacz.com/?p=org.ibex.classgen.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fclassgen%2FMethodGen.java;h=b82567e531eb1a7e61b3bf9f99529a900c8c35f5;hp=04b6d5545c8c6288e523395f70c9e2f0d2a9ba8e;hb=0087af3d283954bbeeaaa857914ce9e06c39fcc7;hpb=422c330c1494005be09783d0ba406b9f5f860475 diff --git a/src/org/ibex/classgen/MethodGen.java b/src/org/ibex/classgen/MethodGen.java index 04b6d55..b82567e 100644 --- a/src/org/ibex/classgen/MethodGen.java +++ b/src/org/ibex/classgen/MethodGen.java @@ -11,8 +11,8 @@ public class MethodGen implements CGConst { private final Type ret; private final Type[] args; private final int flags; - private final AttrGen attrs; - private final AttrGen codeAttrs; + private final ClassGen.AttrGen attrs; + private final ClassGen.AttrGen codeAttrs; private final Hashtable exnTable = new Hashtable(); private final Hashtable thrownExceptions = new Hashtable(); @@ -33,8 +33,8 @@ public class MethodGen implements CGConst { this.args = args; this.flags = flags; - attrs = new AttrGen(cp); - codeAttrs = new AttrGen(cp); + attrs = new ClassGen.AttrGen(cp); + codeAttrs = new ClassGen.AttrGen(cp); cp.addUtf8(name); cp.addUtf8(getDescriptor()); @@ -91,9 +91,6 @@ public class MethodGen implements CGConst { } public final int size() { return size; } - // FEATURE: Deprecate this - public final int addPushConst(int n) { return add(LDC,n); } - // These two are optimized for speed, they don't call set() below public final int add(byte op) { int s = size;