Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
pddm.SourceFile Class Reference
Inheritance diagram for pddm.SourceFile:
Inheritance graph
[legend]

Classes

class  DefinitionSection
 
class  ExpansionSection
 
class  ImportDefinesSection
 
class  SectionBase
 
class  TextSection
 

Public Member Functions

def __init__ (self, a_file, import_resolver=None)
 
def __init__ (self, a_file, import_resolver=None)
 
def original_content (self)
 
def original_content (self)
 
def ProcessContent (self, strip_expansion=False)
 
def ProcessContent (self, strip_expansion=False)
 
def processed_content (self)
 
def processed_content (self)
 

Private Member Functions

def _MakeSection (self, line, line_num)
 
def _MakeSection (self, line, line_num)
 
def _ParseFile (self)
 
def _ParseFile (self)
 

Private Attributes

 _import_resolver
 
 _original_content
 
 _processed_content
 
 _sections
 

Detailed Description

Represents a source file with PDDM directives in it.

Definition at line 361 of file bloaty/third_party/protobuf/objectivec/DevTools/pddm.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

def pddm.SourceFile.__init__ (   self,
  a_file,
  import_resolver = None 
)
Initializes the file reading in the file.

Args:
  a_file: The file to read in.
  import_resolver: a function that given a path will return a stream for
the contents.

Raises:
  PDDMError if there are any issues.

Definition at line 364 of file bloaty/third_party/protobuf/objectivec/DevTools/pddm.py.

◆ __init__() [2/2]

def pddm.SourceFile.__init__ (   self,
  a_file,
  import_resolver = None 
)
Initializes the file reading in the file.

Args:
  a_file: The file to read in.
  import_resolver: a function that given a path will return a stream for
the contents.

Raises:
  PDDMError if there are any issues.

Definition at line 364 of file protobuf/objectivec/DevTools/pddm.py.

Member Function Documentation

◆ _MakeSection() [1/2]

def pddm.SourceFile._MakeSection (   self,
  line,
  line_num 
)
private

◆ _MakeSection() [2/2]

def pddm.SourceFile._MakeSection (   self,
  line,
  line_num 
)
private

Definition at line 589 of file protobuf/objectivec/DevTools/pddm.py.

◆ _ParseFile() [1/2]

def pddm.SourceFile._ParseFile (   self)
private

◆ _ParseFile() [2/2]

def pddm.SourceFile._ParseFile (   self)
private

Definition at line 571 of file protobuf/objectivec/DevTools/pddm.py.

◆ original_content() [1/2]

def pddm.SourceFile.original_content (   self)

Definition at line 621 of file protobuf/objectivec/DevTools/pddm.py.

◆ original_content() [2/2]

def pddm.SourceFile.original_content (   self)

◆ ProcessContent() [1/2]

def pddm.SourceFile.ProcessContent (   self,
  strip_expansion = False 
)
Processes the file contents.

Definition at line 605 of file bloaty/third_party/protobuf/objectivec/DevTools/pddm.py.

◆ ProcessContent() [2/2]

def pddm.SourceFile.ProcessContent (   self,
  strip_expansion = False 
)
Processes the file contents.

Definition at line 605 of file protobuf/objectivec/DevTools/pddm.py.

◆ processed_content() [1/2]

def pddm.SourceFile.processed_content (   self)

Definition at line 625 of file protobuf/objectivec/DevTools/pddm.py.

◆ processed_content() [2/2]

def pddm.SourceFile.processed_content (   self)

Member Data Documentation

◆ _import_resolver

pddm.SourceFile._import_resolver
private

◆ _original_content

pddm.SourceFile._original_content
private

◆ _processed_content

pddm.SourceFile._processed_content
private

◆ _sections

pddm.SourceFile._sections
private

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:41