LexicalContextStatement.java revision 1068:34ef988d5959
1183651Sjhay/*
2183651Sjhay * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
3183651Sjhay * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4183651Sjhay *
5183651Sjhay * This code is free software; you can redistribute it and/or modify it
6183651Sjhay * under the terms of the GNU General Public License version 2 only, as
7183651Sjhay * published by the Free Software Foundation.  Oracle designates this
8183651Sjhay * particular file as subject to the "Classpath" exception as provided
9183651Sjhay * by Oracle in the LICENSE file that accompanied this code.
10183651Sjhay *
11183651Sjhay * This code is distributed in the hope that it will be useful, but WITHOUT
12183651Sjhay * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13183651Sjhay * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14183651Sjhay * version 2 for more details (a copy is included in the LICENSE file that
15183651Sjhay * accompanied this code).
16183651Sjhay *
17183651Sjhay * You should have received a copy of the GNU General Public License version
18183651Sjhay * 2 along with this work; if not, write to the Free Software Foundation,
19183651Sjhay * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20183651Sjhay *
21183651Sjhay * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22183651Sjhay * or visit www.oracle.com if you need additional information or have any
23183651Sjhay * questions.
24183651Sjhay */
25183651Sjhay
26183651Sjhaypackage jdk.nashorn.internal.ir;
27183651Sjhay
28183651Sjhayimport jdk.nashorn.internal.ir.visitor.NodeVisitor;
29183651Sjhay
30183651Sjhayabstract class LexicalContextStatement extends Statement implements LexicalContextNode {
31183651Sjhay    private static final long serialVersionUID = 1L;
32183651Sjhay
33183651Sjhay    /**
34183651Sjhay     * Constructor
35183651Sjhay     *
36183651Sjhay     * @param lineNumber line number
37183651Sjhay     * @param token      token
38183651Sjhay     * @param finish     finish
39183651Sjhay     */
40183651Sjhay    protected LexicalContextStatement(final int lineNumber, final long token, final int finish) {
41183651Sjhay        super(lineNumber, token, finish);
42183651Sjhay    }
43183651Sjhay
44183651Sjhay    /**
45183651Sjhay     * Copy constructor
46183651Sjhay     *
47183651Sjhay     * @param node source node
48183651Sjhay     */
49183651Sjhay    protected LexicalContextStatement(final LexicalContextStatement node) {
50183651Sjhay        super(node);
51183651Sjhay    }
52183651Sjhay
53183651Sjhay    @Override
54183651Sjhay    public Node accept(final NodeVisitor<? extends LexicalContext> visitor) {
55183651Sjhay        return Acceptor.accept(this, visitor);
56183651Sjhay    }
57183651Sjhay}
58183651Sjhay