Lines Matching refs:env

86     public Vset checkValue(Environment env, Context ctx, Vset vset, Hashtable exp) {
94 vset = outerArg.checkValue(env, ctx, vset, exp);
108 env.error(where, "unqualified.name.required", typeName);
113 env.error(where, "invalid.field.reference",
122 ClassDefinition oc = env.getClassDefinition(outerArg.type);
123 Identifier nm = oc.resolveInnerClass(env, typeName);
126 env.resolve(right.where, ctx.field.getClassDefinition(),
128 // and fall through to env.getClassDefinition() below
134 right = new TypeExpression(right.where, right.toType(env, ctx));
138 def = env.getClassDefinition(right.type);
140 env.error(where, "ambig.class", ee.name1, ee.name2);
142 env.error(where, "class.not.found", ee.name, ctx.field);
150 env.error(where, "invalid.arg.type", t, opNames[op]);
167 insertOuterLink(env, ctx, where, def, outerArg, args);
180 vset = args[i].checkValue(env, ctx, vset, exp);
197 ClassDeclaration c = env.getClassDeclaration(t);
213 superDef = env.getClassDefinition(idJavaLangObject);
220 superDef.matchAnonConstructor(env, packageName, argTypes);
231 env.dtEvent(
234 vset = body.checkLocalClass(env, ctx, vset,
248 env.error(where, "new.intf", c);
253 if (def.mustBeAbstract(env)) {
254 env.error(where, "new.abstract", c);
260 field = def.matchMethod(env, sourceClass, idInit, argTypes);
264 MemberDefinition anyInit = def.findAnyMethod(env, idInit);
267 .diagnoseMismatch(env, args, argTypes))
271 env.error(where, "unmatched.constr", sig, c);
279 implMethod = cdef.getAccessMember(env, ctx, field, false);
284 if (def.mustBeAbstract(env)) {
285 env.error(where, "new.abstract", c);
289 if (field.reportDeprecated(env)) {
290 env.error(where, "warn.constr.is.deprecated",
300 env.error(where, "invalid.protected.constructor.use",
305 env.error(where, "class.not.found", ee.name, opNames[op]);
309 env.error(where, "ambig.constr", ee.field1, ee.field2);
316 args[i] = convert(env, ctx, argTypes[i], args[i]);
327 ClassDeclaration exceptions[] = field.getExceptions(env);
346 public static Expression[] insertOuterLink(Environment env, Context ctx,
355 outerArg = ctx.findOuterLink(env, where,
356 def.findAnyMethod(env, idInit));
369 public Vset check(Environment env, Context ctx, Vset vset, Hashtable exp) {
370 return checkValue(env, ctx, vset, exp);
386 Expression inlineNewInstance(Environment env, Context ctx, Statement s) {
387 if (env.dump()) {
409 return new InlineNewInstanceExpression(where, type, field, new CompoundStatement(where, body)).inline(env, ctx);
412 public Expression inline(Environment env, Context ctx) {
413 return inlineValue(env, ctx);
415 public Expression inlineValue(Environment env, Context ctx) {
417 body.inlineLocalClass(env);
422 r.willCodeArguments(env, ctx);
424 //right = right.inlineValue(env, ctx);
429 outerArg = outerArg.inline(env, ctx);
431 outerArg = outerArg.inlineValue(env, ctx);
434 args[i] = args[i].inlineValue(env, ctx);
439 if (false && env.opt() && field.isInlineable(env, false) &&
442 Statement s = (Statement)field.getValue(env);
444 || (s.costInline(MAXINLINECOST, env, ctx) < MAXINLINECOST)) {
445 return inlineNewInstance(env, ctx, s);
459 public int costInline(int thresh, Environment env, Context ctx) {
464 return 2 + super.costInline(thresh, env, ctx);
471 if ( sourceClass.permitInlinedAccess(env, field.getClassDeclaration())
472 && sourceClass.permitInlinedAccess(env, field)) {
473 return 2 + super.costInline(thresh, env, ctx);
484 public void code(Environment env, Context ctx, Assembler asm) {
485 codeCommon(env, ctx, asm, false);
487 public void codeValue(Environment env, Context ctx, Assembler asm) {
488 codeCommon(env, ctx, asm, true);
490 private void codeCommon(Environment env, Context ctx, Assembler asm,
501 r.codeArguments(env, ctx, asm, where, field);
505 outerArg.codeValue(env, ctx, asm);
523 ClassDefinition c = env.getClassDefinition(idJavaLangObject);
540 args[i].codeValue(env, ctx, asm);