public static class Declaration._Builder extends PMessageBuilder<Declaration,Declaration._Field> implements BinaryReader
| Constructor and Description |
|---|
_Builder()
Make a model.Declaration builder.
|
_Builder(Declaration base)
Make a mutating builder off a base model.Declaration.
|
| Modifier and Type | Method and Description |
|---|---|
Declaration._Builder |
addTo(int key,
Object value) |
Declaration |
build() |
Declaration._Builder |
clear(int key) |
Declaration._Builder |
clearDeclConst()
Clears the decl_const field.
|
Declaration._Builder |
clearDeclEnum()
Clears the decl_enum field.
|
Declaration._Builder |
clearDeclService()
Clears the decl_service field.
|
Declaration._Builder |
clearDeclStruct()
Clears the decl_struct field.
|
Declaration._Builder |
clearDeclTypedef()
Clears the decl_typedef field.
|
PUnionDescriptor<Declaration,Declaration._Field> |
descriptor() |
boolean |
equals(Object o) |
ConstType |
getDeclConst()
Gets the value for the contained decl_const.
|
EnumType |
getDeclEnum()
Gets the value for the contained decl_enum.
|
ServiceType |
getDeclService()
Gets the value for the contained decl_service.
|
MessageType |
getDeclStruct()
Gets the value for the contained decl_struct.
|
TypedefType |
getDeclTypedef()
Gets the value for the contained decl_typedef.
|
int |
hashCode() |
boolean |
isModified(int key) |
boolean |
isSet(int key) |
boolean |
isSetDeclConst()
Checks for presence of the decl_const field.
|
boolean |
isSetDeclEnum()
Checks for presence of the decl_enum field.
|
boolean |
isSetDeclService()
Checks for presence of the decl_service field.
|
boolean |
isSetDeclStruct()
Checks for presence of the decl_struct field.
|
boolean |
isSetDeclTypedef()
Checks for presence of the decl_typedef field.
|
boolean |
isUnionModified()
Checks if Declaration has been modified since the _Builder was created.
|
Declaration._Builder |
merge(Declaration from) |
ConstType._Builder |
mutableDeclConst()
Gets the builder for the contained decl_const.
|
EnumType._Builder |
mutableDeclEnum()
Gets the builder for the contained decl_enum.
|
ServiceType._Builder |
mutableDeclService()
Gets the builder for the contained decl_service.
|
MessageType._Builder |
mutableDeclStruct()
Gets the builder for the contained decl_struct.
|
TypedefType._Builder |
mutableDeclTypedef()
Gets the builder for the contained decl_typedef.
|
PMessageBuilder |
mutator(int key) |
void |
readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict) |
Declaration._Builder |
set(int key,
Object value) |
Declaration._Builder |
setDeclConst(ConstType._Builder builder)
Sets the value of decl_const.
|
Declaration._Builder |
setDeclConst(ConstType value)
Sets the value of decl_const.
|
Declaration._Builder |
setDeclEnum(EnumType._Builder builder)
Sets the value of decl_enum.
|
Declaration._Builder |
setDeclEnum(EnumType value)
Sets the value of decl_enum.
|
Declaration._Builder |
setDeclService(ServiceType._Builder builder)
Sets the value of decl_service.
|
Declaration._Builder |
setDeclService(ServiceType value)
Sets the value of decl_service.
|
Declaration._Builder |
setDeclStruct(MessageType._Builder builder)
Sets the value of decl_struct.
|
Declaration._Builder |
setDeclStruct(MessageType value)
Sets the value of decl_struct.
|
Declaration._Builder |
setDeclTypedef(TypedefType._Builder builder)
Sets the value of decl_typedef.
|
Declaration._Builder |
setDeclTypedef(TypedefType value)
Sets the value of decl_typedef.
|
boolean |
valid() |
void |
validate() |
addTo, clear, isModified, isSet, modifiedFields, mutator, presentFields, setpublic _Builder()
public _Builder(Declaration base)
base - The base Declaration@Nonnull public Declaration._Builder merge(Declaration from)
merge in class PMessageBuilder<Declaration,Declaration._Field>@Nonnull public Declaration._Builder setDeclEnum(EnumType value)
value - The new value@Nonnull public Declaration._Builder setDeclEnum(EnumType._Builder builder)
builder - builder for the new valuepublic boolean isSetDeclEnum()
@Nonnull public Declaration._Builder clearDeclEnum()
@Nonnull public EnumType._Builder mutableDeclEnum()
public EnumType getDeclEnum()
@Nonnull public Declaration._Builder setDeclTypedef(TypedefType value)
value - The new value@Nonnull public Declaration._Builder setDeclTypedef(TypedefType._Builder builder)
builder - builder for the new valuepublic boolean isSetDeclTypedef()
@Nonnull public Declaration._Builder clearDeclTypedef()
@Nonnull public TypedefType._Builder mutableDeclTypedef()
public TypedefType getDeclTypedef()
@Nonnull public Declaration._Builder setDeclStruct(MessageType value)
value - The new value@Nonnull public Declaration._Builder setDeclStruct(MessageType._Builder builder)
builder - builder for the new valuepublic boolean isSetDeclStruct()
@Nonnull public Declaration._Builder clearDeclStruct()
@Nonnull public MessageType._Builder mutableDeclStruct()
public MessageType getDeclStruct()
@Nonnull public Declaration._Builder setDeclService(ServiceType value)
value - The new value@Nonnull public Declaration._Builder setDeclService(ServiceType._Builder builder)
builder - builder for the new valuepublic boolean isSetDeclService()
@Nonnull public Declaration._Builder clearDeclService()
@Nonnull public ServiceType._Builder mutableDeclService()
public ServiceType getDeclService()
@Nonnull public Declaration._Builder setDeclConst(ConstType value)
value - The new value@Nonnull public Declaration._Builder setDeclConst(ConstType._Builder builder)
builder - builder for the new valuepublic boolean isSetDeclConst()
@Nonnull public Declaration._Builder clearDeclConst()
@Nonnull public ConstType._Builder mutableDeclConst()
public ConstType getDeclConst()
public boolean isUnionModified()
public PMessageBuilder mutator(int key)
mutator in class PMessageBuilder<Declaration,Declaration._Field>@Nonnull public Declaration._Builder set(int key, Object value)
set in class PMessageBuilder<Declaration,Declaration._Field>public boolean isSet(int key)
isSet in class PMessageBuilder<Declaration,Declaration._Field>public boolean isModified(int key)
isModified in class PMessageBuilder<Declaration,Declaration._Field>public Declaration._Builder addTo(int key, Object value)
addTo in class PMessageBuilder<Declaration,Declaration._Field>@Nonnull public Declaration._Builder clear(int key)
clear in class PMessageBuilder<Declaration,Declaration._Field>public boolean valid()
valid in class PMessageBuilder<Declaration,Declaration._Field>public void validate()
validate in class PMessageBuilder<Declaration,Declaration._Field>@Nonnull public PUnionDescriptor<Declaration,Declaration._Field> descriptor()
descriptor in class PMessageBuilder<Declaration,Declaration._Field>public void readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict)
throws IOException
readBinary in interface BinaryReaderIOExceptionpublic Declaration build()
build in interface PBuilder<Declaration>Copyright © 2015–2018 morimekta.net. All rights reserved.