@Override public boolean matches(final INode other, final Match match) { return other instanceof ParenthesizedExpression && getExpression().matches(((ParenthesizedExpression) other).getExpression(), match); } }
@Override public boolean matches(final INode other, final Match match) { return other instanceof ParenthesizedExpression && getExpression().matches(((ParenthesizedExpression) other).getExpression(), match); } }
@Override public boolean matches(final INode other, final Match match) { return other instanceof ParenthesizedExpression && getExpression().matches(((ParenthesizedExpression) other).getExpression(), match); } }
@Nullable private static Expression removeParentheses(final Expression e) { Expression result = e; while (result instanceof ParenthesizedExpression) { result = ((ParenthesizedExpression) result).getExpression(); } return result; }
@Nullable public static Expression skipParenthesesDown(final Expression e) { Expression result = e; while (result instanceof ParenthesizedExpression) { result = ((ParenthesizedExpression) result).getExpression(); } return result; }
@Override public ResolveResult visitParenthesizedExpression(final ParenthesizedExpression node, final Void data) { return node.getExpression().acceptVisitor(this, data); } }
@Nullable private static Expression removeParentheses(final Expression e) { Expression result = e; while (result instanceof ParenthesizedExpression) { result = ((ParenthesizedExpression) result).getExpression(); } return result; }
@Nullable private static Expression removeParentheses(final Expression e) { Expression result = e; while (result instanceof ParenthesizedExpression) { result = ((ParenthesizedExpression) result).getExpression(); } return result; }
@Nullable public static Expression skipParenthesesDown(final Expression e) { Expression result = e; while (result instanceof ParenthesizedExpression) { result = ((ParenthesizedExpression) result).getExpression(); } return result; }
@Override public ResolveResult visitParenthesizedExpression(final ParenthesizedExpression node, final Void data) { return node.getExpression().acceptVisitor(this, data); } }
@Nullable public static AstNode skipParenthesesDown(final AstNode e) { AstNode result = e; while (result instanceof ParenthesizedExpression) { result = ((ParenthesizedExpression) result).getExpression(); } return result; }
@Nullable public static AstNode skipParenthesesDown(final AstNode e) { AstNode result = e; while (result instanceof ParenthesizedExpression) { result = ((ParenthesizedExpression) result).getExpression(); } return result; }
@Nullable public static Expression skipParenthesesDown(final Expression e) { Expression result = e; while (result instanceof ParenthesizedExpression) { result = ((ParenthesizedExpression) result).getExpression(); } return result; }
@Override public ResolveResult visitParenthesizedExpression(final ParenthesizedExpression node, final Void data) { return node.getExpression().acceptVisitor(this, data); } }
@Nullable public static AstNode skipParenthesesDown(final AstNode e) { AstNode result = e; while (result instanceof ParenthesizedExpression) { result = ((ParenthesizedExpression) result).getExpression(); } return result; }
@Override public DefiniteAssignmentStatus visitParenthesizedExpression(final ParenthesizedExpression node, final DefiniteAssignmentStatus data) { return node.getExpression().acceptVisitor(visitor, data); }
@Override public DefiniteAssignmentStatus visitParenthesizedExpression(final ParenthesizedExpression node, final DefiniteAssignmentStatus data) { return node.getExpression().acceptVisitor(visitor, data); }
@Override public Void visitParenthesizedExpression(final ParenthesizedExpression node, final Void ignored) { startNode(node); leftParenthesis(); space(policy.SpacesWithinParentheses); node.getExpression().acceptVisitor(this, ignored); space(policy.SpacesWithinParentheses); rightParenthesis(); endNode(node); return null; }
@Override public Void visitParenthesizedExpression(final ParenthesizedExpression node, final Void ignored) { startNode(node); leftParenthesis(); space(policy.SpacesWithinParentheses); node.getExpression().acceptVisitor(this, ignored); space(policy.SpacesWithinParentheses); rightParenthesis(); endNode(node); return null; }
@Override public Void visitParenthesizedExpression(final ParenthesizedExpression node, final Void ignored) { startNode(node); leftParenthesis(); space(policy.SpacesWithinParentheses); node.getExpression().acceptVisitor(this, ignored); space(policy.SpacesWithinParentheses); rightParenthesis(); endNode(node); return null; }