@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) |
Object |
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 |
num(int key) |
int |
numAnnotations() |
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()
public boolean hasType()
public boolean hasName()
public boolean hasValue()
public int numAnnotations()
public boolean hasAnnotations()
public boolean hasStartLineNo()
public int getStartLineNo()
public boolean hasStartLinePos()
public int getStartLinePos()
public boolean has(int key)
has in interface PMessage<ConstType,ConstType._Field>public int num(int key)
num in interface PMessage<ConstType,ConstType._Field>public Object 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>public static PStructDescriptorProvider<ConstType,ConstType._Field> provider()
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–2017 morimekta.net. All rights reserved.