public abstract class FieldSchema<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
fieldNumber |
protected com.fasterxml.jackson.databind.JavaType |
javaType |
protected String |
name |
protected boolean |
packed |
protected boolean |
primitive |
protected io.protostuff.compiler.model.Field |
protoField |
protected int |
tag |
protected int |
tagSize |
| Constructor and Description |
|---|
FieldSchema(io.protostuff.compiler.model.Field protoField,
com.fasterxml.jackson.databind.JavaType javaType) |
| Modifier and Type | Method and Description |
|---|---|
void |
getAndWriteTo(OutputEx output,
T message) |
int |
getFieldNumber() |
io.protostuff.compiler.model.Field |
getProtoField() |
boolean |
isPrimitive() |
int |
mergeFrom(InputEx input,
T message) |
void |
writeTo(OutputEx output,
Object value)
write from map
|
protected final io.protostuff.compiler.model.Field protoField
protected final String name
protected final int fieldNumber
protected final int tag
protected final int tagSize
protected final boolean packed
protected final com.fasterxml.jackson.databind.JavaType javaType
protected final boolean primitive
public FieldSchema(io.protostuff.compiler.model.Field protoField,
com.fasterxml.jackson.databind.JavaType javaType)
public int getFieldNumber()
public io.protostuff.compiler.model.Field getProtoField()
public int mergeFrom(InputEx input, T message) throws IOException
IOExceptionpublic boolean isPrimitive()
public void getAndWriteTo(OutputEx output, T message) throws IOException
IOExceptionpublic void writeTo(OutputEx output, Object value) throws IOException
output - value - field value, will not be nullIOExceptionCopyright © 2017–2019 The Apache Software Foundation. All rights reserved.