@Override public ResolveResult visitObjectCreationExpression(final ObjectCreationExpression node, final Void _) { /* final ResolveResult result = resolveTypeFromMember(node.getUserData(Keys.MEMBER_REFERENCE)); if (result != null) { return result; } */ return node.getType().acceptVisitor(this, _); }
@Override public ResolveResult visitObjectCreationExpression(final ObjectCreationExpression 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 Set<Object> visitComposedType(final ComposedType node, final String name) { return node.getBaseType().acceptVisitor(this, name); }
@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 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, _); }
void writePrivateImplementationType(final AstType privateImplementationType) { if (!privateImplementationType.isNull()) { privateImplementationType.acceptVisitor(this, null); writeToken(Roles.DOT); } }
@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, _); }
void writePrivateImplementationType(final AstType privateImplementationType) { if (!privateImplementationType.isNull()) { privateImplementationType.acceptVisitor(this, null); writeToken(Roles.DOT); } }
@Override public Void visitTypeReference(final TypeReferenceExpression node, final Void ignored) { startNode(node); node.getType().acceptVisitor(this, null); endNode(node); return null; }
@Override public Void visitTypeReference(final TypeReferenceExpression node, final Void ignored) { startNode(node); node.getType().acceptVisitor(this, null); endNode(node); return null; }
@Override public Void visitTypeReference(final TypeReferenceExpression node, final Void ignored) { startNode(node); node.getType().acceptVisitor(this, null); endNode(node); return null; }
@Override public Void visitClassOfExpression(final ClassOfExpression node, final Void ignored) { startNode(node); node.getType().acceptVisitor(this, ignored); writeToken(Roles.DOT); writeKeyword("class", node.getRole()); endNode(node); return null; }
@Override public Void visitClassOfExpression(final ClassOfExpression node, final Void ignored) { startNode(node); node.getType().acceptVisitor(this, ignored); writeToken(Roles.DOT); writeKeyword("class", node.getRole()); endNode(node); return null; }
@Override public Void visitClassOfExpression(final ClassOfExpression node, final Void ignored) { startNode(node); node.getType().acceptVisitor(this, ignored); writeToken(Roles.DOT); writeKeyword("class", node.getRole()); endNode(node); return null; }
@Override public Void visitInstanceOfExpression(final InstanceOfExpression node, final Void ignored) { startNode(node); node.getExpression().acceptVisitor(this, ignored); space(); writeKeyword(InstanceOfExpression.INSTANCE_OF_KEYWORD_ROLE); node.getType().acceptVisitor(this, ignored); endNode(node); return null; }
@Override public Void visitInstanceOfExpression(final InstanceOfExpression node, final Void ignored) { startNode(node); node.getExpression().acceptVisitor(this, ignored); space(); writeKeyword(InstanceOfExpression.INSTANCE_OF_KEYWORD_ROLE); node.getType().acceptVisitor(this, ignored); endNode(node); return null; }
@Override public Void visitInstanceOfExpression(final InstanceOfExpression node, final Void ignored) { startNode(node); node.getExpression().acceptVisitor(this, ignored); space(); writeKeyword(InstanceOfExpression.INSTANCE_OF_KEYWORD_ROLE); node.getType().acceptVisitor(this, ignored); endNode(node); return null; }
private Void writeVariableDeclaration(final VariableDeclarationStatement node, final boolean semicolon) { startNode(node); writeModifiers(node.getChildrenByRole(VariableDeclarationStatement.MODIFIER_ROLE)); node.getType().acceptVisitor(this, null); space(); writeCommaSeparatedList(node.getVariables()); if (semicolon) { semicolon(); } endNode(node); return null; }
private Void writeVariableDeclaration(final VariableDeclarationStatement node, final boolean semicolon) { startNode(node); writeModifiers(node.getChildrenByRole(VariableDeclarationStatement.MODIFIER_ROLE)); node.getType().acceptVisitor(this, null); space(); writeCommaSeparatedList(node.getVariables()); if (semicolon) { semicolon(); } endNode(node); return null; }
@Override public Void visitCastExpression(final CastExpression node, final Void ignored) { startNode(node); leftParenthesis(); space(policy.SpacesWithinCastParentheses); node.getType().acceptVisitor(this, ignored); space(policy.SpacesWithinCastParentheses); rightParenthesis(); space(policy.SpaceAfterTypecast); node.getExpression().acceptVisitor(this, ignored); endNode(node); return null; }