@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 model.ProgramType builder.
|
int |
compareTo(ProgramType other) |
PStructDescriptor<ProgramType,ProgramType._Field> |
descriptor() |
boolean |
equals(Object o) |
Object |
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 |
num(int key) |
int |
numDecl() |
int |
numIncludes() |
int |
numNamespaces() |
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()
public boolean hasProgramName()
@Nonnull public String getProgramName()
public int numIncludes()
public boolean hasIncludes()
public List<String> getIncludes()
include "<program>.thrift"
public int numNamespaces()
public boolean hasNamespaces()
@Nonnull public Map<String,String> getNamespaces()
namespace <key> <value>
public int numDecl()
public boolean hasDecl()
@Nonnull public List<Declaration> getDecl()
public boolean has(int key)
has in interface PMessage<ProgramType,ProgramType._Field>public int num(int key)
num in interface PMessage<ProgramType,ProgramType._Field>public Object 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>public static PStructDescriptorProvider<ProgramType,ProgramType._Field> provider()
public PStructDescriptor<ProgramType,ProgramType._Field> descriptor()
descriptor in interface PMessage<ProgramType,ProgramType._Field>descriptor in interface PValue<ProgramType>public static ProgramType._Builder builder()
Copyright © 2015–2017 morimekta.net. All rights reserved.