public class ThriftDocument extends Object implements PMessage<ThriftDocument>, Serializable, Comparable<ThriftDocument>
| Modifier and Type | Class and Description |
|---|---|
static class |
ThriftDocument._Builder |
static class |
ThriftDocument._Field |
| Modifier and Type | Field and Description |
|---|---|
static PStructDescriptor<ThriftDocument,ThriftDocument._Field> |
kDescriptor |
| Constructor and Description |
|---|
ThriftDocument(String pComment,
String pPackage,
List<String> pIncludes,
Map<String,String> pNamespaces,
List<Declaration> pDecl) |
| Modifier and Type | Method and Description |
|---|---|
String |
asString() |
static ThriftDocument._Builder |
builder() |
int |
compareTo(ThriftDocument other) |
PStructDescriptor<ThriftDocument,ThriftDocument._Field> |
descriptor() |
boolean |
equals(Object o) |
Object |
get(int key) |
String |
getComment()
Must come before the first statement of the header.
|
List<Declaration> |
getDecl() |
List<String> |
getIncludes()
include "
|
Map<String,String> |
getNamespaces()
namespace
|
String |
getPackage()
Deducted from filename in .thrift IDL files.
|
boolean |
has(int key) |
boolean |
hasComment() |
int |
hashCode() |
boolean |
hasPackage() |
boolean |
isCompact() |
boolean |
isSimple() |
ThriftDocument._Builder |
mutate() |
int |
num(int key) |
int |
numDecl() |
int |
numIncludes() |
int |
numNamespaces() |
static PStructDescriptorProvider<ThriftDocument,ThriftDocument._Field> |
provider() |
String |
toString() |
public static final PStructDescriptor<ThriftDocument,ThriftDocument._Field> kDescriptor
public boolean hasComment()
public String getComment()
public boolean hasPackage()
public String getPackage()
public int numIncludes()
public int numNamespaces()
public int numDecl()
public List<Declaration> getDecl()
public boolean has(int key)
has in interface PMessage<ThriftDocument>public int num(int key)
num in interface PMessage<ThriftDocument>public Object get(int key)
get in interface PMessage<ThriftDocument>public boolean isCompact()
isCompact in interface PMessage<ThriftDocument>public boolean isSimple()
isSimple in interface PMessage<ThriftDocument>public String asString()
asString in interface PMessage<ThriftDocument>public int compareTo(ThriftDocument other)
compareTo in interface Comparable<ThriftDocument>public static PStructDescriptorProvider<ThriftDocument,ThriftDocument._Field> provider()
public PStructDescriptor<ThriftDocument,ThriftDocument._Field> descriptor()
descriptor in interface PMessage<ThriftDocument>descriptor in interface PValue<ThriftDocument>public ThriftDocument._Builder mutate()
mutate in interface PMessage<ThriftDocument>public static ThriftDocument._Builder builder()
Copyright © 2016. All rights reserved.