(C context, ObjExpr objx, GeneratorAdapter gen)
| 3137 | } |
| 3138 | |
| 3139 | public void emit(C context, ObjExpr objx, GeneratorAdapter gen){ |
| 3140 | if(this.ctor != null) |
| 3141 | { |
| 3142 | Type type = getType(c); |
| 3143 | gen.newInstance(type); |
| 3144 | gen.dup(); |
| 3145 | MethodExpr.emitTypedArgs(objx, gen, ctor.getParameterTypes(), args); |
| 3146 | gen.invokeConstructor(type, new Method("<init>", Type.getConstructorDescriptor(ctor))); |
| 3147 | } |
| 3148 | else |
| 3149 | { |
| 3150 | gen.push(destubClassName(c.getName())); |
| 3151 | gen.invokeStatic(RT_TYPE, forNameMethod); |
| 3152 | MethodExpr.emitArgsAsArray(args, objx, gen); |
| 3153 | gen.invokeStatic(REFLECTOR_TYPE, invokeConstructorMethod); |
| 3154 | } |
| 3155 | if(context == C.STATEMENT) |
| 3156 | gen.pop(); |
| 3157 | } |
| 3158 | |
| 3159 | public boolean hasJavaClass(){ |
| 3160 | return true; |
nothing calls this directly
no test coverage detected