Where.java revision 1643:133ea8746b37
1238438Sdteske/*
2238438Sdteske * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
3238438Sdteske * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4263980Sdteske *
5238438Sdteske * This code is free software; you can redistribute it and/or modify it
6238438Sdteske * under the terms of the GNU General Public License version 2 only, as
7238438Sdteske * published by the Free Software Foundation.  Oracle designates this
8238438Sdteske * particular file as subject to the "Classpath" exception as provided
9238438Sdteske * by Oracle in the LICENSE file that accompanied this code.
10238438Sdteske *
11238438Sdteske * This code is distributed in the hope that it will be useful, but WITHOUT
12238438Sdteske * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13238438Sdteske * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14238438Sdteske * version 2 for more details (a copy is included in the LICENSE file that
15238438Sdteske * accompanied this code).
16238438Sdteske *
17238438Sdteske * You should have received a copy of the GNU General Public License version
18238438Sdteske * 2 along with this work; if not, write to the Free Software Foundation,
19238438Sdteske * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20238438Sdteske *
21238438Sdteske * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22238438Sdteske * or visit www.oracle.com if you need additional information or have any
23238438Sdteske * questions.
24238438Sdteske */
25238438Sdteske
26238438Sdteskepackage jdk.nashorn.internal.tools.nasgen;
27238438Sdteske
28238438Sdteske/**
29238438Sdteske * Enum to tell where a Function or Property belongs.
30238438Sdteske * Note: keep this in sync. with jdk.nashorn.internal.objects.annotations.Where.
31238438Sdteske */
32240684Sdteskepublic enum Where {
33240684Sdteske    /** this means that the item belongs in the Constructor of an object */
34244675Sdteske    CONSTRUCTOR,
35240684Sdteske    /** this means that the item belongs in the Prototype of an object */
36240684Sdteske    PROTOTYPE,
37263980Sdteske    /** this means that the item belongs in the Instance of an object */
38240684Sdteske    INSTANCE
39238438Sdteske}
40240684Sdteske