webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Static Public Member Functions | Static Public Attributes | Static Protected Member Functions | List of all members
com.google.protobuf.jruby.Utils Class Reference

Static Public Member Functions

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)
 

Static Public Attributes

static String BADNAME_REPLACEMENT = "__DOT__"
 
static String DESCRIPTOR_INSTANCE_VAR = "@descriptor"
 
static String EQUAL_SIGN = "="
 

Static Protected Member Functions

static void checkIntTypePrecision (ThreadContext context, Descriptors.FieldDescriptor.Type type, IRubyObject value)
 
static boolean isRubyNum (Object value)
 
static void validateTypeClass (ThreadContext context, Descriptors.FieldDescriptor.Type type, IRubyObject value)
 

Member Function Documentation

◆ checkIntTypePrecision()

static void com.google.protobuf.jruby.Utils.checkIntTypePrecision ( ThreadContext  context,
Descriptors.FieldDescriptor.Type  type,
IRubyObject  value 
)
inlinestaticprotected

◆ checkNameAvailability()

static void com.google.protobuf.jruby.Utils.checkNameAvailability ( ThreadContext  context,
String  name 
)
inlinestatic

◆ checkType()

static void com.google.protobuf.jruby.Utils.checkType ( ThreadContext  context,
Descriptors.FieldDescriptor.Type  fieldType,
IRubyObject  value,
RubyModule  typeClass 
)
inlinestatic

◆ escapeIdentifier()

static String com.google.protobuf.jruby.Utils.escapeIdentifier ( String  name)
inlinestatic

Replace invalid "." in descriptor with DOT

Parameters
name
Returns

◆ fieldTypeToRuby() [1/2]

static IRubyObject com.google.protobuf.jruby.Utils.fieldTypeToRuby ( ThreadContext  context,
Descriptors.FieldDescriptor.Type  type 
)
inlinestatic

◆ fieldTypeToRuby() [2/2]

static IRubyObject com.google.protobuf.jruby.Utils.fieldTypeToRuby ( ThreadContext  context,
DescriptorProtos.FieldDescriptorProto.Type  type 
)
inlinestatic

◆ isMapEntry()

static boolean com.google.protobuf.jruby.Utils.isMapEntry ( Descriptors.FieldDescriptor  fieldDescriptor)
inlinestatic

◆ 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()

static Descriptors.FieldDescriptor.Type com.google.protobuf.jruby.Utils.rubyToFieldType ( IRubyObject  typeClass)
inlinestatic

◆ unescapeIdentifier()

static String com.google.protobuf.jruby.Utils.unescapeIdentifier ( String  name)
inlinestatic

Replace DOT in descriptor name with "."

Parameters
name
Returns

◆ validateStringEncoding()

static void com.google.protobuf.jruby.Utils.validateStringEncoding ( Ruby  runtime,
Descriptors.FieldDescriptor.Type  type,
IRubyObject  value 
)
inlinestatic

◆ validateTypeClass()

static void com.google.protobuf.jruby.Utils.validateTypeClass ( ThreadContext  context,
Descriptors.FieldDescriptor.Type  type,
IRubyObject  value 
)
inlinestaticprotected

◆ wrapPrimaryValue()

static IRubyObject com.google.protobuf.jruby.Utils.wrapPrimaryValue ( ThreadContext  context,
Descriptors.FieldDescriptor.Type  fieldType,
Object  value 
)
inlinestatic

Member Data Documentation

◆ 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: