3412N/A/*
3412N/A * Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved.
3412N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3412N/A *
3412N/A * This code is free software; you can redistribute it and/or modify it
3412N/A * under the terms of the GNU General Public License version 2 only, as
3412N/A * published by the Free Software Foundation. Oracle designates this
3412N/A * particular file as subject to the "Classpath" exception as provided
3412N/A * by Oracle in the LICENSE file that accompanied this code.
3412N/A *
3412N/A * This code is distributed in the hope that it will be useful, but WITHOUT
3412N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3412N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3412N/A * version 2 for more details (a copy is included in the LICENSE file that
3412N/A * accompanied this code).
3412N/A *
3412N/A * You should have received a copy of the GNU General Public License version
3412N/A * 2 along with this work; if not, write to the Free Software Foundation,
3412N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3412N/A *
3412N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3412N/A * or visit www.oracle.com if you need additional information or have any
3412N/A * questions.
3412N/A */
3412N/A
3412N/Apackage java.lang;
3412N/A
3412N/A/**
3412N/A * A collection of assertion status directives (such as "enable assertions
3412N/A * in package p" or "disable assertions in class c"). This class is used by
3412N/A * the JVM to communicate the assertion status directives implied by
3412N/A * the <tt>java</tt> command line flags <tt>-enableassertions</tt>
3412N/A * (<tt>-ea</tt>) and <tt>-disableassertions</tt> (<tt>-da</tt>).
3412N/A *
3412N/A * @since 1.4
3412N/A * @author Josh Bloch
3412N/A */
3412N/Aclass AssertionStatusDirectives {
3412N/A /**
3412N/A * The classes for which assertions are to be enabled or disabled.
3412N/A * The strings in this array are fully qualified class names (for
3412N/A * example,"com.xyz.foo.Bar").
3412N/A */
3412N/A String[] classes;
3412N/A
3412N/A /**
3412N/A * A parallel array to <tt>classes</tt>, indicating whether each class
3412N/A * is to have assertions enabled or disabled. A value of <tt>true</tt>
3412N/A * for <tt>classEnabled[i]</tt> indicates that the class named by
3412N/A * <tt>classes[i]</tt> should have assertions enabled; a value of
3412N/A * <tt>false</tt> indicates that it should have classes disabled.
3412N/A * This array must have the same number of elements as <tt>classes</tt>.
3412N/A *
3412N/A * <p>In the case of conflicting directives for the same class, the
3412N/A * last directive for a given class wins. In other words, if a string
3412N/A * <tt>s</tt> appears multiple times in the <tt>classes</tt> array
3412N/A * and <tt>i</tt> is the highest integer for which
3412N/A * <tt>classes[i].equals(s)</tt>, then <tt>classEnabled[i]</tt>
3412N/A * indicates whether assertions are to be enabled in class <tt>s</tt>.
3412N/A */
3412N/A boolean[] classEnabled;
3412N/A
3412N/A /**
3412N/A * The package-trees for which assertions are to be enabled or disabled.
3412N/A * The strings in this array are compete or partial package names
3412N/A * (for example, "com.xyz" or "com.xyz.foo").
3412N/A */
3412N/A String[] packages;
3412N/A
3412N/A /**
3412N/A * A parallel array to <tt>packages</tt>, indicating whether each
3412N/A * package-tree is to have assertions enabled or disabled. A value of
3412N/A * <tt>true</tt> for <tt>packageEnabled[i]</tt> indicates that the
3412N/A * package-tree named by <tt>packages[i]</tt> should have assertions
3412N/A * enabled; a value of <tt>false</tt> indicates that it should have
3412N/A * assertions disabled. This array must have the same number of
3412N/A * elements as <tt>packages</tt>.
3412N/A *
3412N/A * In the case of conflicting directives for the same package-tree, the
3412N/A * last directive for a given package-tree wins. In other words, if a
3412N/A * string <tt>s</tt> appears multiple times in the <tt>packages</tt> array
3412N/A * and <tt>i</tt> is the highest integer for which
3412N/A * <tt>packages[i].equals(s)</tt>, then <tt>packageEnabled[i]</tt>
3412N/A * indicates whether assertions are to be enabled in package-tree
3412N/A * <tt>s</tt>.
3412N/A */
3412N/A boolean[] packageEnabled;
3412N/A
3412N/A /**
3412N/A * Whether or not assertions in non-system classes are to be enabled
3412N/A * by default.
3412N/A */
3412N/A boolean deflt;
3412N/A}
3412N/A