@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); }