@* * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html *@ @import org.opendaylight.mdsal.binding2.util.BindingMapping.MEMBER_PATTERN_LIST @import org.opendaylight.mdsal.binding2.util.BindingMapping.PATTERN_CONSTANT_NAME @(patterName: String) static { final @{patterName} a[] = new @{patterName}[@{PATTERN_CONSTANT_NAME}.size()]; int i = 0; for (String regEx : @{PATTERN_CONSTANT_NAME}) { a[i++] = Pattern.compile(regEx); } @{MEMBER_PATTERN_LIST} = a; }