proxygen
cpp.ast.Parameter Class Reference
Inheritance diagram for cpp.ast.Parameter:
cpp.ast.Node cpp.ast.Node cpp.ast.Node

Public Member Functions

def __init__ (self, start, end, name, parameter_type, default)
 
def Requires (self, node)
 
def __str__ (self)
 
def __init__ (self, start, end, name, parameter_type, default)
 
def Requires (self, node)
 
def __str__ (self)
 
def __init__ (self, start, end, name, parameter_type, default)
 
def Requires (self, node)
 
def __str__ (self)
 
- Public Member Functions inherited from cpp.ast.Node
def __init__ (self, start, end)
 
def IsDeclaration (self)
 
def IsDefinition (self)
 
def IsExportable (self)
 
def Requires (self, node)
 
def XXX__str__ (self)
 
def __repr__ (self)
 
def __init__ (self, start, end)
 
def IsDeclaration (self)
 
def IsDefinition (self)
 
def IsExportable (self)
 
def Requires (self, node)
 
def XXX__str__ (self)
 
def __repr__ (self)
 
def __init__ (self, start, end)
 
def IsDeclaration (self)
 
def IsDefinition (self)
 
def IsExportable (self)
 
def Requires (self, node)
 
def XXX__str__ (self)
 
def __repr__ (self)
 

Public Attributes

 name
 
 type
 
 default
 
- Public Attributes inherited from cpp.ast.Node
 start
 
 end
 

Detailed Description

Definition at line 213 of file ast.py.

Constructor & Destructor Documentation

def cpp.ast.Parameter.__init__ (   self,
  start,
  end,
  name,
  parameter_type,
  default 
)

Definition at line 214 of file ast.py.

Referenced by cpp.ast.Parameter.__init__().

214  def __init__(self, start, end, name, parameter_type, default):
215  Node.__init__(self, start, end)
216  self.name = name
217  self.type = parameter_type
218  self.default = default
219 
def __init__(self, start, end, name, parameter_type, default)
Definition: ast.py:214
def cpp.ast.Parameter.__init__ (   self,
  start,
  end,
  name,
  parameter_type,
  default 
)

Definition at line 214 of file ast.py.

References cpp.ast.Parameter.__init__(), cpp.ast.Parameter.default, message.name, cpp.ast.Define.name, cpp.ast.Parameter.name, name, url_test.name, message.type, http_parser.type, and cpp.ast.Parameter.type.

214  def __init__(self, start, end, name, parameter_type, default):
215  Node.__init__(self, start, end)
216  self.name = name
217  self.type = parameter_type
218  self.default = default
219 
def __init__(self, start, end, name, parameter_type, default)
Definition: ast.py:214
def cpp.ast.Parameter.__init__ (   self,
  start,
  end,
  name,
  parameter_type,
  default 
)

Definition at line 214 of file ast.py.

References cpp.ast.Parameter.__init__(), cpp.ast.Parameter.default, message.name, cpp.ast.Define.name, cpp.ast.Parameter.name, name, url_test.name, message.type, http_parser.type, and cpp.ast.Parameter.type.

214  def __init__(self, start, end, name, parameter_type, default):
215  Node.__init__(self, start, end)
216  self.name = name
217  self.type = parameter_type
218  self.default = default
219 
def __init__(self, start, end, name, parameter_type, default)
Definition: ast.py:214

Member Function Documentation

def cpp.ast.Parameter.__str__ (   self)

Definition at line 224 of file ast.py.

References cpp.ast.Node._StringHelper(), cpp.ast.Parameter.default, join, message.name, cpp.ast.Define.name, cpp.ast.Parameter.name, name, url_test.name, message.type, http_parser.type, and cpp.ast.Parameter.type.

Referenced by cpp.ast.Parameter.__str__().

224  def __str__(self):
225  name = str(self.type)
226  suffix = '%s %s' % (name, self.name)
227  if self.default:
228  suffix += ' = ' + ''.join([d.name for d in self.default])
229  return self._StringHelper(self.__class__.__name__, suffix)
230 
231 
def _StringHelper(self, name, suffix)
Definition: ast.py:135
def __str__(self)
Definition: ast.py:224
#define join
def cpp.ast.Parameter.__str__ (   self)

Definition at line 224 of file ast.py.

References cpp.ast.Parameter.__str__(), cpp.ast.Node._StringHelper(), cpp.ast.Parameter.default, join, message.name, cpp.ast.Define.name, cpp.ast.Parameter.name, name, url_test.name, message.type, http_parser.type, and cpp.ast.Parameter.type.

224  def __str__(self):
225  name = str(self.type)
226  suffix = '%s %s' % (name, self.name)
227  if self.default:
228  suffix += ' = ' + ''.join([d.name for d in self.default])
229  return self._StringHelper(self.__class__.__name__, suffix)
230 
231 
def _StringHelper(self, name, suffix)
Definition: ast.py:135
def __str__(self)
Definition: ast.py:224
#define join
def cpp.ast.Parameter.__str__ (   self)

Definition at line 224 of file ast.py.

References cpp.ast.Parameter.__str__(), cpp.ast.Node._StringHelper(), cpp.ast.Parameter.default, join, message.name, cpp.ast.Define.name, cpp.ast.Parameter.name, name, url_test.name, message.type, http_parser.type, and cpp.ast.Parameter.type.

224  def __str__(self):
225  name = str(self.type)
226  suffix = '%s %s' % (name, self.name)
227  if self.default:
228  suffix += ' = ' + ''.join([d.name for d in self.default])
229  return self._StringHelper(self.__class__.__name__, suffix)
230 
231 
def _StringHelper(self, name, suffix)
Definition: ast.py:135
def __str__(self)
Definition: ast.py:224
#define join
def cpp.ast.Parameter.Requires (   self,
  node 
)

Definition at line 220 of file ast.py.

Referenced by cpp.ast.Parameter.Requires().

220  def Requires(self, node):
221  # TODO(nnorwitz): handle namespaces, etc.
222  return self.type.name == node.name
223 
def Requires(self, node)
Definition: ast.py:220
def cpp.ast.Parameter.Requires (   self,
  node 
)

Definition at line 220 of file ast.py.

References cpp.ast.Parameter.Requires().

220  def Requires(self, node):
221  # TODO(nnorwitz): handle namespaces, etc.
222  return self.type.name == node.name
223 
def Requires(self, node)
Definition: ast.py:220
def cpp.ast.Parameter.Requires (   self,
  node 
)

Definition at line 220 of file ast.py.

References cpp.ast.Parameter.Requires().

220  def Requires(self, node):
221  # TODO(nnorwitz): handle namespaces, etc.
222  return self.type.name == node.name
223 
def Requires(self, node)
Definition: ast.py:220

Member Data Documentation

cpp.ast.Parameter.default

Definition at line 218 of file ast.py.

Referenced by cpp.ast.Parameter.__init__(), and cpp.ast.Parameter.__str__().


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