~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTContinueStatement.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2011-10-06 21:15:04 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20111006211504-8dutmljjih0zikfv
Tags: 8.0.1-1
* New upstream release.
* Split the JNI packages into a separate architecture dependent
  package and made eclipse-cdt architecture independent.
* Install JNI libraries into multiarch aware location
* Bumped Standards-Version to 3.9.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*******************************************************************************
 
2
 * Copyright (c) 2004, 2011 IBM Corporation and others.
 
3
 * All rights reserved. This program and the accompanying materials
 
4
 * are made available under the terms of the Eclipse Public License v1.0
 
5
 * which accompanies this distribution, and is available at
 
6
 * http://www.eclipse.org/legal/epl-v10.html
 
7
 *
 
8
 * Contributors:
 
9
 *     IBM - Initial API and implementation
 
10
 *******************************************************************************/
 
11
package org.eclipse.cdt.internal.core.dom.parser.cpp;
 
12
 
 
13
import org.eclipse.cdt.core.dom.ast.ASTVisitor;
 
14
import org.eclipse.cdt.core.dom.ast.IASTContinueStatement;
 
15
import org.eclipse.cdt.internal.core.dom.parser.ASTNode;
 
16
 
 
17
/**
 
18
 * @author jcamelon
 
19
 */
 
20
public class CPPASTContinueStatement extends ASTNode implements IASTContinueStatement {
 
21
 
 
22
    @Override
 
23
        public boolean accept(ASTVisitor action) {
 
24
        if (action.shouldVisitStatements) {
 
25
                    switch (action.visit(this)) {
 
26
                    case ASTVisitor.PROCESS_ABORT: return false;
 
27
                    case ASTVisitor.PROCESS_SKIP: return true;
 
28
                    default: break;
 
29
                }
 
30
                }
 
31
        if (action.shouldVisitStatements) {
 
32
                    switch (action.leave(this)) {
 
33
                    case ASTVisitor.PROCESS_ABORT: return false;
 
34
                    case ASTVisitor.PROCESS_SKIP: return true;
 
35
                    default: break;
 
36
                }
 
37
                }
 
38
        return true;
 
39
    }
 
40
    
 
41
    public CPPASTContinueStatement copy() {
 
42
                return copy(CopyStyle.withoutLocations);
 
43
        }
 
44
 
 
45
        public CPPASTContinueStatement copy(CopyStyle style) {
 
46
                CPPASTContinueStatement copy = new CPPASTContinueStatement();
 
47
                copy.setOffsetAndLength(this);
 
48
                if (style == CopyStyle.withLocations) {
 
49
                        copy.setCopyLocation(this);
 
50
                }
 
51
                return copy;
 
52
        }
 
53
}