void processOutput(OutputContext oc) { assertCond(classLiteralValue != null); int s0 = classLiteralValue.objectSize(); if (s0 != Type.OBJECTARRAY) { oc.cPrint(classLiteralValue.signatureClass().getClassRefStr(s0 > Type.CLASSINTERFACE)); } else { oc.cPrint(md != null ? md.routineCName() : MethodDefinition.UNKNOWN_NAME); Main.dict.normalCalls++; oc.cPrint("("); oc.cPrint(classLiteralValue.signatureClass().getClassRefStr(false)); oc.cPrint(", "); oc.cPrint(Integer.toString(classLiteralValue.signatureDimensions())); oc.cPrint(")"); } }
ExpressionType traceClassInit() { assertCond(classLiteralValue != null); Main.dict.addDynClassToTrace(classLiteralValue.signatureClass()); if (md != null) { md.methodTraceClassInit(false, null, null); } return null; }
void processPass1(Context c) { if (classLiteralValue == null) { terms[0].processPass1(c); ExpressionType exprType0 = terms[0].exprType(); ClassDefinition cd = exprType0.signatureClass(); cd.predefineClass(c.forClass); cd.markUsed(); classLiteralValue = exprType0.signatureDimensions() > 0 ? exprType0 : cd.asExactClassType(); if (exprType0.objectSize() == Type.OBJECTARRAY) { cd = Main.dict.get(Names.JAVA_LANG_VMCLASS); cd.predefineClass(c.forClass); MethodDefinition md = cd.getMethod(Names.SIGN_ARRAYCLASSOF0X); if (md != null && md.isClassMethod()) { md.markUsed(null); this.md = md; } } classLiteralValue.signatureClass().setVTableUsed(false); } }