public class ExampleAnnotation extends Object implements Example
Example
annotation.
Constructor and Description |
---|
ExampleAnnotation(Class<?> on)
Constructor.
|
ExampleAnnotation(Field on)
Constructor.
|
ExampleAnnotation(Method on)
Constructor.
|
ExampleAnnotation(String on)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Class<? extends Annotation> |
annotationType() |
String |
on() |
ExampleAnnotation |
on(Class<?> value)
Sets the
|
ExampleAnnotation |
on(Field value)
Sets the
|
ExampleAnnotation |
on(Method value)
Sets the
|
ExampleAnnotation |
on(String value)
Sets the
|
String |
value() |
ExampleAnnotation |
value(String value)
Sets the
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, toString
public ExampleAnnotation(String on)
on
- The initial value for the Example.on()
public ExampleAnnotation(Class<?> on)
on
- The initial value for the Example.on()
public ExampleAnnotation(Method on)
on
- The initial value for the Example.on()
public ExampleAnnotation(Field on)
on
- The initial value for the Example.on()
public Class<? extends Annotation> annotationType()
annotationType
in interface Annotation
public ExampleAnnotation on(String value)
value
- The new value for this property.public ExampleAnnotation on(Field value)
value
- The new value for this property.public ExampleAnnotation on(Method value)
value
- The new value for this property.public ExampleAnnotation on(Class<?> value)
value
- The new value for this property.public ExampleAnnotation value(String value)
value
- The new value for this property.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.