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 pmodel.FunctionType builder instance._Builder(FunctionType base)Make a mutating builder off a base pmodel.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 theexceptionslist.FunctionType._BuilderaddToParams(FieldType... values)Adds entries to theparamslist.FunctionTypebuild()FunctionType._Builderclear(int key)FunctionType._BuilderclearAnnotations()Clear theannotationsfield.FunctionType._BuilderclearDocumentation()Clear thedocumentationfield.FunctionType._BuilderclearEndPos()Clear theend_posfield.FunctionType._BuilderclearExceptions()Clear theexceptionsfield.FunctionType._BuilderclearName()Clear thenamefield.FunctionType._BuilderclearOneWay()Clear theone_wayfield.FunctionType._BuilderclearParams()Clear theparamsfield.FunctionType._BuilderclearReturnType()Clear thereturn_typefield.FunctionType._BuilderclearStartPos()Clear thestart_posfield.net.morimekta.providence.descriptor.PStructDescriptor<FunctionType,FunctionType._Field>descriptor()booleanequals(java.lang.Object o)java.lang.StringgetDocumentation()FilePosgetEndPos()The end of the definitionjava.lang.StringgetName()booleangetOneWay()java.lang.StringgetReturnType()FilePosgetStartPos()The start of the definition (position of return type)inthashCode()booleanisModified(int key)booleanisModifiedAnnotations()Checks if theannotationsfield has been modified since the builder was created.booleanisModifiedDocumentation()Checks if thedocumentationfield has been modified since the builder was created.booleanisModifiedEndPos()Checks if theend_posfield has been modified since the builder was created.booleanisModifiedExceptions()Checks if theexceptionsfield has been modified since the builder was created.booleanisModifiedName()Checks if thenamefield has been modified since the builder was created.booleanisModifiedOneWay()Checks if theone_wayfield has been modified since the builder was created.booleanisModifiedParams()Checks if theparamsfield has been modified since the builder was created.booleanisModifiedReturnType()Checks if thereturn_typefield has been modified since the builder was created.booleanisModifiedStartPos()Checks if thestart_posfield has been modified since the builder was created.booleanisSet(int key)booleanisSetAnnotations()Checks for presence of theannotationsfield.booleanisSetDocumentation()Checks for presence of thedocumentationfield.booleanisSetEndPos()Checks for presence of theend_posfield.booleanisSetExceptions()Checks for presence of theexceptionsfield.booleanisSetName()Checks for presence of thenamefield.booleanisSetOneWay()Checks for presence of theone_wayfield.booleanisSetParams()Checks for presence of theparamsfield.booleanisSetReturnType()Checks for presence of thereturn_typefield.booleanisSetStartPos()Checks for presence of thestart_posfield.FunctionType._Buildermerge(FunctionType from)java.util.Map<java.lang.String,java.lang.String>mutableAnnotations()FilePos._BuildermutableEndPos()Get the builder for the containedend_posmessage field.java.util.List<FieldType>mutableExceptions()java.util.List<FieldType>mutableParams()FilePos._BuildermutableStartPos()Get the builder for the containedstart_posmessage field.net.morimekta.providence.PMessageBuildermutator(int key)FunctionType._BuilderputInAnnotations(java.lang.String key, java.lang.String value)Adds a mapping to theannotationsmap.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)Set theannotationsfield value.FunctionType._BuildersetDocumentation(java.lang.String value)Set thedocumentationfield value.FunctionType._BuildersetEndPos(FilePos value)Set theend_posfield value.FunctionType._BuildersetEndPos(FilePos._Builder builder)Set theend_posfield value.FunctionType._BuildersetExceptions(java.util.Collection<FieldType> value)Set theexceptionsfield value.FunctionType._BuildersetName(java.lang.String value)Set thenamefield value.FunctionType._BuildersetOneWay(boolean value)Set theone_wayfield value.FunctionType._BuildersetParams(java.util.Collection<FieldType> value)Set theparamsfield value.FunctionType._BuildersetReturnType(java.lang.String value)Set thereturn_typefield value.FunctionType._BuildersetStartPos(FilePos value)Set thestart_posfield value.FunctionType._BuildersetStartPos(FilePos._Builder builder)Set thestart_posfield value.booleanvalid()voidvalidate()
-
-
-
Constructor Detail
-
_Builder
public _Builder()
Make a pmodel.FunctionType builder instance.
-
_Builder
public _Builder(FunctionType base)
Make a mutating builder off a base pmodel.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)
Set thedocumentationfield value.- Parameters:
value- The new value- Returns:
- The builder
-
isSetDocumentation
public boolean isSetDocumentation()
Checks for presence of thedocumentationfield.- Returns:
- True if documentation has been set.
-
isModifiedDocumentation
public boolean isModifiedDocumentation()
Checks if thedocumentationfield has been modified since the builder was created.- Returns:
- True if documentation has been modified.
-
clearDocumentation
@Nonnull public FunctionType._Builder clearDocumentation()
Clear thedocumentationfield.- Returns:
- The builder
-
getDocumentation
public java.lang.String getDocumentation()
- Returns:
- The
documentationfield value
-
setOneWay
@Nonnull public FunctionType._Builder setOneWay(boolean value)
Set theone_wayfield value.- Parameters:
value- The new value- Returns:
- The builder
-
isSetOneWay
public boolean isSetOneWay()
Checks for presence of theone_wayfield.- Returns:
- True if one_way has been set.
-
isModifiedOneWay
public boolean isModifiedOneWay()
Checks if theone_wayfield has been modified since the builder was created.- Returns:
- True if one_way has been modified.
-
clearOneWay
@Nonnull public FunctionType._Builder clearOneWay()
Clear theone_wayfield.- Returns:
- The builder
-
getOneWay
public boolean getOneWay()
- Returns:
- The
one_wayfield value
-
setReturnType
@Nonnull public FunctionType._Builder setReturnType(java.lang.String value)
Set thereturn_typefield value.- Parameters:
value- The new value- Returns:
- The builder
-
isSetReturnType
public boolean isSetReturnType()
Checks for presence of thereturn_typefield.- Returns:
- True if return_type has been set.
-
isModifiedReturnType
public boolean isModifiedReturnType()
Checks if thereturn_typefield has been modified since the builder was created.- Returns:
- True if return_type has been modified.
-
clearReturnType
@Nonnull public FunctionType._Builder clearReturnType()
Clear thereturn_typefield.- Returns:
- The builder
-
getReturnType
public java.lang.String getReturnType()
- Returns:
- The
return_typefield value
-
setName
@Nonnull public FunctionType._Builder setName(java.lang.String value)
Set thenamefield value.- Parameters:
value- The new value- Returns:
- The builder
-
isSetName
public boolean isSetName()
Checks for presence of thenamefield.- Returns:
- True if name has been set.
-
isModifiedName
public boolean isModifiedName()
Checks if thenamefield has been modified since the builder was created.- Returns:
- True if name has been modified.
-
clearName
@Nonnull public FunctionType._Builder clearName()
Clear thenamefield.- Returns:
- The builder
-
getName
public java.lang.String getName()
- Returns:
- The
namefield value
-
setParams
@Nonnull public FunctionType._Builder setParams(java.util.Collection<FieldType> value)
Set theparamsfield value.- Parameters:
value- The new value- Returns:
- The builder
-
addToParams
@Nonnull public FunctionType._Builder addToParams(FieldType... values)
Adds entries to theparamslist.- Parameters:
values- The added value- Returns:
- The builder
-
isSetParams
public boolean isSetParams()
Checks for presence of theparamsfield.- Returns:
- True if params has been set.
-
isModifiedParams
public boolean isModifiedParams()
Checks if theparamsfield has been modified since the builder was created.- Returns:
- True if params has been modified.
-
clearParams
@Nonnull public FunctionType._Builder clearParams()
Clear theparamsfield.- Returns:
- The builder
-
mutableParams
public java.util.List<FieldType> mutableParams()
- Returns:
- The mutable
paramscontainer
-
setExceptions
@Nonnull public FunctionType._Builder setExceptions(java.util.Collection<FieldType> value)
Set theexceptionsfield value.- Parameters:
value- The new value- Returns:
- The builder
-
addToExceptions
@Nonnull public FunctionType._Builder addToExceptions(FieldType... values)
Adds entries to theexceptionslist.- Parameters:
values- The added value- Returns:
- The builder
-
isSetExceptions
public boolean isSetExceptions()
Checks for presence of theexceptionsfield.- Returns:
- True if exceptions has been set.
-
isModifiedExceptions
public boolean isModifiedExceptions()
Checks if theexceptionsfield has been modified since the builder was created.- Returns:
- True if exceptions has been modified.
-
clearExceptions
@Nonnull public FunctionType._Builder clearExceptions()
Clear theexceptionsfield.- Returns:
- The builder
-
mutableExceptions
public java.util.List<FieldType> mutableExceptions()
- Returns:
- The mutable
exceptionscontainer
-
setAnnotations
@Nonnull public FunctionType._Builder setAnnotations(java.util.Map<java.lang.String,java.lang.String> value)
Set theannotationsfield value.- 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 theannotationsmap.- Parameters:
key- The inserted keyvalue- The inserted value- Returns:
- The builder
-
isSetAnnotations
public boolean isSetAnnotations()
Checks for presence of theannotationsfield.- Returns:
- True if annotations has been set.
-
isModifiedAnnotations
public boolean isModifiedAnnotations()
Checks if theannotationsfield has been modified since the builder was created.- Returns:
- True if annotations has been modified.
-
clearAnnotations
@Nonnull public FunctionType._Builder clearAnnotations()
Clear theannotationsfield.- Returns:
- The builder
-
mutableAnnotations
public java.util.Map<java.lang.String,java.lang.String> mutableAnnotations()
- Returns:
- The mutable
annotationscontainer
-
setStartPos
@Nonnull public FunctionType._Builder setStartPos(FilePos value)
Set thestart_posfield value.The start of the definition (position of return type)
- Parameters:
value- The new value- Returns:
- The builder
-
setStartPos
@Nonnull public FunctionType._Builder setStartPos(FilePos._Builder builder)
Set thestart_posfield value.The start of the definition (position of return type)
- Parameters:
builder- builder for the new value- Returns:
- The builder
-
isSetStartPos
public boolean isSetStartPos()
Checks for presence of thestart_posfield.- Returns:
- True if start_pos has been set.
-
isModifiedStartPos
public boolean isModifiedStartPos()
Checks if thestart_posfield has been modified since the builder was created.- Returns:
- True if start_pos has been modified.
-
clearStartPos
@Nonnull public FunctionType._Builder clearStartPos()
Clear thestart_posfield.- Returns:
- The builder
-
mutableStartPos
@Nonnull public FilePos._Builder mutableStartPos()
Get the builder for the containedstart_posmessage field.The start of the definition (position of return type)
- Returns:
- The field message builder
-
getStartPos
public FilePos getStartPos()
The start of the definition (position of return type)- Returns:
- The field value
-
setEndPos
@Nonnull public FunctionType._Builder setEndPos(FilePos value)
Set theend_posfield value.The end of the definition
- Parameters:
value- The new value- Returns:
- The builder
-
setEndPos
@Nonnull public FunctionType._Builder setEndPos(FilePos._Builder builder)
Set theend_posfield value.The end of the definition
- Parameters:
builder- builder for the new value- Returns:
- The builder
-
isSetEndPos
public boolean isSetEndPos()
Checks for presence of theend_posfield.- Returns:
- True if end_pos has been set.
-
isModifiedEndPos
public boolean isModifiedEndPos()
Checks if theend_posfield has been modified since the builder was created.- Returns:
- True if end_pos has been modified.
-
clearEndPos
@Nonnull public FunctionType._Builder clearEndPos()
Clear theend_posfield.- Returns:
- The builder
-
mutableEndPos
@Nonnull public FilePos._Builder mutableEndPos()
Get the builder for the containedend_posmessage field.The end of the definition
- Returns:
- The field message builder
-
getEndPos
public FilePos getEndPos()
The end of the definition- Returns:
- The field value
-
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
@Nonnull 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>
-
-