@Generated(value="net.morimekta.providence:providence-generator-java", comments="java:serializable") @Immutable public class ConstType extends Object implements Decl, ConstType_OrBuilder, net.morimekta.providence.PMessage<ConstType>, Comparable<ConstType>, Serializable, net.morimekta.providence.serializer.binary.BinaryWriter
| Modifier and Type | Class and Description |
|---|---|
static class |
ConstType._Builder
const <type> <name> = <value>
|
static class |
ConstType._Field |
| Modifier and Type | Field and Description |
|---|---|
static net.morimekta.providence.descriptor.PStructDescriptor<ConstType> |
kDescriptor |
| Modifier and Type | Method and Description |
|---|---|
String |
asString() |
static ConstType._Builder |
builder()
Make a
p_model.ConstType builder. |
int |
compareTo(ConstType other) |
net.morimekta.providence.descriptor.PStructDescriptor<ConstType> |
descriptor() |
boolean |
equals(Object o) |
<T> T |
get(int key) |
Map<String,String> |
getAnnotations() |
String |
getDocumentation()
Documentation for the specific declaration.
|
String |
getName()
Name of the type, constant or service.
|
String |
getType() |
String |
getValue() |
boolean |
has(int key) |
boolean |
hasAnnotations() |
boolean |
hasDocumentation() |
int |
hashCode() |
boolean |
hasName() |
boolean |
hasType() |
boolean |
hasValue() |
ConstType._Builder |
mutate() |
int |
numAnnotations() |
Optional<Map<String,String>> |
optionalAnnotations() |
Optional<String> |
optionalDocumentation()
Documentation for the specific declaration.
|
static net.morimekta.providence.descriptor.PStructDescriptorProvider<ConstType> |
provider() |
String |
toString() |
int |
writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer) |
public static final net.morimekta.providence.descriptor.PStructDescriptor<ConstType> kDescriptor
public boolean hasDocumentation()
hasDocumentation in interface Declpublic String getDocumentation()
DeclgetDocumentation in interface Decldocumentation value@Nonnull public Optional<String> optionalDocumentation()
DecloptionalDocumentation in interface Decldocumentation field value.public boolean hasType()
hasType in interface ConstType_OrBuilder@Nonnull public String getType()
getType in interface ConstType_OrBuildertype valuepublic boolean hasName()
@Nonnull public String getName()
Declpublic boolean hasValue()
hasValue in interface ConstType_OrBuilder@Nonnull public String getValue()
getValue in interface ConstType_OrBuildervalue valuepublic int numAnnotations()
numAnnotations in interface ConstType_OrBuilderpublic boolean hasAnnotations()
hasAnnotations in interface ConstType_OrBuilderpublic Map<String,String> getAnnotations()
getAnnotations in interface ConstType_OrBuilderannotations value@Nonnull public Optional<Map<String,String>> optionalAnnotations()
optionalAnnotations in interface ConstType_OrBuilderannotations field value.public boolean has(int key)
has in interface net.morimekta.providence.PMessageOrBuilder<ConstType>public <T> T get(int key)
get in interface net.morimekta.providence.PMessageOrBuilder<ConstType>@Nonnull public String asString()
asString in interface net.morimekta.providence.PMessage<ConstType>asString in interface net.morimekta.util.Stringablepublic int compareTo(ConstType other)
compareTo in interface Comparable<ConstType>public int writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer)
throws IOException
writeBinary in interface net.morimekta.providence.serializer.binary.BinaryWriterIOException@Nonnull public ConstType._Builder mutate()
mutate in interface net.morimekta.providence.PMessage<ConstType>@Nonnull public static net.morimekta.providence.descriptor.PStructDescriptorProvider<ConstType> provider()
@Nonnull public net.morimekta.providence.descriptor.PStructDescriptor<ConstType> descriptor()
public static ConstType._Builder builder()
p_model.ConstType builder.Copyright © 2015–2020 morimekta.net. All rights reserved.