| Constructor and Description |
|---|
JMessage(PMessageDescriptor<T,CField> descriptor,
JHelper helper) |
| Modifier and Type | Method and Description |
|---|---|
List<JField> |
declaredOrderFields() |
PMessageDescriptor<?,?> |
descriptor() |
String |
exceptionBaseClass() |
Optional<JField> |
exceptionMessageField()
If the message has a 'string' field named 'message', which can be used as the 'message' for exceptions.
|
String |
extraImplements() |
String |
getAnnotationValue(String annotation)
Get the annotation value.
|
String |
getAnnotationValue(ThriftAnnotation annotation)
Get the annotation value.
|
String |
getDescriptorClass() |
String |
getProviderClass() |
boolean |
hasAnnotation(String annotation)
Check if the annotation is present.
|
boolean |
hasAnnotation(ThriftAnnotation annotation)
Check if the annotation is present.
|
String |
instanceType()
The short class name of the message.
|
boolean |
isException() |
boolean |
isUnion() |
List<JField> |
numericalOrderFields() |
PMessageVariant |
variant() |
public JMessage(PMessageDescriptor<T,CField> descriptor, JHelper helper)
public PMessageDescriptor<?,?> descriptor()
public PMessageVariant variant()
public boolean isException()
public boolean isUnion()
public String instanceType()
public String getDescriptorClass() throws GeneratorException
GeneratorExceptionpublic String getProviderClass() throws GeneratorException
GeneratorExceptionpublic String extraImplements()
public String exceptionBaseClass()
public Optional<JField> exceptionMessageField()
public boolean hasAnnotation(ThriftAnnotation annotation)
annotation - The annotation to check.public boolean hasAnnotation(String annotation)
annotation - The annotation to check.public String getAnnotationValue(ThriftAnnotation annotation)
annotation - The annotation to get.Copyright © 2015–2017 morimekta.net. All rights reserved.