return false;
}
public boolean visit(ClassInstanceCreation node) {
IValue expression = node.getExpression() == null ? null : visitChild(node.getExpression());
IValue type = null;
IValueList genericTypes = new IValueList(values);
if (node.getAST().apiLevel() == AST.JLS2) {
type = visitChild(node.getName());
}
else {
type = visitChild(node.getType());
if (!node.typeArguments().isEmpty()) {
for (Iterator it = node.typeArguments().iterator(); it.hasNext();) {
Type t = (Type) it.next();
genericTypes.add(visitChild(t));
}
}
}
IValueList arguments = new IValueList(values);
for (Iterator it = node.arguments().iterator(); it.hasNext();) {
Expression e = (Expression) it.next();
arguments.add(visitChild(e));
}
IValue anonymousClassDeclaration = node.getAnonymousClassDeclaration() == null ? null : visitChild(node.getAnonymousClassDeclaration());
ownValue = constructExpressionNode("newObject", expression, type, arguments.asList(), anonymousClassDeclaration);
setAnnotation("typeParameters", genericTypes);
return false;
}