Reference Guide
2.5.0
|
Public Member Functions | |
def | __init__ (self, api="") |
def | create (self, parse_tree, name=None) |
Factory to create the required API-specific information about coded-kernel metadata and a reference to its code. :param str api: The API for which this factory is to create Kernel \ information. If it is not supplied then the default API, as \ specified in the PSyclone config file, is used.
def psyclone.parse.kernel.KernelTypeFactory.create | ( | self, | |
parse_tree, | |||
name = None |
|||
) |
Create API-specific information about the kernel metadata and a reference to its code. The API is set when the factory is created. :param parse_tree: The fparser1 parse tree for the Kernel code. :type parse_tree: :py:class:`fparser.one.block_statements.BeginSource` :param name: the name of the Kernel. Defaults to None if \ one is not provided. :type name: str or NoneType :raises ParseError: if the supplied API is not supported.
Definition at line 227 of file kernel.py.
References psyclone.parse.kernel.KernelTypeFactory._type, and psyclone.psyGen.PSyFactory._type.