LexicalContextExpression.java revision 1068:34ef988d5959
128328Ssos/*
228328Ssos * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
328328Ssos * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
428328Ssos *
528328Ssos * This code is free software; you can redistribute it and/or modify it
628328Ssos * under the terms of the GNU General Public License version 2 only, as
728328Ssos * published by the Free Software Foundation.  Oracle designates this
828328Ssos * particular file as subject to the "Classpath" exception as provided
928328Ssos * by Oracle in the LICENSE file that accompanied this code.
1028328Ssos *
1128328Ssos * This code is distributed in the hope that it will be useful, but WITHOUT
1228328Ssos * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1328328Ssos * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1428328Ssos * version 2 for more details (a copy is included in the LICENSE file that
1528328Ssos * accompanied this code).
1628328Ssos *
1728328Ssos * You should have received a copy of the GNU General Public License version
1828328Ssos * 2 along with this work; if not, write to the Free Software Foundation,
1928328Ssos * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2028328Ssos *
2128328Ssos * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2228328Ssos * or visit www.oracle.com if you need additional information or have any
2328328Ssos * questions.
2428328Ssos */
2528328Ssos
2628328Ssospackage jdk.nashorn.internal.ir;
2728328Ssos
2850476Speterimport jdk.nashorn.internal.ir.visitor.NodeVisitor;
2928328Ssos
3028328Ssosabstract class LexicalContextExpression extends Expression implements LexicalContextNode {
3128328Ssos    private static final long serialVersionUID = 1L;
3228328Ssos
3353013Syokota    LexicalContextExpression(final LexicalContextExpression expr) {
3428328Ssos        super(expr);
3528328Ssos    }
3653013Syokota
3753013Syokota    LexicalContextExpression(final long token, final int start, final int finish) {
3828328Ssos        super(token, start, finish);
3928328Ssos    }
4028328Ssos
4128328Ssos    LexicalContextExpression(final long token, final int finish) {
4228328Ssos        super(token, finish);
4328328Ssos    }
4428328Ssos
4528328Ssos    @Override
4628328Ssos    public Node accept(final NodeVisitor<? extends LexicalContext> visitor) {
4728328Ssos        return Acceptor.accept(this, visitor);
4853013Syokota    }
4928328Ssos}
5028328Ssos