MultipleNodeCounter.java revision 286
0N/A * DO NOT REMOVE OR ALTER! 0N/A * Copyright 2001-2004 The Apache Software Foundation. 0N/A * Licensed under the Apache License, Version 2.0 (the "License"); 2362N/A * you may not use this file except in compliance with the License. 0N/A * You may obtain a copy of the License at 0N/A * Unless required by applicable law or agreed to in writing, software 0N/A * distributed under the License is distributed on an "AS IS" BASIS, 0N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0N/A * See the License for the specific language governing permissions and 0N/A * limitations under the License. 0N/A * @author Jacek Ambroziak 0N/A * @author Santiago Pericas-Geertsen // Gather all ancestors that do not match from pattern // Create an array of counters // Increment array of counters according to semantics for (
int j =
0, i =
nAncestors -
1; i >=
0 ; i--, j++) {