public enum ConstraintTarget extends Enum<ConstraintTarget>
列挙型定数と説明 |
---|
IMPLICIT
Discover the type when no ambiguity is present
if neither on a method nor a constructor, it implies the annotated element
(type, field etc),
if on a method or constructor with no parameter, it implies
RETURN_VALUE ,
if on a method with no return value (void ), it implies
PARAMETERS . |
PARAMETERS
Constraint applies to the parameters of a method or a constructor
|
RETURN_VALUE
Constraint applies to the return value of a method or a constructor.
|
修飾子とタイプ | メソッドと説明 |
---|---|
static ConstraintTarget |
valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static ConstraintTarget[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
public static final ConstraintTarget IMPLICIT
RETURN_VALUE
,void
), it implies
PARAMETERS
.IMPLICIT
is not accepted and either RETURN_VALUE
or
PARAMETERS
is required. This is the case for constructors with parameters
and methods with parameters and return value.public static final ConstraintTarget RETURN_VALUE
public static final ConstraintTarget PARAMETERS
public static ConstraintTarget[] values()
for(ConstraintTarget c: ConstraintTarget.values()) System.out.println(c);
public static ConstraintTarget valueOf(String name)
name
- 返される列挙型定数の名前。IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合NullPointerException
- 引数がnullの場合Copyright © 2007-2018 Red Hat Inc. All Rights Reserved. Released under the Apache Software License 2.0. Translated by @megascus.