Package net.morimekta.providence.model
Class ConstType
- java.lang.Object
-
- net.morimekta.providence.model.ConstType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConstType>
,ConstType_OrBuilder
,Decl
,net.morimekta.providence.PMessage<ConstType>
,net.morimekta.providence.PMessageOrBuilder<ConstType>
,net.morimekta.providence.PValue<ConstType>
,net.morimekta.providence.serializer.binary.BinaryWriter
,net.morimekta.util.Stringable
@Generated(value="net.morimekta.providence:providence-generator-java", comments="java:serializable") @Immutable public class ConstType extends java.lang.Object implements Decl, ConstType_OrBuilder, net.morimekta.providence.PMessage<ConstType>, java.lang.Comparable<ConstType>, java.io.Serializable, net.morimekta.providence.serializer.binary.BinaryWriter
const <type> <name> = <value>- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConstType._Builder
const <type> <name> = <value>static class
ConstType._Field
-
Field Summary
Fields Modifier and Type Field Description static net.morimekta.providence.descriptor.PStructDescriptor<ConstType>
kDescriptor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
asString()
static ConstType._Builder
builder()
Make ap_model.ConstType
builder.int
compareTo(ConstType other)
net.morimekta.providence.descriptor.PStructDescriptor<ConstType>
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.lang.String
getName()
Name of the type, constant or service.java.lang.String
getType()
java.lang.String
getValue()
boolean
has(int key)
boolean
hasAnnotations()
boolean
hasDocumentation()
int
hashCode()
boolean
hasName()
boolean
hasType()
boolean
hasValue()
ConstType._Builder
mutate()
int
numAnnotations()
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.static net.morimekta.providence.descriptor.PStructDescriptorProvider<ConstType>
provider()
java.lang.String
toString()
int
writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer)
-
-
-
Field Detail
-
kDescriptor
public static final net.morimekta.providence.descriptor.PStructDescriptor<ConstType> 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.
-
hasType
public boolean hasType()
- Specified by:
hasType
in interfaceConstType_OrBuilder
- Returns:
- If type is present.
-
getType
@Nonnull public java.lang.String getType()
- Specified by:
getType
in interfaceConstType_OrBuilder
- Returns:
- The
type
value
-
hasName
public boolean hasName()
-
getName
@Nonnull public java.lang.String getName()
Description copied from interface:Decl
Name of the type, constant or service.
-
hasValue
public boolean hasValue()
- Specified by:
hasValue
in interfaceConstType_OrBuilder
- Returns:
- If value is present.
-
getValue
@Nonnull public java.lang.String getValue()
- Specified by:
getValue
in interfaceConstType_OrBuilder
- Returns:
- The
value
value
-
numAnnotations
public int numAnnotations()
- Specified by:
numAnnotations
in interfaceConstType_OrBuilder
- Returns:
- Number of entries in annotations.
-
hasAnnotations
public boolean hasAnnotations()
- Specified by:
hasAnnotations
in interfaceConstType_OrBuilder
- Returns:
- If annotations is present.
-
getAnnotations
public java.util.Map<java.lang.String,java.lang.String> getAnnotations()
- Specified by:
getAnnotations
in interfaceConstType_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 interfaceConstType_OrBuilder
- Returns:
- Optional of the
annotations
field value.
-
has
public boolean has(int key)
- Specified by:
has
in interfacenet.morimekta.providence.PMessageOrBuilder<ConstType>
-
get
public <T> T get(int key)
- Specified by:
get
in interfacenet.morimekta.providence.PMessageOrBuilder<ConstType>
-
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<ConstType>
- Specified by:
asString
in interfacenet.morimekta.util.Stringable
-
compareTo
public int compareTo(ConstType other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ConstType>
-
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 ConstType._Builder mutate()
- Specified by:
mutate
in interfacenet.morimekta.providence.PMessage<ConstType>
-
provider
@Nonnull public static net.morimekta.providence.descriptor.PStructDescriptorProvider<ConstType> provider()
-
descriptor
@Nonnull public net.morimekta.providence.descriptor.PStructDescriptor<ConstType> descriptor()
-
builder
public static ConstType._Builder builder()
Make ap_model.ConstType
builder.- Returns:
- The builder instance.
-
-