public static class FunctionType._Builder extends PMessageBuilder<FunctionType,FunctionType._Field> implements BinaryReader
| Constructor and Description |
|---|
_Builder()
Make a pmodel.FunctionType builder instance.
|
_Builder(FunctionType base)
Make a mutating builder off a base pmodel.FunctionType.
|
| Modifier and Type | Method and Description |
|---|---|
FunctionType._Builder |
addTo(int key,
Object value) |
FunctionType._Builder |
addToExceptions(FieldType... values)
Adds entries to the
exceptions list. |
FunctionType._Builder |
addToParams(FieldType... values)
Adds entries to the
params list. |
FunctionType |
build() |
FunctionType._Builder |
clear(int key) |
FunctionType._Builder |
clearAnnotations()
Clear the
annotations field. |
FunctionType._Builder |
clearDocumentation()
Clear the
documentation field. |
FunctionType._Builder |
clearEndPos()
Clear the
end_pos field. |
FunctionType._Builder |
clearExceptions()
Clear the
exceptions field. |
FunctionType._Builder |
clearName()
Clear the
name field. |
FunctionType._Builder |
clearOneWay()
Clear the
one_way field. |
FunctionType._Builder |
clearParams()
Clear the
params field. |
FunctionType._Builder |
clearReturnType()
Clear the
return_type field. |
FunctionType._Builder |
clearStartPos()
Clear the
start_pos field. |
PStructDescriptor<FunctionType,FunctionType._Field> |
descriptor() |
boolean |
equals(Object o) |
String |
getDocumentation() |
FilePos |
getEndPos()
The end of the definition
|
String |
getName() |
boolean |
getOneWay() |
String |
getReturnType() |
FilePos |
getStartPos()
The start of the definition (position of return type)
|
int |
hashCode() |
boolean |
isModified(int key) |
boolean |
isModifiedAnnotations()
Checks if the
annotations field has been modified since the
builder was created. |
boolean |
isModifiedDocumentation()
Checks if the
documentation field has been modified since the
builder was created. |
boolean |
isModifiedEndPos()
Checks if the
end_pos field has been modified since the
builder was created. |
boolean |
isModifiedExceptions()
Checks if the
exceptions field has been modified since the
builder was created. |
boolean |
isModifiedName()
Checks if the
name field has been modified since the
builder was created. |
boolean |
isModifiedOneWay()
Checks if the
one_way field has been modified since the
builder was created. |
boolean |
isModifiedParams()
Checks if the
params field has been modified since the
builder was created. |
boolean |
isModifiedReturnType()
Checks if the
return_type field has been modified since the
builder was created. |
boolean |
isModifiedStartPos()
Checks if the
start_pos field 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 |
isSetEndPos()
Checks for presence of the
end_pos field. |
boolean |
isSetExceptions()
Checks for presence of the
exceptions field. |
boolean |
isSetName()
Checks for presence of the
name field. |
boolean |
isSetOneWay()
Checks for presence of the
one_way field. |
boolean |
isSetParams()
Checks for presence of the
params field. |
boolean |
isSetReturnType()
Checks for presence of the
return_type field. |
boolean |
isSetStartPos()
Checks for presence of the
start_pos field. |
FunctionType._Builder |
merge(FunctionType from) |
Map<String,String> |
mutableAnnotations()
Get the builder for the contained
annotations message field. |
FilePos._Builder |
mutableEndPos()
Get the builder for the contained
end_pos message field. |
List<FieldType> |
mutableExceptions()
Get the builder for the contained
exceptions message field. |
List<FieldType> |
mutableParams()
Get the builder for the contained
params message field. |
FilePos._Builder |
mutableStartPos()
Get the builder for the contained
start_pos message field. |
PMessageBuilder |
mutator(int key) |
FunctionType._Builder |
putInAnnotations(String key,
String value)
Adds a mapping to the
annotations map. |
void |
readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict) |
FunctionType._Builder |
set(int key,
Object value) |
FunctionType._Builder |
setAnnotations(Map<String,String> value)
Set the
annotations field value. |
FunctionType._Builder |
setDocumentation(String value)
Set the
documentation field value. |
FunctionType._Builder |
setEndPos(FilePos._Builder builder)
Set the
end_pos field value. |
FunctionType._Builder |
setEndPos(FilePos value)
Set the
end_pos field value. |
FunctionType._Builder |
setExceptions(Collection<FieldType> value)
Set the
exceptions field value. |
FunctionType._Builder |
setName(String value)
Set the
name field value. |
FunctionType._Builder |
setOneWay(boolean value)
Set the
one_way field value. |
FunctionType._Builder |
setParams(Collection<FieldType> value)
Set the
params field value. |
FunctionType._Builder |
setReturnType(String value)
Set the
return_type field value. |
FunctionType._Builder |
setStartPos(FilePos._Builder builder)
Set the
start_pos field value. |
FunctionType._Builder |
setStartPos(FilePos value)
Set the
start_pos field value. |
boolean |
valid() |
void |
validate() |
addTo, clear, isModified, isSet, modifiedFields, mutator, presentFields, setpublic _Builder()
public _Builder(FunctionType base)
base - The base FunctionType@Nonnull public FunctionType._Builder merge(FunctionType from)
merge in class PMessageBuilder<FunctionType,FunctionType._Field>@Nonnull public FunctionType._Builder setDocumentation(String value)
documentation field value.value - The new valuepublic boolean isSetDocumentation()
documentation field.public boolean isModifiedDocumentation()
documentation field has been modified since the
builder was created.@Nonnull public FunctionType._Builder clearDocumentation()
documentation field.public String getDocumentation()
documentation field value@Nonnull public FunctionType._Builder setOneWay(boolean value)
one_way field value.value - The new valuepublic boolean isSetOneWay()
one_way field.public boolean isModifiedOneWay()
one_way field has been modified since the
builder was created.@Nonnull public FunctionType._Builder clearOneWay()
one_way field.public boolean getOneWay()
one_way field value@Nonnull public FunctionType._Builder setReturnType(String value)
return_type field value.value - The new valuepublic boolean isSetReturnType()
return_type field.public boolean isModifiedReturnType()
return_type field has been modified since the
builder was created.@Nonnull public FunctionType._Builder clearReturnType()
return_type field.public String getReturnType()
return_type field value@Nonnull public FunctionType._Builder setName(String value)
name field value.value - The new valuepublic boolean isSetName()
name field.public boolean isModifiedName()
name field has been modified since the
builder was created.@Nonnull public FunctionType._Builder clearName()
name field.public String getName()
name field value@Nonnull public FunctionType._Builder setParams(Collection<FieldType> value)
params field value.value - The new value@Nonnull public FunctionType._Builder addToParams(FieldType... values)
params list.values - The added valuepublic boolean isSetParams()
params field.public boolean isModifiedParams()
params field has been modified since the
builder was created.@Nonnull public FunctionType._Builder clearParams()
params field.@Nonnull public List<FieldType> mutableParams()
params message field.@Nonnull public FunctionType._Builder setExceptions(Collection<FieldType> value)
exceptions field value.value - The new value@Nonnull public FunctionType._Builder addToExceptions(FieldType... values)
exceptions list.values - The added valuepublic boolean isSetExceptions()
exceptions field.public boolean isModifiedExceptions()
exceptions field has been modified since the
builder was created.@Nonnull public FunctionType._Builder clearExceptions()
exceptions field.@Nonnull public List<FieldType> mutableExceptions()
exceptions message field.@Nonnull public FunctionType._Builder setAnnotations(Map<String,String> value)
annotations field value.value - The new value@Nonnull public FunctionType._Builder putInAnnotations(String key, String value)
annotations map.key - The inserted keyvalue - The inserted valuepublic boolean isSetAnnotations()
annotations field.public boolean isModifiedAnnotations()
annotations field has been modified since the
builder was created.@Nonnull public FunctionType._Builder clearAnnotations()
annotations field.@Nonnull public Map<String,String> mutableAnnotations()
annotations message field.@Nonnull public FunctionType._Builder setStartPos(FilePos value)
start_pos field value.
The start of the definition (position of return type)
value - The new value@Nonnull public FunctionType._Builder setStartPos(FilePos._Builder builder)
start_pos field value.
The start of the definition (position of return type)
builder - builder for the new valuepublic boolean isSetStartPos()
start_pos field.public boolean isModifiedStartPos()
start_pos field has been modified since the
builder was created.@Nonnull public FunctionType._Builder clearStartPos()
start_pos field.@Nonnull public FilePos._Builder mutableStartPos()
start_pos message field.
The start of the definition (position of return type)
public FilePos getStartPos()
@Nonnull public FunctionType._Builder setEndPos(FilePos value)
end_pos field value.
The end of the definition
value - The new value@Nonnull public FunctionType._Builder setEndPos(FilePos._Builder builder)
end_pos field value.
The end of the definition
builder - builder for the new valuepublic boolean isSetEndPos()
end_pos field.public boolean isModifiedEndPos()
end_pos field has been modified since the
builder was created.@Nonnull public FunctionType._Builder clearEndPos()
end_pos field.@Nonnull public FilePos._Builder mutableEndPos()
end_pos message field.
The end of the definition
public FilePos getEndPos()
public PMessageBuilder mutator(int key)
mutator in class PMessageBuilder<FunctionType,FunctionType._Field>@Nonnull public FunctionType._Builder set(int key, Object value)
set in class PMessageBuilder<FunctionType,FunctionType._Field>public boolean isSet(int key)
isSet in class PMessageBuilder<FunctionType,FunctionType._Field>public boolean isModified(int key)
isModified in class PMessageBuilder<FunctionType,FunctionType._Field>public FunctionType._Builder addTo(int key, Object value)
addTo in class PMessageBuilder<FunctionType,FunctionType._Field>@Nonnull public FunctionType._Builder clear(int key)
clear in class PMessageBuilder<FunctionType,FunctionType._Field>public boolean valid()
valid in class PMessageBuilder<FunctionType,FunctionType._Field>public void validate()
validate in class PMessageBuilder<FunctionType,FunctionType._Field>@Nonnull public PStructDescriptor<FunctionType,FunctionType._Field> descriptor()
descriptor in class PMessageBuilder<FunctionType,FunctionType._Field>public void readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict)
throws IOException
readBinary in interface BinaryReaderIOExceptionpublic FunctionType build()
build in interface PBuilder<FunctionType>Copyright © 2015–2018 morimekta.net. All rights reserved.