Package net.morimekta.providence.model
Class FunctionType._Builder
- java.lang.Object
-
- net.morimekta.providence.PMessageBuilder<FunctionType,FunctionType._Field>
-
- net.morimekta.providence.model.FunctionType._Builder
-
- All Implemented Interfaces:
net.morimekta.providence.PBuilder<FunctionType>,net.morimekta.providence.serializer.binary.BinaryReader
- Enclosing class:
- FunctionType
public static class FunctionType._Builder extends net.morimekta.providence.PMessageBuilder<FunctionType,FunctionType._Field> implements net.morimekta.providence.serializer.binary.BinaryReader
(oneway)? <return_type> <name>'('<param>*')' (throws '(' <exception>+ ')')?
-
-
Constructor Summary
Constructors Constructor Description _Builder()Make a providence_model.FunctionType builder._Builder(FunctionType base)Make a mutating builder off a base providence_model.FunctionType.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FunctionType._BuilderaddTo(int key, java.lang.Object value)FunctionType._BuilderaddToExceptions(FieldType... values)Adds entries to exceptions.FunctionType._BuilderaddToParams(FieldType... values)Adds entries to params.FunctionTypebuild()FunctionType._Builderclear(int key)FunctionType._BuilderclearAnnotations()Clears the annotations field.FunctionType._BuilderclearDocumentation()Clears the documentation field.FunctionType._BuilderclearExceptions()Clears the exceptions field.FunctionType._BuilderclearName()Clears the name field.FunctionType._BuilderclearOneWay()Clears the one_way field.FunctionType._BuilderclearParams()Clears the params field.FunctionType._BuilderclearReturnType()Clears the return_type field.net.morimekta.providence.descriptor.PStructDescriptor<FunctionType,FunctionType._Field>descriptor()booleanequals(java.lang.Object o)java.lang.StringgetDocumentation()Gets the value of the contained documentation.java.lang.StringgetName()Gets the value of the contained name.booleangetOneWay()Gets the value of the contained one_way.java.lang.StringgetReturnType()Gets the value of the contained return_type.inthashCode()booleanisModified(int key)booleanisModifiedAnnotations()Checks if annotations has been modified since the _Builder was created.booleanisModifiedDocumentation()Checks if documentation has been modified since the _Builder was created.booleanisModifiedExceptions()Checks if exceptions has been modified since the _Builder was created.booleanisModifiedName()Checks if name has been modified since the _Builder was created.booleanisModifiedOneWay()Checks if one_way has been modified since the _Builder was created.booleanisModifiedParams()Checks if params has been modified since the _Builder was created.booleanisModifiedReturnType()Checks if return_type has been modified since the _Builder was created.booleanisSet(int key)booleanisSetAnnotations()Checks for presence of the annotations field.booleanisSetDocumentation()Checks for presence of the documentation field.booleanisSetExceptions()Checks for presence of the exceptions field.booleanisSetName()Checks for presence of the name field.booleanisSetOneWay()Checks for presence of the one_way field.booleanisSetParams()Checks for presence of the params field.booleanisSetReturnType()Checks for presence of the return_type field.FunctionType._Buildermerge(FunctionType from)java.util.Map<java.lang.String,java.lang.String>mutableAnnotations()Gets the builder for the contained annotations.java.util.List<FieldType>mutableExceptions()Gets the builder for the contained exceptions.java.util.List<FieldType>mutableParams()Gets the builder for the contained params.net.morimekta.providence.PMessageBuildermutator(int key)FunctionType._BuilderputInAnnotations(java.lang.String key, java.lang.String value)Adds a mapping to annotations.voidreadBinary(net.morimekta.util.io.BigEndianBinaryReader reader, boolean strict)FunctionType._Builderset(int key, java.lang.Object value)FunctionType._BuildersetAnnotations(java.util.Map<java.lang.String,java.lang.String> value)Sets the value of annotations.FunctionType._BuildersetDocumentation(java.lang.String value)Sets the value of documentation.FunctionType._BuildersetExceptions(java.util.Collection<FieldType> value)Sets the value of exceptions.FunctionType._BuildersetName(java.lang.String value)Sets the value of name.FunctionType._BuildersetOneWay(boolean value)Sets the value of one_way.FunctionType._BuildersetParams(java.util.Collection<FieldType> value)Sets the value of params.FunctionType._BuildersetReturnType(java.lang.String value)Sets the value of return_type.booleanvalid()voidvalidate()
-
-
-
Constructor Detail
-
_Builder
public _Builder()
Make a providence_model.FunctionType builder.
-
_Builder
public _Builder(FunctionType base)
Make a mutating builder off a base providence_model.FunctionType.- Parameters:
base- The base FunctionType
-
-
Method Detail
-
merge
@Nonnull public FunctionType._Builder merge(FunctionType from)
- Specified by:
mergein classnet.morimekta.providence.PMessageBuilder<FunctionType,FunctionType._Field>
-
setDocumentation
@Nonnull public FunctionType._Builder setDocumentation(java.lang.String value)
Sets the value of documentation.- Parameters:
value- The new value- Returns:
- The builder
-
isSetDocumentation
public boolean isSetDocumentation()
Checks for presence of the documentation field.- Returns:
- True if documentation has been set.
-
isModifiedDocumentation
public boolean isModifiedDocumentation()
Checks if documentation has been modified since the _Builder was created.- Returns:
- True if documentation has been modified.
-
clearDocumentation
@Nonnull public FunctionType._Builder clearDocumentation()
Clears the documentation field.- Returns:
- The builder
-
getDocumentation
public java.lang.String getDocumentation()
Gets the value of the contained documentation.- Returns:
- The field value
-
setOneWay
@Nonnull public FunctionType._Builder setOneWay(boolean value)
Sets the value of one_way.- Parameters:
value- The new value- Returns:
- The builder
-
isSetOneWay
public boolean isSetOneWay()
Checks for presence of the one_way field.- Returns:
- True if one_way has been set.
-
isModifiedOneWay
public boolean isModifiedOneWay()
Checks if one_way has been modified since the _Builder was created.- Returns:
- True if one_way has been modified.
-
clearOneWay
@Nonnull public FunctionType._Builder clearOneWay()
Clears the one_way field.- Returns:
- The builder
-
getOneWay
public boolean getOneWay()
Gets the value of the contained one_way.- Returns:
- The field value
-
setReturnType
@Nonnull public FunctionType._Builder setReturnType(java.lang.String value)
Sets the value of return_type.- Parameters:
value- The new value- Returns:
- The builder
-
isSetReturnType
public boolean isSetReturnType()
Checks for presence of the return_type field.- Returns:
- True if return_type has been set.
-
isModifiedReturnType
public boolean isModifiedReturnType()
Checks if return_type has been modified since the _Builder was created.- Returns:
- True if return_type has been modified.
-
clearReturnType
@Nonnull public FunctionType._Builder clearReturnType()
Clears the return_type field.- Returns:
- The builder
-
getReturnType
public java.lang.String getReturnType()
Gets the value of the contained return_type.- Returns:
- The field value
-
setName
@Nonnull public FunctionType._Builder setName(java.lang.String value)
Sets the value of name.- Parameters:
value- The new value- Returns:
- The builder
-
isSetName
public boolean isSetName()
Checks for presence of the name field.- Returns:
- True if name has been set.
-
isModifiedName
public boolean isModifiedName()
Checks if name has been modified since the _Builder was created.- Returns:
- True if name has been modified.
-
clearName
@Nonnull public FunctionType._Builder clearName()
Clears the name field.- Returns:
- The builder
-
getName
public java.lang.String getName()
Gets the value of the contained name.- Returns:
- The field value
-
setParams
@Nonnull public FunctionType._Builder setParams(java.util.Collection<FieldType> value)
Sets the value of params.- Parameters:
value- The new value- Returns:
- The builder
-
addToParams
@Nonnull public FunctionType._Builder addToParams(FieldType... values)
Adds entries to params.- Parameters:
values- The added value- Returns:
- The builder
-
isSetParams
public boolean isSetParams()
Checks for presence of the params field.- Returns:
- True if params has been set.
-
isModifiedParams
public boolean isModifiedParams()
Checks if params has been modified since the _Builder was created.- Returns:
- True if params has been modified.
-
clearParams
@Nonnull public FunctionType._Builder clearParams()
Clears the params field.- Returns:
- The builder
-
mutableParams
@Nonnull public java.util.List<FieldType> mutableParams()
Gets the builder for the contained params.- Returns:
- The field builder
-
setExceptions
@Nonnull public FunctionType._Builder setExceptions(java.util.Collection<FieldType> value)
Sets the value of exceptions.- Parameters:
value- The new value- Returns:
- The builder
-
addToExceptions
@Nonnull public FunctionType._Builder addToExceptions(FieldType... values)
Adds entries to exceptions.- Parameters:
values- The added value- Returns:
- The builder
-
isSetExceptions
public boolean isSetExceptions()
Checks for presence of the exceptions field.- Returns:
- True if exceptions has been set.
-
isModifiedExceptions
public boolean isModifiedExceptions()
Checks if exceptions has been modified since the _Builder was created.- Returns:
- True if exceptions has been modified.
-
clearExceptions
@Nonnull public FunctionType._Builder clearExceptions()
Clears the exceptions field.- Returns:
- The builder
-
mutableExceptions
@Nonnull public java.util.List<FieldType> mutableExceptions()
Gets the builder for the contained exceptions.- Returns:
- The field builder
-
setAnnotations
@Nonnull public FunctionType._Builder setAnnotations(java.util.Map<java.lang.String,java.lang.String> value)
Sets the value of annotations.- Parameters:
value- The new value- Returns:
- The builder
-
putInAnnotations
@Nonnull public FunctionType._Builder putInAnnotations(java.lang.String key, java.lang.String value)
Adds a mapping to annotations.- Parameters:
key- The inserted keyvalue- The inserted value- Returns:
- The builder
-
isSetAnnotations
public boolean isSetAnnotations()
Checks for presence of the annotations field.- Returns:
- True if annotations has been set.
-
isModifiedAnnotations
public boolean isModifiedAnnotations()
Checks if annotations has been modified since the _Builder was created.- Returns:
- True if annotations has been modified.
-
clearAnnotations
@Nonnull public FunctionType._Builder clearAnnotations()
Clears the annotations field.- Returns:
- The builder
-
mutableAnnotations
@Nonnull public java.util.Map<java.lang.String,java.lang.String> mutableAnnotations()
Gets the builder for the contained annotations.- Returns:
- The field builder
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
mutator
public net.morimekta.providence.PMessageBuilder mutator(int key)
- Specified by:
mutatorin classnet.morimekta.providence.PMessageBuilder<FunctionType,FunctionType._Field>
-
set
@Nonnull public FunctionType._Builder set(int key, java.lang.Object value)
- Specified by:
setin classnet.morimekta.providence.PMessageBuilder<FunctionType,FunctionType._Field>
-
isSet
public boolean isSet(int key)
- Specified by:
isSetin classnet.morimekta.providence.PMessageBuilder<FunctionType,FunctionType._Field>
-
isModified
public boolean isModified(int key)
- Specified by:
isModifiedin classnet.morimekta.providence.PMessageBuilder<FunctionType,FunctionType._Field>
-
addTo
public FunctionType._Builder addTo(int key, java.lang.Object value)
- Specified by:
addToin classnet.morimekta.providence.PMessageBuilder<FunctionType,FunctionType._Field>
-
clear
@Nonnull public FunctionType._Builder clear(int key)
- Specified by:
clearin classnet.morimekta.providence.PMessageBuilder<FunctionType,FunctionType._Field>
-
valid
public boolean valid()
- Specified by:
validin classnet.morimekta.providence.PMessageBuilder<FunctionType,FunctionType._Field>
-
validate
public void validate()
- Specified by:
validatein classnet.morimekta.providence.PMessageBuilder<FunctionType,FunctionType._Field>
-
descriptor
@Nonnull public net.morimekta.providence.descriptor.PStructDescriptor<FunctionType,FunctionType._Field> descriptor()
- Specified by:
descriptorin classnet.morimekta.providence.PMessageBuilder<FunctionType,FunctionType._Field>
-
readBinary
public void readBinary(net.morimekta.util.io.BigEndianBinaryReader reader, boolean strict) throws java.io.IOException- Specified by:
readBinaryin interfacenet.morimekta.providence.serializer.binary.BinaryReader- Throws:
java.io.IOException
-
build
public FunctionType build()
- Specified by:
buildin interfacenet.morimekta.providence.PBuilder<FunctionType>
-
-