JCTree.JCClassDecl classBody = newClass.getClassBody(); analyzeParsedTree(context, classBody);
JCNewClass init = (JCNewClass) vd.init; fillList(init.getArguments(), ec.rawArguments()); if (init.getClassBody() != null) { NormalTypeBody constantBody = setPos(init, new NormalTypeBody()); fillList(init.getClassBody().getMembers(), constantBody.rawMembers()); ec.astBody(constantBody);
JCNewClass init = (JCNewClass) vd.init; fillList(init.getArguments(), ec.rawArguments()); if (init.getClassBody() != null) { NormalTypeBody constantBody = setPos(init, new NormalTypeBody()); fillList(init.getClassBody().getMembers(), constantBody.rawMembers()); ec.astBody(constantBody);
JCNewClass init = (JCNewClass) vd.init; fillList(init.getArguments(), ec.rawArguments()); if (init.getClassBody() != null) { NormalTypeBody constantBody = setPos(init, new NormalTypeBody()); fillList(init.getClassBody().getMembers(), constantBody.rawMembers()); ec.astBody(constantBody);
@Override public void visitNewClass(JCNewClass node) { ConstructorInvocation inv = new ConstructorInvocation(); fillList(node.getArguments(), inv.rawArguments()); fillList(node.getTypeArguments(), inv.rawConstructorTypeArguments(), FlagKey.TYPE_REFERENCE); inv.rawTypeReference(toTree(node.getIdentifier(), FlagKey.TYPE_REFERENCE)); inv.rawQualifier(toTree(node.getEnclosingExpression())); Node n = toTree(node.getClassBody()); if (n instanceof TypeDeclaration) { NormalTypeBody body = ((ClassDeclaration) n).astBody(); if (body != null) body.unparent(); inv.rawAnonymousClassBody(setPos(node.getClassBody(), body)); } set(node, inv); }
@Override public void visitNewClass(JCNewClass node) { ConstructorInvocation inv = new ConstructorInvocation(); fillList(node.getArguments(), inv.rawArguments()); fillList(node.getTypeArguments(), inv.rawConstructorTypeArguments(), FlagKey.TYPE_REFERENCE); inv.rawTypeReference(toTree(node.getIdentifier(), FlagKey.TYPE_REFERENCE)); inv.rawQualifier(toTree(node.getEnclosingExpression())); Node n = toTree(node.getClassBody()); if (n instanceof TypeDeclaration) { NormalTypeBody body = ((ClassDeclaration) n).astBody(); if (body != null) body.unparent(); inv.rawAnonymousClassBody(setPos(node.getClassBody(), body)); } set(node, inv); }
@Override public void visitNewClass(JCNewClass node) { ConstructorInvocation inv = new ConstructorInvocation(); fillList(node.getArguments(), inv.rawArguments()); fillList(node.getTypeArguments(), inv.rawConstructorTypeArguments(), FlagKey.TYPE_REFERENCE); inv.rawTypeReference(toTree(node.getIdentifier(), FlagKey.TYPE_REFERENCE)); inv.rawQualifier(toTree(node.getEnclosingExpression())); Node n = toTree(node.getClassBody()); if (n instanceof TypeDeclaration) { NormalTypeBody body = ((ClassDeclaration) n).astBody(); if (body != null) body.unparent(); inv.rawAnonymousClassBody(setPos(node.getClassBody(), body)); } set(node, inv); }