Class Field<T>
java.lang.Object
io.protostuff.runtime.Field<T>
- Direct Known Subclasses:
RuntimeCollectionField, RuntimeDerivativeField, RuntimeMapField, RuntimeMessageField, RuntimeObjectField
Represents a field of a message/pojo.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intfinal Stringfinal intfinal booleanfinal WireFormat.FieldType -
Constructor Summary
ConstructorsConstructorDescriptionField(WireFormat.FieldType type, int number, String name, boolean repeated, Tag tag) Field(WireFormat.FieldType type, int number, String name, Tag tag) -
Method Summary
Modifier and TypeMethodDescriptioncopy(IdStrategy strategy) No copy by default.protected abstract voidReads the field value into themessage.protected abstract voidTransfer the input field to the output field.protected abstract voidWrites the value of a field to theoutput.
-
Field Details
-
type
-
number
public final int number -
name
-
repeated
public final boolean repeated -
groupFilter
public final int groupFilter
-
-
Constructor Details
-
Field
-
Field
-
-
Method Details
-
copy
No copy by default. -
writeTo
Writes the value of a field to theoutput.- Throws:
IOException
-
mergeFrom
Reads the field value into themessage.- Throws:
IOException
-
transfer
protected abstract void transfer(Pipe pipe, Input input, Output output, boolean repeated) throws IOException Transfer the input field to the output field.- Throws:
IOException
-