Class PStructDescriptor<T extends PMessage<T>>
- java.lang.Object
-
- net.morimekta.providence.descriptor.PDeclaredDescriptor<T>
-
- net.morimekta.providence.descriptor.PMessageDescriptor<T>
-
- net.morimekta.providence.descriptor.PStructDescriptor<T>
-
- All Implemented Interfaces:
java.lang.reflect.Type
,PDescriptor
public abstract class PStructDescriptor<T extends PMessage<T>> extends PMessageDescriptor<T>
The definition of a thrift structure.
-
-
Constructor Summary
Constructors Constructor Description PStructDescriptor(java.lang.String programName, java.lang.String name, java.util.function.Supplier<PMessageBuilder<T>> builderSupplier, boolean simple)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PMessageVariant
getVariant()
-
Methods inherited from class net.morimekta.providence.descriptor.PMessageDescriptor
builder, equals, fieldForId, fieldForName, fieldForPojoName, findFieldById, findFieldByName, findFieldByPojoName, getBuilderSupplier, getFields, getImplementing, getType, hashCode, isSimple
-
Methods inherited from class net.morimekta.providence.descriptor.PDeclaredDescriptor
getDefaultValue, getName, getProgramName, getQualifiedName, getTypeName, isAutoType, isInnerType, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.morimekta.providence.descriptor.PDescriptor
getQualifiedName
-
-
-
-
Constructor Detail
-
PStructDescriptor
public PStructDescriptor(java.lang.String programName, java.lang.String name, java.util.function.Supplier<PMessageBuilder<T>> builderSupplier, boolean simple)
-
-
Method Detail
-
getVariant
@Nonnull public PMessageVariant getVariant()
- Specified by:
getVariant
in classPMessageDescriptor<T extends PMessage<T>>
- Returns:
- The struct variant.
-
-