@Generated(value="providence-maven-plugin") @Immutable public class ProgramType extends Object implements PMessage<ProgramType,ProgramType._Field>, Comparable<ProgramType>, Serializable, BinaryWriter
| Modifier and Type | Class and Description |
|---|---|
static class |
ProgramType._Builder
<namespace>* <include>* <declataion>*
|
static class |
ProgramType._Field |
| Modifier and Type | Field and Description |
|---|---|
static PStructDescriptor<ProgramType,ProgramType._Field> |
kDescriptor |
| Modifier and Type | Method and Description |
|---|---|
String |
asString() |
static ProgramType._Builder |
builder()
Make a
pmodel.ProgramType builder. |
int |
compareTo(ProgramType other) |
PStructDescriptor<ProgramType,ProgramType._Field> |
descriptor() |
boolean |
equals(Object o) |
<T> T |
get(int key) |
List<Declaration> |
getDecl()
List of declarations in the program file.
|
String |
getDocumentation()
Program documentation must come before the first statement of the header.
|
List<String> |
getIncludes()
List of included thrift files.
|
Map<String,String> |
getNamespaces()
Map of language to laguage dependent namespace identifier.
|
String |
getProgramName()
The program name, deducted from the .thrift IDL file name.
|
boolean |
has(int key) |
boolean |
hasDecl() |
boolean |
hasDocumentation() |
int |
hashCode() |
boolean |
hasIncludes() |
boolean |
hasNamespaces() |
boolean |
hasProgramName() |
ProgramType._Builder |
mutate() |
int |
numDecl() |
int |
numIncludes() |
int |
numNamespaces() |
Optional<List<Declaration>> |
optionalDecl()
List of declarations in the program file.
|
Optional<String> |
optionalDocumentation()
Program documentation must come before the first statement of the header.
|
Optional<List<String>> |
optionalIncludes()
List of included thrift files.
|
Optional<Map<String,String>> |
optionalNamespaces()
Map of language to laguage dependent namespace identifier.
|
static PStructDescriptorProvider<ProgramType,ProgramType._Field> |
provider() |
String |
toString() |
int |
writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer) |
public static final PStructDescriptor<ProgramType,ProgramType._Field> kDescriptor
public boolean hasDocumentation()
public String getDocumentation()
documentation value@Nonnull public Optional<String> optionalDocumentation()
documentation field value.public boolean hasProgramName()
@Nonnull public String getProgramName()
program_name valuepublic int numIncludes()
public boolean hasIncludes()
public List<String> getIncludes()
include "<program>.thrift"
includes value@Nonnull public Optional<List<String>> optionalIncludes()
include "<program>.thrift"
includes field value.public int numNamespaces()
public boolean hasNamespaces()
public Map<String,String> getNamespaces()
namespace <key> <value>
namespaces value@Nonnull public Optional<Map<String,String>> optionalNamespaces()
namespace <key> <value>
namespaces field value.public int numDecl()
public boolean hasDecl()
public List<Declaration> getDecl()
decl value@Nonnull public Optional<List<Declaration>> optionalDecl()
decl field value.public boolean has(int key)
has in interface PMessage<ProgramType,ProgramType._Field>public <T> T get(int key)
get in interface PMessage<ProgramType,ProgramType._Field>@Nonnull public String asString()
asString in interface PMessage<ProgramType,ProgramType._Field>asString in interface net.morimekta.util.Stringablepublic int compareTo(ProgramType other)
compareTo in interface Comparable<ProgramType>public int writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer)
throws IOException
writeBinary in interface BinaryWriterIOException@Nonnull public ProgramType._Builder mutate()
mutate in interface PMessage<ProgramType,ProgramType._Field>@Nonnull public static PStructDescriptorProvider<ProgramType,ProgramType._Field> provider()
@Nonnull public PStructDescriptor<ProgramType,ProgramType._Field> descriptor()
descriptor in interface PMessage<ProgramType,ProgramType._Field>descriptor in interface PValue<ProgramType>public static ProgramType._Builder builder()
pmodel.ProgramType builder.Copyright © 2015–2018 morimekta.net. All rights reserved.