public final class PrimitiveParsers
extends java.lang.Object
PrimitiveParser
based on the passed field type.Modifier and Type | Method and Description |
---|---|
static PrimitiveParser |
createFor(com.google.protobuf.Descriptors.FieldDescriptor.Type fieldType,
CodeLines jsOutput)
Creates the new instance of
PrimitiveParser for the given field type. |
public static PrimitiveParser createFor(com.google.protobuf.Descriptors.FieldDescriptor.Type fieldType, CodeLines jsOutput)
PrimitiveParser
for the given field type.fieldType
- the type of the field for which to create the parserjsOutput
- the JsOutput
to accumulate the generated codePrimitiveParser
java.lang.IllegalStateException
- if the parser for the specified type cannot be found