public interface FieldParser
CodeLines
,
so the interface method is not returning any generated code.Modifier and Type | Method and Description |
---|---|
void |
parseIntoVariable(java.lang.String value,
java.lang.String variable)
Generates the code which parses the field value from some object and assigns it to the
variable.
|
static FieldParser |
parserFor(com.google.protobuf.Descriptors.FieldDescriptor field,
CodeLines jsOutput)
Creates a
FieldParser for the given field. |
void parseIntoVariable(java.lang.String value, java.lang.String variable)
The parsed value is then assigned to the specified variable.
value
- the name of the variable holding the value to parsevariable
- the name of the variable to receive the parsed valuestatic FieldParser parserFor(com.google.protobuf.Descriptors.FieldDescriptor field, CodeLines jsOutput)
FieldParser
for the given field.field
- the descriptor of the field to create the parser forjsOutput
- the lines to accumulate the generated codeFieldParser
of the appropriate type