SelectBytecodesCookie.java revision 1472:c18cbe5936b8
185724Sobrien/*
285724Sobrien * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
385724Sobrien * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
485724Sobrien *
585724Sobrien * This code is free software; you can redistribute it and/or modify it
691707Sobrien * under the terms of the GNU General Public License version 2 only, as
785724Sobrien * published by the Free Software Foundation.
885724Sobrien *
985724Sobrien * This code is distributed in the hope that it will be useful, but WITHOUT
1085724Sobrien * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1191760Sobrien * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1291760Sobrien * version 2 for more details (a copy is included in the LICENSE file that
1385724Sobrien * accompanied this code).
1491758Sobrien *
1591758Sobrien * You should have received a copy of the GNU General Public License version
1691758Sobrien * 2 along with this work; if not, write to the Free Software Foundation,
1791758Sobrien * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1885724Sobrien *
1985724Sobrien * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2085724Sobrien * or visit www.oracle.com if you need additional information or have any
2185724Sobrien * questions.
2285724Sobrien *
2385724Sobrien */
2485724Sobrienpackage com.sun.hotspot.igv.bytecodes;
2585724Sobrien
2685724Sobrienimport com.sun.hotspot.igv.data.InputNode;
2785724Sobrienimport java.util.Collections;
2885724Sobrienimport java.util.Set;
2985724Sobrienimport org.openide.nodes.Node;
3085724Sobrien
3185724Sobrien/**
3285724Sobrien *
3385724Sobrien * @author Thomas Wuerthinger
3485724Sobrien */
3591760Sobrienpublic class SelectBytecodesCookie implements Node.Cookie {
3691707Sobrien
3791707Sobrien    private Set<InputNode> nodes;
3891707Sobrien
3985724Sobrien    /** Creates a new instance of SelectBytecodesCookie */
40    public SelectBytecodesCookie(Set<InputNode> nodes) {
41        this.nodes = nodes;
42    }
43
44    public Set<InputNode> getNodes() {
45        return Collections.unmodifiableSet(nodes);
46    }
47}
48