Lines Matching refs:env

278     public SourceMember(MemberDefinition f, ClassDefinition c, Environment env) {
284 this.exp = f.getExceptions(env);
290 public ClassDeclaration[] getExceptions(Environment env) {
300 env = ((SourceClass)getClassDefinition()).setupEnv(env);
304 Identifier rexp = getClassDefinition().resolveName(env, e);
305 exp[i] = env.getClassDeclaration(rexp);
324 public void resolveTypeStructure(Environment env) {
325 if (tracing) env.dtEnter("SourceMember.resolveTypeStructure: " + this);
332 if (tracing) env.dtEvent("SourceMember.resolveTypeStructure: OK " + this);
339 if (tracing) env.dtEvent("SourceMember.resolveTypeStructure: RESOLVING " + this);
343 super.resolveTypeStructure(env);
347 ((SourceClass)nc).resolveTypeStructure(env);
356 type = env.resolveNames(getClassDefinition(), type, isSynthetic());
359 getExceptions(env);
370 if (tracing) env.dtExit("SourceMember.resolveTypeStructure: " + this);
388 public boolean reportDeprecated(Environment env) {
399 public void check(Environment env) throws ClassNotFound {
400 if (tracing) env.dtEnter("SourceMember.check: " +
408 env.dtExit("SourceMember.check: BREAKING CYCLE");
411 if (tracing) env.dtEvent("SourceMember.check: CHECKING CLASS");
412 clazz.check(env);
418 env.dtExit("SourceMember.check: CHECK FAILED");
423 if (tracing) env.dtExit("SourceMember.check: DONE " +
433 public Vset check(Environment env, Context ctx, Vset vset) throws ClassNotFound {
434 if (tracing) env.dtEvent("SourceMember.check: MEMBER " +
443 vset = ((SourceClass)nc).checkInsideClass(env, ctx, vset);
448 if (env.dump()) {
455 env = new Environment(env, this);
461 env.resolve(where, getClassDefinition(), getType());
467 env.getClassDeclaration(idJavaLangThrowable);
468 ClassDeclaration exp[] = getExceptions(env);
476 def = exp[i].getClassDefinition(env);
482 env.resolveByName(where, getClassDefinition(), def.getName());
485 env.error(where, "class.not.found", e.name, "throws");
488 def.noteUsedBy(getClassDefinition(), where, env);
490 canAccess(env, def.getClassDeclaration())) {
491 env.error(where, "cant.access.class", def);
492 } else if (!def.subClassOf(env, throwable)) {
493 env.error(where, "throws.not.throwable", def);
510 env.error(lf2.getWhere(), "duplicate.argument",
528 vset.addVar(ctx.declare(env, f));
541 supCall = getDefaultSuperCall(env);
550 ClassDeclaration exp[] = getExceptions(env);
554 vset = s.checkMethod(env, ctx, vset, thrown);
557 env.getClassDeclaration(idJavaLangError);
559 env.getClassDeclaration(idJavaLangRuntimeException);
563 ClassDefinition def = c.getClassDefinition(env);
564 if (def.subClassOf(env, ignore1)
565 || def.subClassOf(env, ignore2)) {
572 if (def.subClassOf(env, exp[i])) {
605 env.error(where, errorMsg, c.getName());
612 vset = val.checkInitializer(env, ctx, vset,
614 setValue(val.convert(env, ctx, getType(), val));
624 env.error(where, "static.inner.field", getName(), this);
633 env.getClassDeclaration(idJavaLangThrowable);
635 env.getClassDeclaration(idJavaLangError);
637 env.getClassDeclaration(idJavaLangRuntimeException);
641 ClassDefinition def = c.getClassDefinition(env);
643 if (!def.subClassOf(env, ignore1)
644 && !def.subClassOf(env, ignore2)
645 && def.subClassOf(env, except)) {
647 env.error(n.getWhere(),
652 if (env.dump()) {
663 env.error(where, "init.no.normal.completion");
671 private Expression getDefaultSuperCall(Environment env) {
679 if (reqc != null && !Context.outerLinkExists(env, reqc, thisc)) {
681 env.error(where, "no.default.outer.arg", reqc, getClassDefinition());
692 void inline(Environment env) throws ClassNotFound {
695 check(env);
696 inline(env);
700 if (env.dump()) {
704 env = new Environment(env, this);
712 ctx.declare(env, local);
714 setValue(s.inline(env, ctx));
722 ((SourceClass)nc).inlineLocalClass(env);
734 ctxInst.declare(env, thisArg);
736 .inlineValue(env, ctxInst));
739 .inlineValue(env, ctx));
743 if (env.dump()) {
760 public Node getValue(Environment env) throws ClassNotFound {
764 env = ((SourceClass)clazz).setupEnv(env);
765 inline(env);
771 public boolean isInlineable(Environment env, boolean fromFinal) throws ClassNotFound {
772 if (super.isInlineable(env, fromFinal)) {
773 getValue(env);
793 public void code(Environment env, Assembler asm) throws ClassNotFound {
796 check(env);
797 code(env, asm);
801 inline(env);
802 code(env, asm);
807 if (env.dump()) {
811 env = new Environment(env, this);
817 ctx.declare(env, f);
818 //ctx.declare(env, (LocalMember)e.nextElement());
825 MemberDefinition field = c.getClassDefinition(env).matchMethod(env, getClassDefinition(), idInit);
834 f.codeInit(env, ctx, asm);
840 s.code(env, ctx, asm);
850 public void codeInit(Environment env, Context ctx, Assembler asm) throws ClassNotFound {
856 check(env);
857 codeInit(env, ctx, asm);
861 inline(env);
862 codeInit(env, ctx, asm);
867 if (env.dump()) {
880 e.codeValue(env, ctx, asm);
889 e.codeValue(env, ctx, asm);