Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
com.google.protobuf.jruby.RubyDescriptor Class Reference
Inheritance diagram for com.google.protobuf.jruby.RubyDescriptor:
Inheritance graph
[legend]

Public Member Functions

IRubyObject addField (ThreadContext context, IRubyObject obj)
 
IRubyObject addOneof (ThreadContext context, IRubyObject obj)
 
IRubyObject each (ThreadContext context, Block block)
 
IRubyObject eachOneof (ThreadContext context, Block block)
 
DescriptorProtos.DescriptorProto.Builder getBuilder ()
 
Descriptors.Descriptor getDescriptor ()
 
IRubyObject getName (ThreadContext context)
 
IRubyObject initialize (ThreadContext context)
 
IRubyObject lookup (ThreadContext context, IRubyObject fieldName)
 
IRubyObject lookupOneof (ThreadContext context, IRubyObject name)
 
IRubyObject msgclass (ThreadContext context)
 
 RubyDescriptor (Ruby runtime, RubyClass klazz)
 
void setDescriptor (Descriptors.Descriptor descriptor)
 
void setMapEntry (boolean isMapEntry)
 
IRubyObject setName (ThreadContext context, IRubyObject name)
 

Static Public Member Functions

static void createRubyDescriptor (Ruby runtime)
 

Protected Member Functions

RubyFieldDescriptor lookup (String fieldName)
 

Private Member Functions

RubyModule buildClassFromDescriptor (ThreadContext context)
 

Private Attributes

DescriptorProtos.DescriptorProto.Builder builder
 
Descriptors.Descriptor descriptor
 
Map< String, RubyFieldDescriptorfieldDefMap
 
RubyModule klazz
 
IRubyObject name
 
Map< IRubyObject, RubyOneofDescriptoroneofDefs
 

Detailed Description

Definition at line 50 of file RubyDescriptor.java.

Constructor & Destructor Documentation

◆ RubyDescriptor()

com.google.protobuf.jruby.RubyDescriptor.RubyDescriptor ( Ruby  runtime,
RubyClass  klazz 
)
inline

Definition at line 63 of file RubyDescriptor.java.

Member Function Documentation

◆ addField()

IRubyObject com.google.protobuf.jruby.RubyDescriptor.addField ( ThreadContext  context,
IRubyObject  obj 
)
inline

Definition at line 120 of file RubyDescriptor.java.

◆ addOneof()

IRubyObject com.google.protobuf.jruby.RubyDescriptor.addOneof ( ThreadContext  context,
IRubyObject  obj 
)
inline

Definition at line 180 of file RubyDescriptor.java.

◆ buildClassFromDescriptor()

RubyModule com.google.protobuf.jruby.RubyDescriptor.buildClassFromDescriptor ( ThreadContext  context)
inlineprivate

Definition at line 236 of file RubyDescriptor.java.

◆ createRubyDescriptor()

static void com.google.protobuf.jruby.RubyDescriptor.createRubyDescriptor ( Ruby  runtime)
inlinestatic

Definition at line 51 of file RubyDescriptor.java.

◆ each()

IRubyObject com.google.protobuf.jruby.RubyDescriptor.each ( ThreadContext  context,
Block  block 
)
inline

Definition at line 161 of file RubyDescriptor.java.

◆ eachOneof()

IRubyObject com.google.protobuf.jruby.RubyDescriptor.eachOneof ( ThreadContext  context,
Block  block 
)
inline

Definition at line 198 of file RubyDescriptor.java.

◆ getBuilder()

DescriptorProtos.DescriptorProto.Builder com.google.protobuf.jruby.RubyDescriptor.getBuilder ( )
inline

Definition at line 228 of file RubyDescriptor.java.

◆ getDescriptor()

Descriptors.Descriptor com.google.protobuf.jruby.RubyDescriptor.getDescriptor ( )
inline

Definition at line 224 of file RubyDescriptor.java.

◆ getName()

IRubyObject com.google.protobuf.jruby.RubyDescriptor.getName ( ThreadContext  context)
inline

Definition at line 92 of file RubyDescriptor.java.

◆ initialize()

IRubyObject com.google.protobuf.jruby.RubyDescriptor.initialize ( ThreadContext  context)
inline

Definition at line 77 of file RubyDescriptor.java.

◆ lookup() [1/2]

RubyFieldDescriptor com.google.protobuf.jruby.RubyDescriptor.lookup ( String  fieldName)
inlineprotected

Definition at line 258 of file RubyDescriptor.java.

◆ lookup() [2/2]

IRubyObject com.google.protobuf.jruby.RubyDescriptor.lookup ( ThreadContext  context,
IRubyObject  fieldName 
)
inline

Definition at line 135 of file RubyDescriptor.java.

◆ lookupOneof()

IRubyObject com.google.protobuf.jruby.RubyDescriptor.lookupOneof ( ThreadContext  context,
IRubyObject  name 
)
inline

Definition at line 213 of file RubyDescriptor.java.

◆ msgclass()

IRubyObject com.google.protobuf.jruby.RubyDescriptor.msgclass ( ThreadContext  context)
inline

Definition at line 147 of file RubyDescriptor.java.

◆ setDescriptor()

void com.google.protobuf.jruby.RubyDescriptor.setDescriptor ( Descriptors.Descriptor  descriptor)
inline

Definition at line 220 of file RubyDescriptor.java.

◆ setMapEntry()

void com.google.protobuf.jruby.RubyDescriptor.setMapEntry ( boolean  isMapEntry)
inline

Definition at line 232 of file RubyDescriptor.java.

◆ setName()

IRubyObject com.google.protobuf.jruby.RubyDescriptor.setName ( ThreadContext  context,
IRubyObject  name 
)
inline

Definition at line 104 of file RubyDescriptor.java.

Member Data Documentation

◆ builder

DescriptorProtos.DescriptorProto.Builder com.google.protobuf.jruby.RubyDescriptor.builder
private

Definition at line 265 of file RubyDescriptor.java.

◆ descriptor

Descriptors.Descriptor com.google.protobuf.jruby.RubyDescriptor.descriptor
private

Definition at line 266 of file RubyDescriptor.java.

◆ fieldDefMap

Map<String, RubyFieldDescriptor> com.google.protobuf.jruby.RubyDescriptor.fieldDefMap
private

Definition at line 267 of file RubyDescriptor.java.

◆ klazz

RubyModule com.google.protobuf.jruby.RubyDescriptor.klazz
private

Definition at line 263 of file RubyDescriptor.java.

◆ name

IRubyObject com.google.protobuf.jruby.RubyDescriptor.name
private

Definition at line 262 of file RubyDescriptor.java.

◆ oneofDefs

Map<IRubyObject, RubyOneofDescriptor> com.google.protobuf.jruby.RubyDescriptor.oneofDefs
private

Definition at line 268 of file RubyDescriptor.java.


The documentation for this class was generated from the following file:


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:08