/cpp/src/main/java/com/google/test/metric/cpp/dom/Visitor.java
Java | 106 lines | 61 code | 30 blank | 15 comment | 0 complexity | 13b9eebd1ad42ad2944f575b64e4b179 MD5 | raw file
1/* 2 * Copyright 2008 Google Inc. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 5 * use this file except in compliance with the License. You may obtain a copy of 6 * the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 * License for the specific language governing permissions and limitations under 14 * the License. 15 */ 16package com.google.test.metric.cpp.dom; 17 18public abstract class Visitor { 19 20 public void beginVisit(FunctionDefinition functionDefinition) { 21 } 22 23 public void endVisit(FunctionDefinition functionDefinition) { 24 } 25 26 public void beginVisit(IfStatement ifStatement) { 27 } 28 29 public void endVisit(IfStatement ifStatement) { 30 } 31 32 public void beginVisit(SwitchStatement switchStatement) { 33 } 34 35 public void endVisit(SwitchStatement switchStatement) { 36 } 37 38 public void beginVisit(CaseStatement caseStatement) { 39 } 40 41 public void endVisit(CaseStatement caseStatement) { 42 } 43 44 public void beginVisit(LoopStatement loopStatement) { 45 } 46 47 public void endVisit(LoopStatement loopStatement) { 48 } 49 50 public void beginVisit(ElseStatement elseStatement) { 51 } 52 53 public void endVisit(ElseStatement elseStatement) { 54 } 55 56 public void beginVisit(DefaultStatement defaultStatement) { 57 } 58 59 public void endVisit(DefaultStatement defaultStatement) { 60 } 61 62 public void visit(BreakStatement breakStatement) { 63 } 64 65 public void beginVisit(ReturnStatement returnStatement) { 66 } 67 68 public void endVisit(ReturnStatement returnStatement) { 69 } 70 71 public void beginVisit(TernaryOperation ternaryOperation) { 72 } 73 74 public void endVisit(TernaryOperation ternaryOperation) { 75 } 76 77 public void beginVisit(ClassDeclaration classDeclaration) { 78 } 79 80 public void endVisit(ClassDeclaration classDeclaration) { 81 } 82 83 public void beginVisit(TranslationUnit translationUnit) { 84 } 85 86 public void endVisit(TranslationUnit translationUnit) { 87 } 88 89 public void visit(VariableDeclaration localVariableDeclaration) { 90 } 91 92 public void visit(AssignmentExpression assignmentExpression) { 93 } 94 95 public void beginVisit(Namespace namespace) { 96 } 97 98 public void endVisit(Namespace namespace) { 99 } 100 101 public void beginVisit(ExpressionStatement expressionStatement) { 102 } 103 104 public void endVisit(ExpressionStatement expressionStatement) { 105 } 106}