| Constructor and Description |
|---|
JMessage(PMessageDescriptor<T,CField> descriptor,
JHelper helper) |
| Modifier and Type | Method and Description |
|---|---|
List<JField> |
declaredOrderFields() |
PMessageDescriptor<T,CField> |
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 |
getDescriptorClass() |
String |
getExceptionMessageFieldName() |
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() |
boolean |
jsonCompactible() |
List<JField> |
numericalOrderFields() |
PMessageVariant |
variant() |
public JMessage(PMessageDescriptor<T,CField> descriptor, JHelper helper)
public PMessageDescriptor<T,CField> descriptor()
public PMessageVariant variant()
public boolean isException()
public boolean isUnion()
public boolean jsonCompactible()
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.Copyright © 2015–2018 morimekta.net. All rights reserved.