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