public abstract class PDeclaredDescriptor<T> extends Object implements PDescriptor
| Modifier | Constructor and Description |
|---|---|
protected |
PDeclaredDescriptor(String programName,
String name) |
| Modifier and Type | Method and Description |
|---|---|
abstract PBuilder<T> |
builder()
Get the builder for the given declared type.
|
T |
getDefaultValue() |
String |
getName()
The name of the type is the Identifier string from the IDL.
|
String |
getProgramName()
The package name is derived form the .thrift file name that is parsed or
if read from serialized format is explicit.
|
String |
getQualifiedName(String programContext)
This will return the qualified name of the type given the program context.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetQualifiedName, getType@Nonnull public final String getProgramName()
PDescriptorgetProgramName in interface PDescriptor@Nonnull public final String getName()
PDescriptorgetName in interface PDescriptor@Nonnull public final String getQualifiedName(String programContext)
PDescriptorgetQualifiedName in interface PDescriptorprogramContext - The program which the type should be referenced from.@Nullable public T getDefaultValue()
getDefaultValue in interface PDescriptorCopyright © 2015–2018 morimekta.net. All rights reserved.