1 /* 2 * Copyright 1999,2004 The Apache Software Foundation. Licensed under the 3 * Apache License, Version 2.0 (the "License"); you may not use this file 4 * except in compliance with the License. You may obtain a copy of the License 5 * at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable 6 * law or agreed to in writing, software distributed under the License is 7 * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 * KIND, either express or implied. See the License for the specific language 9 * governing permissions and limitations under the License. 10 */ 11 package org.apache.catalina.ssi; 12 13 14 /** 15 * This class is used by SSIMediator and SSIConditional to keep track of state 16 * information necessary to process the nested conditional commands ( if, elif, 17 * else, endif ). 18 * 19 * @version $Revision: 467222 $ 20 * @author Dan Sandberg 21 * @author Paul Speed 22 */ 23 class SSIConditionalState { 24 /** 25 * Set to true if the current conditional has already been completed, i.e.: 26 * a branch was taken. 27 */ 28 boolean branchTaken = false; 29 /** 30 * Counts the number of nested false branches. 31 */ 32 int nestingCount = 0; 33 /** 34 * Set to true if only conditional commands ( if, elif, else, endif ) 35 * should be processed. 36 */ 37 boolean processConditionalCommandsOnly = false; 38 }