eric6.Utilities.ClassBrowsers.protoclbr
Parse a ProtoBuf protocol file and retrieve messages, enums, services and
rpc methods.
It is based on the Python class browser found in this package.
Global Attributes
SUPPORTED_TYPES |
_commentsub |
_getnext |
_modules |
_normalize |
Classes
Enum |
Class to represent a ProtoBuf Enum. |
Message |
Class to represent a ProtoBuf Message. |
Service |
Class to represent a ProtoBuf Service. |
ServiceMethod |
Class to represent a ProtoBuf Service Method. |
VisibilityMixin |
Mixin class implementing the notion of visibility. |
Functions
readmodule_ex |
Read a ProtoBuf protocol file and return a dictionary of messages, enums, services and rpc methods. |
Enum
Class to represent a ProtoBuf Enum.
Derived from
ClbrBaseClasses.Enum, VisibilityMixin
Class Attributes
Class Methods
Methods
Static Methods
Enum (Constructor)
Enum(module, name, file, lineno)
Constructor
- module (str)
-
name of the module containing this enum
- name (str)
-
name of this enum
- file (str)
-
filename containing this enum
- lineno (int)
-
linenumber of the message enum
Message
Class to represent a ProtoBuf Message.
Derived from
ClbrBaseClasses.Module, VisibilityMixin
Class Attributes
Class Methods
Methods
Static Methods
Message (Constructor)
Message(module, name, file, lineno)
Constructor
- module (str)
-
name of the module containing this message
- name (str)
-
name of this message
- file (str)
-
filename containing this message
- lineno (int)
-
linenumber of the message definition
Service
Class to represent a ProtoBuf Service.
Derived from
ClbrBaseClasses.Class, VisibilityMixin
Class Attributes
Class Methods
Methods
Static Methods
Service (Constructor)
Service(module, name, file, lineno)
Constructor
- module (str)
-
name of the module containing this service
- name (str)
-
name of this service
- file (str)
-
filename containing this service
- lineno (int)
-
linenumber of the service definition
ServiceMethod
Class to represent a ProtoBuf Service Method.
Derived from
ClbrBaseClasses.Function, VisibilityMixin
Class Attributes
Class Methods
Methods
Static Methods
ServiceMethod (Constructor)
ServiceMethod(name, file, lineno, signature, returns)
Constructor
- name (str)
-
name of this service method
- file (str)
-
filename containing this service method
- lineno (int)
-
linenumber of the service method definition
- signature (str)
-
parameter list of the service method
- returns (str)
-
return type of the service method
VisibilityMixin
Mixin class implementing the notion of visibility.
Derived from
ClbrBaseClasses.ClbrVisibilityMixinBase
Class Attributes
Class Methods
Methods
Static Methods
VisibilityMixin (Constructor)
VisibilityMixin()
Constructor
readmodule_ex
readmodule_ex(module, path=None)
Read a ProtoBuf protocol file and return a dictionary of messages, enums,
services and rpc methods.
- module (str)
-
name of the ProtoBuf protocol file
- path (list of str)
-
path the file should be searched in
- Returns:
-
the resulting dictionary
- Return Type:
-
dict