[Java] Annotation Type NamedParam
- groovy.transform.NamedParam
@Retention(RetentionPolicy.RUNTIME) @Target(ElementType.PARAMETER) @Repeatable(NamedParams.class) public @interface NamedParam
Marker interface used to indicate that the name of the annotated parameter (or specified optional name) is a valid key name when using named arguments and that the parameter type is applicable for type checking purposes.
- Since:
- 2.5.0
Element Summary
Type | Name and Description |
---|---|
boolean |
required
|
Class |
type
|
String |
value
|
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Element Detail
public boolean required
- Default:
- false
public Class type
- Default:
- Object.class
public String value
- Default:
- Undefined.STRING
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/groovy/transform/NamedParam.html