|
static Descriptors.FieldDescriptor.Type | rubyToFieldType (IRubyObject typeClass) |
|
static IRubyObject | fieldTypeToRuby (ThreadContext context, Descriptors.FieldDescriptor.Type type) |
|
static IRubyObject | fieldTypeToRuby (ThreadContext context, DescriptorProtos.FieldDescriptorProto.Type type) |
|
static void | checkType (ThreadContext context, Descriptors.FieldDescriptor.Type fieldType, IRubyObject value, RubyModule typeClass) |
|
static IRubyObject | wrapPrimaryValue (ThreadContext context, Descriptors.FieldDescriptor.Type fieldType, Object value) |
|
static int | num2uint (IRubyObject value) |
|
static long | num2ulong (Ruby runtime, IRubyObject value) |
|
static void | validateStringEncoding (Ruby runtime, Descriptors.FieldDescriptor.Type type, IRubyObject value) |
|
static void | checkNameAvailability (ThreadContext context, String name) |
|
static String | escapeIdentifier (String name) |
|
static String | unescapeIdentifier (String name) |
|
static boolean | isMapEntry (Descriptors.FieldDescriptor fieldDescriptor) |
|
static RubyFieldDescriptor | msgdefCreateField (ThreadContext context, String label, IRubyObject name, IRubyObject type, IRubyObject number, IRubyObject typeClass, RubyClass cFieldDescriptor) |
|
◆ checkIntTypePrecision()
◆ checkNameAvailability()
static void com.google.protobuf.jruby.Utils.checkNameAvailability |
( |
ThreadContext |
context, |
|
|
String |
name |
|
) |
| |
|
inlinestatic |
◆ checkType()
◆ escapeIdentifier()
static String com.google.protobuf.jruby.Utils.escapeIdentifier |
( |
String |
name | ) |
|
|
inlinestatic |
Replace invalid "." in descriptor with DOT
- Parameters
-
- Returns
◆ fieldTypeToRuby() [1/2]
◆ fieldTypeToRuby() [2/2]
◆ isMapEntry()
◆ isRubyNum()
static boolean com.google.protobuf.jruby.Utils.isRubyNum |
( |
Object |
value | ) |
|
|
inlinestaticprotected |
◆ msgdefCreateField()
static RubyFieldDescriptor com.google.protobuf.jruby.Utils.msgdefCreateField |
( |
ThreadContext |
context, |
|
|
String |
label, |
|
|
IRubyObject |
name, |
|
|
IRubyObject |
type, |
|
|
IRubyObject |
number, |
|
|
IRubyObject |
typeClass, |
|
|
RubyClass |
cFieldDescriptor |
|
) |
| |
|
inlinestatic |
◆ num2uint()
static int com.google.protobuf.jruby.Utils.num2uint |
( |
IRubyObject |
value | ) |
|
|
inlinestatic |
◆ num2ulong()
static long com.google.protobuf.jruby.Utils.num2ulong |
( |
Ruby |
runtime, |
|
|
IRubyObject |
value |
|
) |
| |
|
inlinestatic |
◆ rubyToFieldType()
◆ unescapeIdentifier()
static String com.google.protobuf.jruby.Utils.unescapeIdentifier |
( |
String |
name | ) |
|
|
inlinestatic |
Replace DOT in descriptor name with "."
- Parameters
-
- Returns
◆ validateStringEncoding()
◆ validateTypeClass()
◆ wrapPrimaryValue()
◆ BADNAME_REPLACEMENT
String com.google.protobuf.jruby.Utils.BADNAME_REPLACEMENT = "__DOT__" |
|
static |
◆ DESCRIPTOR_INSTANCE_VAR
String com.google.protobuf.jruby.Utils.DESCRIPTOR_INSTANCE_VAR = "@descriptor" |
|
static |
◆ EQUAL_SIGN
String com.google.protobuf.jruby.Utils.EQUAL_SIGN = "=" |
|
static |
The documentation for this class was generated from the following file:
- Source/ThirdParty/libwebrtc/Source/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/Utils.java