private JField createSyntheticField(SyntheticArgumentBinding arg, JDeclaredType enclosingType, Disposition disposition) { JType type = typeMap.get(arg.type); SourceInfo info = enclosingType.getSourceInfo(); JField field = new JField(info, intern(arg.name), enclosingType, type, false, disposition); enclosingType.addField(field); curClass.syntheticFields.put(arg, field); if (arg.matchingField != null) { typeMap.setField(arg.matchingField, field); } return field; }
arg = new JClassLiteral(type.getSourceInfo(), type);
private void createMembers(TypeDeclaration x) { SourceTypeBinding binding = x.binding; JDeclaredType type = (JDeclaredType) typeMap.get(binding); SourceInfo info = type.getSourceInfo(); try { StringBuffer sb = new StringBuffer(); x.printHeader(0, sb); ice.addNode(x.getClass().getName(), sb.toString(), type.getSourceInfo()); throw ice;
StringBuffer sb = new StringBuffer(); x.printHeader(0, sb); ice.addNode(x.getClass().getName(), sb.toString(), type.getSourceInfo()); throw ice;
final JMethod clinitMethod = clinit.getMethods().get(0); assert (JProgram.isClinit(clinitMethod)); final JMethodCall doClinit = new JMethodCall(clinit.getSourceInfo(), null, clinitMethod); body.getBlock().addStmt(doClinit.makeStatement());