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 classFunctionType._Builder(oneway)?static classFunctionType._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.StringasString()static FunctionType._Builderbuilder()Make ap_model.FunctionTypebuilder.intcompareTo(FunctionType other)net.morimekta.providence.descriptor.PStructDescriptor<FunctionType>descriptor()booleanequals(java.lang.Object o)<T> Tget(int key)java.util.Map<java.lang.String,java.lang.String>getAnnotations()java.lang.StringgetDocumentation()Documentation for the specific declaration.java.util.List<FieldType>getExceptions()java.lang.StringgetName()Name of the type, constant or service.java.util.List<FieldType>getParams()java.lang.StringgetReturnType()booleanhas(int key)booleanhasAnnotations()booleanhasDocumentation()booleanhasExceptions()inthashCode()booleanhasName()booleanhasOneWay()booleanhasParams()booleanhasReturnType()booleanisOneWay()FunctionType._Buildermutate()intnumAnnotations()intnumExceptions()intnumParams()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.StringtoString()intwriteBinary(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:
hasDocumentationin interfaceDecl- Returns:
- If documentation is present.
-
getDocumentation
public java.lang.String getDocumentation()
Description copied from interface:DeclDocumentation for the specific declaration.- Specified by:
getDocumentationin interfaceDecl- Returns:
- The
documentationvalue
-
optionalDocumentation
@Nonnull public java.util.Optional<java.lang.String> optionalDocumentation()
Description copied from interface:DeclDocumentation for the specific declaration.- Specified by:
optionalDocumentationin interfaceDecl- Returns:
- Optional of the
documentationfield value.
-
hasOneWay
public boolean hasOneWay()
- Specified by:
hasOneWayin interfaceFunctionType_OrBuilder- Returns:
- If one_way is present.
-
isOneWay
public boolean isOneWay()
- Specified by:
isOneWayin interfaceFunctionType_OrBuilder- Returns:
- The
one_wayvalue
-
optionalOneWay
@Nonnull public java.util.Optional<java.lang.Boolean> optionalOneWay()
- Specified by:
optionalOneWayin interfaceFunctionType_OrBuilder- Returns:
- Optional of the
one_wayfield value.
-
hasReturnType
public boolean hasReturnType()
- Specified by:
hasReturnTypein interfaceFunctionType_OrBuilder- Returns:
- If return_type is present.
-
getReturnType
public java.lang.String getReturnType()
- Specified by:
getReturnTypein interfaceFunctionType_OrBuilder- Returns:
- The
return_typevalue
-
optionalReturnType
@Nonnull public java.util.Optional<java.lang.String> optionalReturnType()
- Specified by:
optionalReturnTypein interfaceFunctionType_OrBuilder- Returns:
- Optional of the
return_typefield value.
-
hasName
public boolean hasName()
-
getName
@Nonnull public java.lang.String getName()
Description copied from interface:DeclName of the type, constant or service.
-
numParams
public int numParams()
- Specified by:
numParamsin interfaceFunctionType_OrBuilder- Returns:
- Number of entries in params.
-
hasParams
public boolean hasParams()
- Specified by:
hasParamsin interfaceFunctionType_OrBuilder- Returns:
- If params is present.
-
getParams
@Nonnull public java.util.List<FieldType> getParams()
- Specified by:
getParamsin interfaceFunctionType_OrBuilder- Returns:
- The
paramsvalue
-
numExceptions
public int numExceptions()
- Specified by:
numExceptionsin interfaceFunctionType_OrBuilder- Returns:
- Number of entries in exceptions.
-
hasExceptions
public boolean hasExceptions()
- Specified by:
hasExceptionsin interfaceFunctionType_OrBuilder- Returns:
- If exceptions is present.
-
getExceptions
public java.util.List<FieldType> getExceptions()
- Specified by:
getExceptionsin interfaceFunctionType_OrBuilder- Returns:
- The
exceptionsvalue
-
optionalExceptions
@Nonnull public java.util.Optional<java.util.List<FieldType>> optionalExceptions()
- Specified by:
optionalExceptionsin interfaceFunctionType_OrBuilder- Returns:
- Optional of the
exceptionsfield value.
-
numAnnotations
public int numAnnotations()
- Specified by:
numAnnotationsin interfaceFunctionType_OrBuilder- Returns:
- Number of entries in annotations.
-
hasAnnotations
public boolean hasAnnotations()
- Specified by:
hasAnnotationsin interfaceFunctionType_OrBuilder- Returns:
- If annotations is present.
-
getAnnotations
public java.util.Map<java.lang.String,java.lang.String> getAnnotations()
- Specified by:
getAnnotationsin interfaceFunctionType_OrBuilder- Returns:
- The
annotationsvalue
-
optionalAnnotations
@Nonnull public java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> optionalAnnotations()
- Specified by:
optionalAnnotationsin interfaceFunctionType_OrBuilder- Returns:
- Optional of the
annotationsfield value.
-
has
public boolean has(int key)
- Specified by:
hasin interfacenet.morimekta.providence.PMessageOrBuilder<FunctionType>
-
get
public <T> T get(int key)
- Specified by:
getin interfacenet.morimekta.providence.PMessageOrBuilder<FunctionType>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
asString
@Nonnull public java.lang.String asString()
- Specified by:
asStringin interfacenet.morimekta.providence.PMessage<FunctionType>- Specified by:
asStringin interfacenet.morimekta.util.Stringable
-
compareTo
public int compareTo(FunctionType other)
- Specified by:
compareToin interfacejava.lang.Comparable<FunctionType>
-
writeBinary
public int writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer) throws java.io.IOException- Specified by:
writeBinaryin interfacenet.morimekta.providence.serializer.binary.BinaryWriter- Throws:
java.io.IOException
-
mutate
@Nonnull public FunctionType._Builder mutate()
- Specified by:
mutatein 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:
descriptorin interfacenet.morimekta.providence.PMessageOrBuilder<FunctionType>- Specified by:
descriptorin interfacenet.morimekta.providence.PValue<FunctionType>
-
builder
public static FunctionType._Builder builder()
Make ap_model.FunctionTypebuilder.- Returns:
- The builder instance.
-
-