@Override public Void visitAnonymousObjectCreationExpression(final AnonymousObjectCreationExpression node, final Void data) { for (final Expression argument : node.getArguments()) { argument.acceptVisitor(this, data); } return null; }
public final TypeDeclaration getTypeDeclaration() { return getChildByRole(Roles.LOCAL_TYPE_DECLARATION); }
@Override public ResolveResult visitAnonymousObjectCreationExpression(final AnonymousObjectCreationExpression node, final Void p) { final ResolveResult result = resolveTypeFromMember(node.getUserData(Keys.MEMBER_REFERENCE)); if (result != null) { return result; } return node.getType().acceptVisitor(this, p); }
@Override public Void visitAnonymousObjectCreationExpression(final AnonymousObjectCreationExpression node, final Void ignored) { startNode(node); final Expression target = node.getTarget(); if (target != null && !target.isNull()) { target.acceptVisitor(this, ignored); writeToken(Roles.DOT); } writeKeyword(ObjectCreationExpression.NEW_KEYWORD_ROLE); node.getType().acceptVisitor(this, ignored); space(policy.SpaceBeforeMethodCallParentheses); writeCommaSeparatedListInParenthesis(node.getArguments(), policy.SpaceWithinMethodCallParentheses); node.getTypeDeclaration().acceptVisitor(new JavaOutputVisitor(output, settings), ignored); endNode(node); return null; }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof AnonymousObjectCreationExpression) { final AnonymousObjectCreationExpression otherExpression = (AnonymousObjectCreationExpression) other; return super.matches(other, match) && getTypeDeclaration().matches(otherExpression.getTypeDeclaration(), match); } return false; } }
@Override public Void visitAnonymousObjectCreationExpression(final AnonymousObjectCreationExpression node, final Void data) { for (final Expression argument : node.getArguments()) { argument.acceptVisitor(this, data); } processCall(node); node.getTypeDeclaration().acceptVisitor(this, data); return null; }
public AnonymousObjectCreationExpression( final int offset, final TypeDeclaration typeDeclaration, final AstType type, final Iterable<Expression> arguments) { super( offset, type, arguments); setTypeDeclaration(typeDeclaration); }
public final void setTypeDeclaration(final TypeDeclaration value) { setChildByRole(Roles.LOCAL_TYPE_DECLARATION, value); }
creation = new AnonymousObjectCreationExpression( byteCode.getOffset(), _astBuilder.createType(resolvedType).clone(),
@Override public Void visitAnonymousObjectCreationExpression(final AnonymousObjectCreationExpression node, final Void ignored) { startNode(node); final Expression target = node.getTarget(); if (target != null && !target.isNull()) { target.acceptVisitor(this, ignored); writeToken(Roles.DOT); } writeKeyword(ObjectCreationExpression.NEW_KEYWORD_ROLE); node.getType().acceptVisitor(this, ignored); space(policy.SpaceBeforeMethodCallParentheses); writeCommaSeparatedListInParenthesis(node.getArguments(), policy.SpaceWithinMethodCallParentheses); node.getTypeDeclaration().acceptVisitor(new JavaOutputVisitor(output, settings), ignored); endNode(node); return null; }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof AnonymousObjectCreationExpression) { final AnonymousObjectCreationExpression otherExpression = (AnonymousObjectCreationExpression) other; return super.matches(other, match) && getTypeDeclaration().matches(otherExpression.getTypeDeclaration(), match); } return false; } }
public AnonymousObjectCreationExpression( int offset, final TypeDeclaration typeDeclaration, final AstType type, final Expression... arguments) { super( offset, type, arguments); setTypeDeclaration(typeDeclaration); }
public final void setTypeDeclaration(final TypeDeclaration value) { setChildByRole(Roles.LOCAL_TYPE_DECLARATION, value); }
creation = new AnonymousObjectCreationExpression( byteCode.getOffset(), _astBuilder.createType(resolvedType).clone(),
@Override public Void visitAnonymousObjectCreationExpression(final AnonymousObjectCreationExpression node, final Void ignored) { startNode(node); final Expression target = node.getTarget(); if (target != null && !target.isNull()) { target.acceptVisitor(this, ignored); writeToken(Roles.DOT); } writeKeyword(ObjectCreationExpression.NEW_KEYWORD_ROLE); node.getType().acceptVisitor(this, ignored); space(policy.SpaceBeforeMethodCallParentheses); writeCommaSeparatedListInParenthesis(node.getArguments(), policy.SpaceWithinMethodCallParentheses); node.getTypeDeclaration().acceptVisitor(new JavaOutputVisitor(output, settings), ignored); endNode(node); return null; }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof AnonymousObjectCreationExpression) { final AnonymousObjectCreationExpression otherExpression = (AnonymousObjectCreationExpression) other; return super.matches(other, match) && getTypeDeclaration().matches(otherExpression.getTypeDeclaration(), match); } return false; } }
@Override public ResolveResult visitAnonymousObjectCreationExpression(final AnonymousObjectCreationExpression node, final Void _) { final ResolveResult result = resolveTypeFromMember(node.getUserData(Keys.MEMBER_REFERENCE)); if (result != null) { return result; } return node.getType().acceptVisitor(this, _); }
@Override public Void visitAnonymousObjectCreationExpression(final AnonymousObjectCreationExpression node, final Void data) { for (final Expression argument : node.getArguments()) { argument.acceptVisitor(this, data); } return null; }
public AnonymousObjectCreationExpression( int offset, final TypeDeclaration typeDeclaration, final AstType type, final Expression... arguments) { super( offset, type, arguments); setTypeDeclaration(typeDeclaration); }
public final TypeDeclaration getTypeDeclaration() { return getChildByRole(Roles.LOCAL_TYPE_DECLARATION); }