Package net.morimekta.providence.model
Class FunctionType
- java.lang.Object
-
- net.morimekta.providence.model.FunctionType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FunctionType>
,Decl
,FunctionType_OrBuilder
,net.morimekta.providence.PMessage<FunctionType>
,net.morimekta.providence.PMessageOrBuilder<FunctionType>
,net.morimekta.providence.PValue<FunctionType>
,net.morimekta.providence.serializer.binary.BinaryWriter
,net.morimekta.util.Stringable
@Generated(value="net.morimekta.providence:providence-generator-java", comments="java:serializable") @Immutable public class FunctionType extends java.lang.Object implements Decl, FunctionType_OrBuilder, net.morimekta.providence.PMessage<FunctionType>, java.lang.Comparable<FunctionType>, java.io.Serializable, net.morimekta.providence.serializer.binary.BinaryWriter
(oneway)? <return_type> <name>'('<param>*')' (throws '(' <exception>+ ')')?- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FunctionType._Builder
(oneway)?static class
FunctionType._Field
-
Field Summary
Fields Modifier and Type Field Description static net.morimekta.providence.descriptor.PStructDescriptor<FunctionType>
kDescriptor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
asString()
static FunctionType._Builder
builder()
Make ap_model.FunctionType
builder.int
compareTo(FunctionType other)
net.morimekta.providence.descriptor.PStructDescriptor<FunctionType>
descriptor()
boolean
equals(java.lang.Object o)
<T> T
get(int key)
java.util.Map<java.lang.String,java.lang.String>
getAnnotations()
java.lang.String
getDocumentation()
Documentation for the specific declaration.java.util.List<FieldType>
getExceptions()
java.lang.String
getName()
Name of the type, constant or service.java.util.List<FieldType>
getParams()
java.lang.String
getReturnType()
boolean
has(int key)
boolean
hasAnnotations()
boolean
hasDocumentation()
boolean
hasExceptions()
int
hashCode()
boolean
hasName()
boolean
hasOneWay()
boolean
hasParams()
boolean
hasReturnType()
boolean
isOneWay()
FunctionType._Builder
mutate()
int
numAnnotations()
int
numExceptions()
int
numParams()
java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>
optionalAnnotations()
java.util.Optional<java.lang.String>
optionalDocumentation()
Documentation for the specific declaration.java.util.Optional<java.util.List<FieldType>>
optionalExceptions()
java.util.Optional<java.lang.Boolean>
optionalOneWay()
java.util.Optional<java.lang.String>
optionalReturnType()
static net.morimekta.providence.descriptor.PStructDescriptorProvider<FunctionType>
provider()
java.lang.String
toString()
int
writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer)
-
-
-
Field Detail
-
kDescriptor
public static final net.morimekta.providence.descriptor.PStructDescriptor<FunctionType> kDescriptor
-
-
Method Detail
-
hasDocumentation
public boolean hasDocumentation()
- Specified by:
hasDocumentation
in interfaceDecl
- Returns:
- If documentation is present.
-
getDocumentation
public java.lang.String getDocumentation()
Description copied from interface:Decl
Documentation for the specific declaration.- Specified by:
getDocumentation
in interfaceDecl
- Returns:
- The
documentation
value
-
optionalDocumentation
@Nonnull public java.util.Optional<java.lang.String> optionalDocumentation()
Description copied from interface:Decl
Documentation for the specific declaration.- Specified by:
optionalDocumentation
in interfaceDecl
- Returns:
- Optional of the
documentation
field value.
-
hasOneWay
public boolean hasOneWay()
- Specified by:
hasOneWay
in interfaceFunctionType_OrBuilder
- Returns:
- If one_way is present.
-
isOneWay
public boolean isOneWay()
- Specified by:
isOneWay
in interfaceFunctionType_OrBuilder
- Returns:
- The
one_way
value
-
optionalOneWay
@Nonnull public java.util.Optional<java.lang.Boolean> optionalOneWay()
- Specified by:
optionalOneWay
in interfaceFunctionType_OrBuilder
- Returns:
- Optional of the
one_way
field value.
-
hasReturnType
public boolean hasReturnType()
- Specified by:
hasReturnType
in interfaceFunctionType_OrBuilder
- Returns:
- If return_type is present.
-
getReturnType
public java.lang.String getReturnType()
- Specified by:
getReturnType
in interfaceFunctionType_OrBuilder
- Returns:
- The
return_type
value
-
optionalReturnType
@Nonnull public java.util.Optional<java.lang.String> optionalReturnType()
- Specified by:
optionalReturnType
in interfaceFunctionType_OrBuilder
- Returns:
- Optional of the
return_type
field value.
-
hasName
public boolean hasName()
-
getName
@Nonnull public java.lang.String getName()
Description copied from interface:Decl
Name of the type, constant or service.
-
numParams
public int numParams()
- Specified by:
numParams
in interfaceFunctionType_OrBuilder
- Returns:
- Number of entries in params.
-
hasParams
public boolean hasParams()
- Specified by:
hasParams
in interfaceFunctionType_OrBuilder
- Returns:
- If params is present.
-
getParams
@Nonnull public java.util.List<FieldType> getParams()
- Specified by:
getParams
in interfaceFunctionType_OrBuilder
- Returns:
- The
params
value
-
numExceptions
public int numExceptions()
- Specified by:
numExceptions
in interfaceFunctionType_OrBuilder
- Returns:
- Number of entries in exceptions.
-
hasExceptions
public boolean hasExceptions()
- Specified by:
hasExceptions
in interfaceFunctionType_OrBuilder
- Returns:
- If exceptions is present.
-
getExceptions
public java.util.List<FieldType> getExceptions()
- Specified by:
getExceptions
in interfaceFunctionType_OrBuilder
- Returns:
- The
exceptions
value
-
optionalExceptions
@Nonnull public java.util.Optional<java.util.List<FieldType>> optionalExceptions()
- Specified by:
optionalExceptions
in interfaceFunctionType_OrBuilder
- Returns:
- Optional of the
exceptions
field value.
-
numAnnotations
public int numAnnotations()
- Specified by:
numAnnotations
in interfaceFunctionType_OrBuilder
- Returns:
- Number of entries in annotations.
-
hasAnnotations
public boolean hasAnnotations()
- Specified by:
hasAnnotations
in interfaceFunctionType_OrBuilder
- Returns:
- If annotations is present.
-
getAnnotations
public java.util.Map<java.lang.String,java.lang.String> getAnnotations()
- Specified by:
getAnnotations
in interfaceFunctionType_OrBuilder
- Returns:
- The
annotations
value
-
optionalAnnotations
@Nonnull public java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> optionalAnnotations()
- Specified by:
optionalAnnotations
in interfaceFunctionType_OrBuilder
- Returns:
- Optional of the
annotations
field value.
-
has
public boolean has(int key)
- Specified by:
has
in interfacenet.morimekta.providence.PMessageOrBuilder<FunctionType>
-
get
public <T> T get(int key)
- Specified by:
get
in interfacenet.morimekta.providence.PMessageOrBuilder<FunctionType>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
asString
@Nonnull public java.lang.String asString()
- Specified by:
asString
in interfacenet.morimekta.providence.PMessage<FunctionType>
- Specified by:
asString
in interfacenet.morimekta.util.Stringable
-
compareTo
public int compareTo(FunctionType other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<FunctionType>
-
writeBinary
public int writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer) throws java.io.IOException
- Specified by:
writeBinary
in interfacenet.morimekta.providence.serializer.binary.BinaryWriter
- Throws:
java.io.IOException
-
mutate
@Nonnull public FunctionType._Builder mutate()
- Specified by:
mutate
in interfacenet.morimekta.providence.PMessage<FunctionType>
-
provider
@Nonnull public static net.morimekta.providence.descriptor.PStructDescriptorProvider<FunctionType> provider()
-
descriptor
@Nonnull public net.morimekta.providence.descriptor.PStructDescriptor<FunctionType> descriptor()
- Specified by:
descriptor
in interfacenet.morimekta.providence.PMessageOrBuilder<FunctionType>
- Specified by:
descriptor
in interfacenet.morimekta.providence.PValue<FunctionType>
-
builder
public static FunctionType._Builder builder()
Make ap_model.FunctionType
builder.- Returns:
- The builder instance.
-
-