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>,net.morimekta.providence.PMessage<FunctionType,FunctionType._Field>,net.morimekta.providence.PValue<FunctionType>,net.morimekta.providence.serializer.binary.BinaryWriter,net.morimekta.util.Stringable
@Generated("providence-maven-plugin") @Immutable public class FunctionType extends java.lang.Object implements net.morimekta.providence.PMessage<FunctionType,FunctionType._Field>, 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,FunctionType._Field>kDescriptor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringasString()static FunctionType._Builderbuilder()Make apmodel.FunctionTypebuilder.intcompareTo(FunctionType other)net.morimekta.providence.descriptor.PStructDescriptor<FunctionType,FunctionType._Field>descriptor()booleanequals(java.lang.Object o)<T> Tget(int key)java.util.Map<java.lang.String,java.lang.String>getAnnotations()java.lang.StringgetDocumentation()FilePosgetEndPos()The end of the definitionjava.util.List<FieldType>getExceptions()java.lang.StringgetName()java.util.List<FieldType>getParams()java.lang.StringgetReturnType()FilePosgetStartPos()The start of the definition (position of return type)booleanhas(int key)booleanhasAnnotations()booleanhasDocumentation()booleanhasEndPos()booleanhasExceptions()inthashCode()booleanhasName()booleanhasOneWay()booleanhasParams()booleanhasReturnType()booleanhasStartPos()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()java.util.Optional<FilePos>optionalEndPos()The end of the definitionjava.util.Optional<java.util.List<FieldType>>optionalExceptions()java.util.Optional<java.lang.Boolean>optionalOneWay()java.util.Optional<java.lang.String>optionalReturnType()java.util.Optional<FilePos>optionalStartPos()The start of the definition (position of return type)static net.morimekta.providence.descriptor.PStructDescriptorProvider<FunctionType,FunctionType._Field>provider()java.lang.StringtoString()intwriteBinary(net.morimekta.util.io.BigEndianBinaryWriter writer)
-
-
-
Field Detail
-
kDescriptor
public static final net.morimekta.providence.descriptor.PStructDescriptor<FunctionType,FunctionType._Field> kDescriptor
-
-
Method Detail
-
hasDocumentation
public boolean hasDocumentation()
-
getDocumentation
public java.lang.String getDocumentation()
- Returns:
- The
documentationvalue
-
optionalDocumentation
@Nonnull public java.util.Optional<java.lang.String> optionalDocumentation()
- Returns:
- Optional of the
documentationfield value.
-
hasOneWay
public boolean hasOneWay()
-
isOneWay
public boolean isOneWay()
- Returns:
- The
one_wayvalue
-
optionalOneWay
@Nonnull public java.util.Optional<java.lang.Boolean> optionalOneWay()
- Returns:
- Optional of the
one_wayfield value.
-
hasReturnType
public boolean hasReturnType()
-
getReturnType
public java.lang.String getReturnType()
- Returns:
- The
return_typevalue
-
optionalReturnType
@Nonnull public java.util.Optional<java.lang.String> optionalReturnType()
- Returns:
- Optional of the
return_typefield value.
-
hasName
public boolean hasName()
-
getName
@Nonnull public java.lang.String getName()
- Returns:
- The
namevalue
-
numParams
public int numParams()
-
hasParams
public boolean hasParams()
-
getParams
@Nonnull public java.util.List<FieldType> getParams()
- Returns:
- The
paramsvalue
-
numExceptions
public int numExceptions()
-
hasExceptions
public boolean hasExceptions()
-
getExceptions
public java.util.List<FieldType> getExceptions()
- Returns:
- The
exceptionsvalue
-
optionalExceptions
@Nonnull public java.util.Optional<java.util.List<FieldType>> optionalExceptions()
- Returns:
- Optional of the
exceptionsfield value.
-
numAnnotations
public int numAnnotations()
-
hasAnnotations
public boolean hasAnnotations()
-
getAnnotations
public java.util.Map<java.lang.String,java.lang.String> getAnnotations()
- Returns:
- The
annotationsvalue
-
optionalAnnotations
@Nonnull public java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> optionalAnnotations()
- Returns:
- Optional of the
annotationsfield value.
-
hasStartPos
public boolean hasStartPos()
-
getStartPos
public FilePos getStartPos()
The start of the definition (position of return type)- Returns:
- The
start_posvalue
-
optionalStartPos
@Nonnull public java.util.Optional<FilePos> optionalStartPos()
The start of the definition (position of return type)- Returns:
- Optional of the
start_posfield value.
-
hasEndPos
public boolean hasEndPos()
-
getEndPos
public FilePos getEndPos()
The end of the definition- Returns:
- The
end_posvalue
-
optionalEndPos
@Nonnull public java.util.Optional<FilePos> optionalEndPos()
The end of the definition- Returns:
- Optional of the
end_posfield value.
-
has
public boolean has(int key)
- Specified by:
hasin interfacenet.morimekta.providence.PMessage<FunctionType,FunctionType._Field>
-
get
public <T> T get(int key)
- Specified by:
getin interfacenet.morimekta.providence.PMessage<FunctionType,FunctionType._Field>
-
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,FunctionType._Field>- 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,FunctionType._Field>
-
provider
@Nonnull public static net.morimekta.providence.descriptor.PStructDescriptorProvider<FunctionType,FunctionType._Field> provider()
-
descriptor
@Nonnull public net.morimekta.providence.descriptor.PStructDescriptor<FunctionType,FunctionType._Field> descriptor()
- Specified by:
descriptorin interfacenet.morimekta.providence.PMessage<FunctionType,FunctionType._Field>- Specified by:
descriptorin interfacenet.morimekta.providence.PValue<FunctionType>
-
builder
public static FunctionType._Builder builder()
Make apmodel.FunctionTypebuilder.- Returns:
- The builder instance.
-
-