OptEnvironment.java revision 953:221a84ef44c0
1193880Syongari/* 2193880Syongari * Permission is hereby granted, free of charge, to any person obtaining a copy of 3193880Syongari * this software and associated documentation files (the "Software"), to deal in 4193880Syongari * the Software without restriction, including without limitation the rights to 5193880Syongari * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 6193880Syongari * of the Software, and to permit persons to whom the Software is furnished to do 7193880Syongari * so, subject to the following conditions: 8193880Syongari * 9193880Syongari * The above copyright notice and this permission notice shall be included in all 10193880Syongari * copies or substantial portions of the Software. 11193880Syongari * 12193880Syongari * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 13193880Syongari * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 14193880Syongari * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 15193880Syongari * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 16193880Syongari * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 17193880Syongari * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 18193880Syongari * SOFTWARE. 19193880Syongari */ 20193880Syongaripackage jdk.nashorn.internal.runtime.regexp.joni; 21193880Syongari 22193880Syongari// remove this one in future and pass mmd directly 23193880Syongarifinal class OptEnvironment { 24193880Syongari final MinMaxLen mmd = new MinMaxLen(); 25193880Syongari int options; 26193880Syongari int caseFoldFlag; 27193880Syongari ScanEnvironment scanEnv; 28211105Syongari 29193880Syongari void copy(final OptEnvironment other) { 30193880Syongari mmd.copy(other.mmd); 31193880Syongari options = other.options; 32193880Syongari caseFoldFlag = other.caseFoldFlag; 33193880Syongari scanEnv = other.scanEnv; 34193880Syongari } 35193880Syongari} 36193880Syongari