@Generated(value="providence-maven-plugin") @Immutable public class ConstType extends Object implements PMessage<ConstType,ConstType._Field>, Comparable<ConstType>, Serializable, 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 PStructDescriptor<ConstType,ConstType._Field> |
kDescriptor |
| Modifier and Type | Method and Description |
|---|---|
String |
asString() |
static ConstType._Builder |
builder()
Make a model.ConstType builder.
|
int |
compareTo(ConstType other) |
PStructDescriptor<ConstType,ConstType._Field> |
descriptor() |
boolean |
equals(Object o) |
<T> T |
get(int key) |
Map<String,String> |
getAnnotations() |
String |
getDocumentation() |
String |
getName() |
int |
getStartLineNo()
Note the start of the const in the parsed thrift file, this can be used
for making more accurate exception / parse data from the const parser.
|
int |
getStartLinePos() |
String |
getType() |
String |
getValue() |
boolean |
has(int key) |
boolean |
hasAnnotations() |
boolean |
hasDocumentation() |
int |
hashCode() |
boolean |
hasName() |
boolean |
hasStartLineNo() |
boolean |
hasStartLinePos() |
boolean |
hasType() |
boolean |
hasValue() |
ConstType._Builder |
mutate() |
int |
numAnnotations() |
Optional<Map<String,String>> |
optionalAnnotations() |
Optional<String> |
optionalDocumentation() |
OptionalInt |
optionalStartLineNo()
Note the start of the const in the parsed thrift file, this can be used
for making more accurate exception / parse data from the const parser.
|
OptionalInt |
optionalStartLinePos() |
static PStructDescriptorProvider<ConstType,ConstType._Field> |
provider() |
String |
toString() |
int |
writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer) |
public static final PStructDescriptor<ConstType,ConstType._Field> kDescriptor
public boolean hasDocumentation()
public String getDocumentation()
@Nonnull public Optional<String> optionalDocumentation()
public boolean hasType()
public boolean hasName()
public boolean hasValue()
public int numAnnotations()
public boolean hasAnnotations()
@Nonnull public Optional<Map<String,String>> optionalAnnotations()
public boolean hasStartLineNo()
public int getStartLineNo()
@Nonnull public OptionalInt optionalStartLineNo()
public boolean hasStartLinePos()
public int getStartLinePos()
@Nonnull public OptionalInt optionalStartLinePos()
public boolean has(int key)
has in interface PMessage<ConstType,ConstType._Field>public <T> T get(int key)
get in interface PMessage<ConstType,ConstType._Field>@Nonnull public String asString()
asString in interface PMessage<ConstType,ConstType._Field>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 BinaryWriterIOException@Nonnull public ConstType._Builder mutate()
mutate in interface PMessage<ConstType,ConstType._Field>@Nonnull public static PStructDescriptorProvider<ConstType,ConstType._Field> provider()
@Nonnull public PStructDescriptor<ConstType,ConstType._Field> descriptor()
descriptor in interface PMessage<ConstType,ConstType._Field>descriptor in interface PValue<ConstType>public static ConstType._Builder builder()
Copyright © 2015–2018 morimekta.net. All rights reserved.