public static class ProgramType._Builder extends PMessageBuilder<ProgramType,ProgramType._Field> implements BinaryReader
| Constructor and Description |
|---|
_Builder()
Make a model.ProgramType builder.
|
_Builder(ProgramType base)
Make a mutating builder off a base model.ProgramType.
|
| Modifier and Type | Method and Description |
|---|---|
ProgramType._Builder |
addTo(int key,
Object value) |
ProgramType._Builder |
addToDecl(Declaration... values)
List of declarations in the program file.
|
ProgramType._Builder |
addToIncludes(String... values)
List of included thrift files.
|
ProgramType |
build() |
ProgramType._Builder |
clear(int key) |
ProgramType._Builder |
clearDecl()
List of declarations in the program file.
|
ProgramType._Builder |
clearDocumentation()
Program documentation must come before the first statement of the header.
|
ProgramType._Builder |
clearIncludes()
List of included thrift files.
|
ProgramType._Builder |
clearNamespaces()
Map of language to laguage dependent namespace identifier.
|
ProgramType._Builder |
clearProgramName()
The program name, deducted from the .thrift IDL file name.
|
PStructDescriptor<ProgramType,ProgramType._Field> |
descriptor() |
boolean |
equals(Object o) |
String |
getDocumentation()
Program documentation must come before the first statement of the header.
|
String |
getProgramName()
The program name, deducted from the .thrift IDL file name.
|
int |
hashCode() |
boolean |
isModified(int key) |
boolean |
isModifiedDecl()
List of declarations in the program file.
|
boolean |
isModifiedDocumentation()
Program documentation must come before the first statement of the header.
|
boolean |
isModifiedIncludes()
List of included thrift files.
|
boolean |
isModifiedNamespaces()
Map of language to laguage dependent namespace identifier.
|
boolean |
isModifiedProgramName()
The program name, deducted from the .thrift IDL file name.
|
boolean |
isSet(int key) |
boolean |
isSetDecl()
List of declarations in the program file.
|
boolean |
isSetDocumentation()
Program documentation must come before the first statement of the header.
|
boolean |
isSetIncludes()
List of included thrift files.
|
boolean |
isSetNamespaces()
Map of language to laguage dependent namespace identifier.
|
boolean |
isSetProgramName()
The program name, deducted from the .thrift IDL file name.
|
ProgramType._Builder |
merge(ProgramType from) |
List<Declaration> |
mutableDecl()
List of declarations in the program file.
|
List<String> |
mutableIncludes()
List of included thrift files.
|
Map<String,String> |
mutableNamespaces()
Map of language to laguage dependent namespace identifier.
|
PMessageBuilder |
mutator(int key) |
ProgramType._Builder |
putInNamespaces(String key,
String value)
Map of language to laguage dependent namespace identifier.
|
void |
readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict) |
ProgramType._Builder |
set(int key,
Object value) |
ProgramType._Builder |
setDecl(Collection<Declaration> value)
List of declarations in the program file.
|
ProgramType._Builder |
setDocumentation(String value)
Program documentation must come before the first statement of the header.
|
ProgramType._Builder |
setIncludes(Collection<String> value)
List of included thrift files.
|
ProgramType._Builder |
setNamespaces(Map<String,String> value)
Map of language to laguage dependent namespace identifier.
|
ProgramType._Builder |
setProgramName(String value)
The program name, deducted from the .thrift IDL file name.
|
boolean |
valid() |
void |
validate() |
addTo, clear, isModified, isSet, modifiedFields, mutator, presentFields, setpublic _Builder()
public _Builder(ProgramType base)
base - The base ProgramType@Nonnull public ProgramType._Builder merge(ProgramType from)
merge in class PMessageBuilder<ProgramType,ProgramType._Field>@Nonnull public ProgramType._Builder setDocumentation(String value)
value - The new valuepublic boolean isSetDocumentation()
public boolean isModifiedDocumentation()
@Nonnull public ProgramType._Builder clearDocumentation()
public String getDocumentation()
@Nonnull public ProgramType._Builder setProgramName(String value)
value - The new valuepublic boolean isSetProgramName()
public boolean isModifiedProgramName()
@Nonnull public ProgramType._Builder clearProgramName()
public String getProgramName()
@Nonnull public ProgramType._Builder setIncludes(Collection<String> value)
include "<program>.thrift"
value - The new value@Nonnull public ProgramType._Builder addToIncludes(String... values)
include "<program>.thrift"
values - The added valuepublic boolean isSetIncludes()
include "<program>.thrift"
public boolean isModifiedIncludes()
include "<program>.thrift"
@Nonnull public ProgramType._Builder clearIncludes()
include "<program>.thrift"
@Nonnull public List<String> mutableIncludes()
include "<program>.thrift"
@Nonnull public ProgramType._Builder setNamespaces(Map<String,String> value)
namespace <key> <value>
value - The new value@Nonnull public ProgramType._Builder putInNamespaces(String key, String value)
namespace <key> <value>
key - The inserted keyvalue - The inserted valuepublic boolean isSetNamespaces()
namespace <key> <value>
public boolean isModifiedNamespaces()
namespace <key> <value>
@Nonnull public ProgramType._Builder clearNamespaces()
namespace <key> <value>
@Nonnull public Map<String,String> mutableNamespaces()
namespace <key> <value>
@Nonnull public ProgramType._Builder setDecl(Collection<Declaration> value)
value - The new value@Nonnull public ProgramType._Builder addToDecl(Declaration... values)
values - The added valuepublic boolean isSetDecl()
public boolean isModifiedDecl()
@Nonnull public ProgramType._Builder clearDecl()
@Nonnull public List<Declaration> mutableDecl()
public PMessageBuilder mutator(int key)
mutator in class PMessageBuilder<ProgramType,ProgramType._Field>@Nonnull public ProgramType._Builder set(int key, Object value)
set in class PMessageBuilder<ProgramType,ProgramType._Field>public boolean isSet(int key)
isSet in class PMessageBuilder<ProgramType,ProgramType._Field>public boolean isModified(int key)
isModified in class PMessageBuilder<ProgramType,ProgramType._Field>public ProgramType._Builder addTo(int key, Object value)
addTo in class PMessageBuilder<ProgramType,ProgramType._Field>@Nonnull public ProgramType._Builder clear(int key)
clear in class PMessageBuilder<ProgramType,ProgramType._Field>public boolean valid()
valid in class PMessageBuilder<ProgramType,ProgramType._Field>public void validate()
validate in class PMessageBuilder<ProgramType,ProgramType._Field>@Nonnull public PStructDescriptor<ProgramType,ProgramType._Field> descriptor()
descriptor in class PMessageBuilder<ProgramType,ProgramType._Field>public void readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict)
throws IOException
readBinary in interface BinaryReaderIOExceptionpublic ProgramType build()
build in interface PBuilder<ProgramType>Copyright © 2015–2017 morimekta.net. All rights reserved.