src/jdk/nashorn/internal/runtime/regexp/joni/encoding/ObjPtr.java

Fri, 22 Feb 2013 17:00:22 +0100

author
hannesw
date
Fri, 22 Feb 2013 17:00:22 +0100
changeset 115
e42fd1640ff9
child 273
98798a6336de
permissions
-rw-r--r--

8006028: Integrate Joni regexp engine with Nashorn
Reviewed-by: lagergren, attila

hannesw@115 1 /*
hannesw@115 2 * Permission is hereby granted, free of charge, to any person obtaining a copy of
hannesw@115 3 * this software and associated documentation files (the "Software"), to deal in
hannesw@115 4 * the Software without restriction, including without limitation the rights to
hannesw@115 5 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
hannesw@115 6 * of the Software, and to permit persons to whom the Software is furnished to do
hannesw@115 7 * so, subject to the following conditions:
hannesw@115 8 *
hannesw@115 9 * The above copyright notice and this permission notice shall be included in all
hannesw@115 10 * copies or substantial portions of the Software.
hannesw@115 11 *
hannesw@115 12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
hannesw@115 13 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
hannesw@115 14 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
hannesw@115 15 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
hannesw@115 16 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
hannesw@115 17 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
hannesw@115 18 * SOFTWARE.
hannesw@115 19 */
hannesw@115 20 package jdk.nashorn.internal.runtime.regexp.joni.encoding;
hannesw@115 21
hannesw@115 22 public final class ObjPtr<T> {
hannesw@115 23 public ObjPtr() {
hannesw@115 24 this(null);
hannesw@115 25 }
hannesw@115 26
hannesw@115 27 public ObjPtr(T p) {
hannesw@115 28 this.p = p;
hannesw@115 29 }
hannesw@115 30
hannesw@115 31 public T p;
hannesw@115 32
hannesw@115 33 static final ObjPtr<Void> NULL = new ObjPtr<Void>();
hannesw@115 34 }
hannesw@115 35

mercurial