public static class ConstType._Builder extends PMessageBuilder<ConstType,ConstType._Field> implements BinaryReader
| Constructor and Description |
|---|
_Builder()
Make a model.ConstType builder.
|
_Builder(ConstType base)
Make a mutating builder off a base model.ConstType.
|
| Modifier and Type | Method and Description |
|---|---|
ConstType._Builder |
addTo(int key,
Object value) |
ConstType |
build() |
ConstType._Builder |
clear(int key) |
ConstType._Builder |
clearAnnotations()
Clears the annotations field.
|
ConstType._Builder |
clearDocumentation()
Clears the documentation field.
|
ConstType._Builder |
clearName()
Clears the name field.
|
ConstType._Builder |
clearStartLineNo()
Note the start of the const in the parsed thrift file, this can be used
for making more accurate exception / parse data from the const parser.
|
ConstType._Builder |
clearStartLinePos()
Clears the start_line_pos field.
|
ConstType._Builder |
clearType()
Clears the type field.
|
ConstType._Builder |
clearValue()
Clears the value field.
|
PStructDescriptor<ConstType,ConstType._Field> |
descriptor() |
boolean |
equals(Object o) |
String |
getDocumentation()
Gets the value of the contained documentation.
|
String |
getName()
Gets the value of the contained name.
|
int |
getStartLineNo()
Note the start of the const in the parsed thrift file, this can be used
for making more accurate exception / parse data from the const parser.
|
int |
getStartLinePos()
Gets the value of the contained start_line_pos.
|
String |
getType()
Gets the value of the contained type.
|
String |
getValue()
Gets the value of the contained value.
|
int |
hashCode() |
boolean |
isModified(int key) |
boolean |
isModifiedAnnotations()
Checks if annotations has been modified since the _Builder was created.
|
boolean |
isModifiedDocumentation()
Checks if documentation has been modified since the _Builder was created.
|
boolean |
isModifiedName()
Checks if name has been modified since the _Builder was created.
|
boolean |
isModifiedStartLineNo()
Note the start of the const in the parsed thrift file, this can be used
for making more accurate exception / parse data from the const parser.
|
boolean |
isModifiedStartLinePos()
Checks if start_line_pos has been modified since the _Builder was created.
|
boolean |
isModifiedType()
Checks if type has been modified since the _Builder was created.
|
boolean |
isModifiedValue()
Checks if value has been modified since the _Builder was created.
|
boolean |
isSet(int key) |
boolean |
isSetAnnotations()
Checks for presence of the annotations field.
|
boolean |
isSetDocumentation()
Checks for presence of the documentation field.
|
boolean |
isSetName()
Checks for presence of the name field.
|
boolean |
isSetStartLineNo()
Note the start of the const in the parsed thrift file, this can be used
for making more accurate exception / parse data from the const parser.
|
boolean |
isSetStartLinePos()
Checks for presence of the start_line_pos field.
|
boolean |
isSetType()
Checks for presence of the type field.
|
boolean |
isSetValue()
Checks for presence of the value field.
|
ConstType._Builder |
merge(ConstType from) |
Map<String,String> |
mutableAnnotations()
Gets the builder for the contained annotations.
|
PMessageBuilder |
mutator(int key) |
ConstType._Builder |
putInAnnotations(String key,
String value)
Adds a mapping to annotations.
|
void |
readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict) |
ConstType._Builder |
set(int key,
Object value) |
ConstType._Builder |
setAnnotations(Map<String,String> value)
Sets the value of annotations.
|
ConstType._Builder |
setDocumentation(String value)
Sets the value of documentation.
|
ConstType._Builder |
setName(String value)
Sets the value of name.
|
ConstType._Builder |
setStartLineNo(int value)
Note the start of the const in the parsed thrift file, this can be used
for making more accurate exception / parse data from the const parser.
|
ConstType._Builder |
setStartLinePos(int value)
Sets the value of start_line_pos.
|
ConstType._Builder |
setType(String value)
Sets the value of type.
|
ConstType._Builder |
setValue(String value)
Sets the value of value.
|
boolean |
valid() |
void |
validate() |
addTo, clear, isModified, isSet, modifiedFields, mutator, presentFields, setpublic _Builder()
public _Builder(ConstType base)
base - The base ConstType@Nonnull public ConstType._Builder merge(ConstType from)
merge in class PMessageBuilder<ConstType,ConstType._Field>@Nonnull public ConstType._Builder setDocumentation(String value)
value - The new valuepublic boolean isSetDocumentation()
public boolean isModifiedDocumentation()
@Nonnull public ConstType._Builder clearDocumentation()
public String getDocumentation()
@Nonnull public ConstType._Builder setType(String value)
value - The new valuepublic boolean isSetType()
public boolean isModifiedType()
@Nonnull public ConstType._Builder clearType()
public String getType()
@Nonnull public ConstType._Builder setName(String value)
value - The new valuepublic boolean isSetName()
public boolean isModifiedName()
@Nonnull public ConstType._Builder clearName()
public String getName()
@Nonnull public ConstType._Builder setValue(String value)
value - The new valuepublic boolean isSetValue()
public boolean isModifiedValue()
@Nonnull public ConstType._Builder clearValue()
public String getValue()
@Nonnull public ConstType._Builder setAnnotations(Map<String,String> value)
value - The new value@Nonnull public ConstType._Builder putInAnnotations(String key, String value)
key - The inserted keyvalue - The inserted valuepublic boolean isSetAnnotations()
public boolean isModifiedAnnotations()
@Nonnull public ConstType._Builder clearAnnotations()
@Nonnull public Map<String,String> mutableAnnotations()
@Nonnull public ConstType._Builder setStartLineNo(int value)
value - The new valuepublic boolean isSetStartLineNo()
public boolean isModifiedStartLineNo()
@Nonnull public ConstType._Builder clearStartLineNo()
public int getStartLineNo()
@Nonnull public ConstType._Builder setStartLinePos(int value)
value - The new valuepublic boolean isSetStartLinePos()
public boolean isModifiedStartLinePos()
@Nonnull public ConstType._Builder clearStartLinePos()
public int getStartLinePos()
public PMessageBuilder mutator(int key)
mutator in class PMessageBuilder<ConstType,ConstType._Field>@Nonnull public ConstType._Builder set(int key, Object value)
set in class PMessageBuilder<ConstType,ConstType._Field>public boolean isSet(int key)
isSet in class PMessageBuilder<ConstType,ConstType._Field>public boolean isModified(int key)
isModified in class PMessageBuilder<ConstType,ConstType._Field>public ConstType._Builder addTo(int key, Object value)
addTo in class PMessageBuilder<ConstType,ConstType._Field>@Nonnull public ConstType._Builder clear(int key)
clear in class PMessageBuilder<ConstType,ConstType._Field>public boolean valid()
valid in class PMessageBuilder<ConstType,ConstType._Field>public void validate()
validate in class PMessageBuilder<ConstType,ConstType._Field>@Nonnull public PStructDescriptor<ConstType,ConstType._Field> descriptor()
descriptor in class PMessageBuilder<ConstType,ConstType._Field>public void readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict)
throws IOException
readBinary in interface BinaryReaderIOExceptionCopyright © 2015–2017 morimekta.net. All rights reserved.