Path: blob/master/test/hotspot/jtreg/compiler/lib/ir_framework/Argument.java
64507 views
/*1* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/2223package compiler.lib.ir_framework;2425/**26* Well-defined argument values that can be used in the {@link Arguments} annotation at a {@link Test} method for a27* <b>base test</b> or a <b>checked test</b>.28*29* @see Arguments30* @see Test31* @see Check32*/33public enum Argument {34/**35* Provides the default value for any kind of primitive type and object type if the class provides a default constructor.36*/37DEFAULT,38/**39* Provides the number 42 for any primitive number type.40*/41NUMBER_42,42/**43* Provides the number -42 for any primitive number type.44*/45NUMBER_MINUS_42,46/**47* Provides the minimum value of the specified primitive number type.48*/49MIN,50/**51* Provides the maximum value of the specified primitive number type.52*/53MAX,54/**55* Provides the boolean value false.56*/57FALSE,58/**59* Provides the boolean value true.60*/61TRUE,62/**63* Provides a different boolean value on each test invocation, starting with false.64*/65BOOLEAN_TOGGLE_FIRST_FALSE,66/**67* Provides a different boolean value on each test invocation, starting with true.68*/69BOOLEAN_TOGGLE_FIRST_TRUE,70/**71* Provides a random primitive value on the first test invocation and reuses the same value for all invocation of the test.72* Float and double values are restricted to the range [-10000,10000].73*/74RANDOM_ONCE,75/**76* Provides a different random primitive value on each test invocation.77* Float and double values are restricted to the range [-10000,10000].78*/79RANDOM_EACH,80}818283