936N/A/*
936N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
936N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
936N/A *
936N/A * This code is free software; you can redistribute it and/or modify it
936N/A * under the terms of the GNU General Public License version 2 only, as
936N/A * published by the Free Software Foundation.
936N/A *
936N/A * This code is distributed in the hope that it will be useful, but WITHOUT
936N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
936N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
936N/A * version 2 for more details (a copy is included in the LICENSE file that
936N/A * accompanied this code).
936N/A *
936N/A * You should have received a copy of the GNU General Public License version
936N/A * 2 along with this work; if not, write to the Free Software Foundation,
936N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
936N/A *
936N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
936N/A * or visit www.oracle.com if you need additional information or have any
936N/A * questions.
936N/A */
936N/A
936N/Apackage p;
936N/A
936N/Apublic class NestedExamples {
936N/A static class MemberClass1 { }
936N/A
936N/A class MemberClass2 { }
936N/A
936N/A class Win$$AtVegas { } // Class with funny name.
936N/A
936N/A public Class<?>[] getClasses() {
936N/A class LocalClass { }
936N/A
936N/A Object o = new Object() { // An anonymous class
936N/A @Override
936N/A public String toString() {
936N/A return "I have no name!";
936N/A }
936N/A };
936N/A
936N/A return new Class<?>[] {
936N/A NestedExamples.class,
936N/A MemberClass1.class,
936N/A MemberClass2.class,
936N/A Win$$AtVegas.class,
936N/A LocalClass.class,
936N/A o.getClass()
936N/A };
936N/A }
936N/A
936N/A public String[] getClassNames() {
936N/A return new String[] {
936N/A "p.NestedExamples",
936N/A "p.NestedExamples.MemberClass1",
936N/A "p.NestedExamples.MemberClass2",
936N/A "p.NestedExamples.Win$$AtVegas"
936N/A };
936N/A }
936N/A}
936N/A
936N/A