@Generated(value="net.morimekta.providence:providence-generator-java", comments="java:serializable") @Immutable public class ProgramType extends Object implements ProgramType_OrBuilder, net.morimekta.providence.PMessage<ProgramType>, Comparable<ProgramType>, Serializable, net.morimekta.providence.serializer.binary.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 net.morimekta.providence.descriptor.PStructDescriptor<ProgramType> |
kDescriptor |
| Modifier and Type | Method and Description |
|---|---|
String |
asString() |
static ProgramType._Builder |
builder()
Make a
p_model.ProgramType builder. |
int |
compareTo(ProgramType other) |
net.morimekta.providence.descriptor.PStructDescriptor<ProgramType> |
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.
|
Map<String,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<Map<String,String>> |
optionalIncludes()
List of included thrift files.
|
Optional<Map<String,String>> |
optionalNamespaces()
Map of language to laguage dependent namespace identifier.
|
static net.morimekta.providence.descriptor.PStructDescriptorProvider<ProgramType> |
provider() |
String |
toString() |
int |
writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer) |
public static final net.morimekta.providence.descriptor.PStructDescriptor<ProgramType> kDescriptor
public boolean hasDocumentation()
hasDocumentation in interface ProgramType_OrBuilderpublic String getDocumentation()
getDocumentation in interface ProgramType_OrBuilderdocumentation value@Nonnull public Optional<String> optionalDocumentation()
optionalDocumentation in interface ProgramType_OrBuilderdocumentation field value.public boolean hasProgramName()
hasProgramName in interface ProgramType_OrBuilder@Nonnull public String getProgramName()
getProgramName in interface ProgramType_OrBuilderprogram_name valuepublic int numIncludes()
numIncludes in interface ProgramType_OrBuilderpublic boolean hasIncludes()
hasIncludes in interface ProgramType_OrBuilderpublic Map<String,String> getIncludes()
include "<program>.thrift"
getIncludes in interface ProgramType_OrBuilderincludes value@Nonnull public Optional<Map<String,String>> optionalIncludes()
include "<program>.thrift"
optionalIncludes in interface ProgramType_OrBuilderincludes field value.public int numNamespaces()
numNamespaces in interface ProgramType_OrBuilderpublic boolean hasNamespaces()
hasNamespaces in interface ProgramType_OrBuilderpublic Map<String,String> getNamespaces()
namespace <key> <value>
getNamespaces in interface ProgramType_OrBuildernamespaces value@Nonnull public Optional<Map<String,String>> optionalNamespaces()
namespace <key> <value>
optionalNamespaces in interface ProgramType_OrBuildernamespaces field value.public int numDecl()
numDecl in interface ProgramType_OrBuilderpublic boolean hasDecl()
hasDecl in interface ProgramType_OrBuilderpublic List<Declaration> getDecl()
getDecl in interface ProgramType_OrBuilderdecl value@Nonnull public Optional<List<Declaration>> optionalDecl()
optionalDecl in interface ProgramType_OrBuilderdecl field value.public boolean has(int key)
has in interface net.morimekta.providence.PMessageOrBuilder<ProgramType>public <T> T get(int key)
get in interface net.morimekta.providence.PMessageOrBuilder<ProgramType>@Nonnull public String asString()
asString in interface net.morimekta.providence.PMessage<ProgramType>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 net.morimekta.providence.serializer.binary.BinaryWriterIOException@Nonnull public ProgramType._Builder mutate()
mutate in interface net.morimekta.providence.PMessage<ProgramType>@Nonnull public static net.morimekta.providence.descriptor.PStructDescriptorProvider<ProgramType> provider()
@Nonnull public net.morimekta.providence.descriptor.PStructDescriptor<ProgramType> descriptor()
descriptor in interface net.morimekta.providence.PMessageOrBuilder<ProgramType>descriptor in interface net.morimekta.providence.PValue<ProgramType>public static ProgramType._Builder builder()
p_model.ProgramType builder.Copyright © 2015–2020 morimekta.net. All rights reserved.