Example #1
0
class SelectDependencies(datatype('Dependencies', ['product', 'deps_product']),
                         Selector):
    """Selects the dependencies of a Product for the Subject provided to the constructor."""
    def construct_node(self, subject, variants):
        return SelectDependenciesNode(subject, self.product, variants,
                                      self.deps_product)
Example #2
0
class Throw(datatype('Throw', ['msg']), State):
    """Indicates that a Node should have been able to return a value, but failed."""
    pass
Example #3
0
class Select(datatype('Subject', ['product']), Selector):
    """Selects the given Product for the Subject provided to the constructor."""
    def construct_node(self, subject, variants):
        return SelectNode(subject, self.product, variants)
Example #4
0
class Return(datatype('Return', ['value']), State):
    """Indicates that a Node successfully returned a value."""
    pass
Example #5
0
class SearchPath(datatype('SearchPath', ['dependencies'])):
    """A set of Directories to search."""
    pass
Example #6
0
class SourceRoots(datatype('SourceRoots', ['buildroot', 'srcroots'])):
    """Placeholder for the SourceRoot subsystem."""
    pass
Example #7
0
class JVMPackageName(datatype('JVMPackageName', ['name'])):
    """A typedef to represent a fully qualified JVM package name."""
    pass
Example #8
0
class ImportedJVMPackages(datatype('ImportedJVMPackages', ['dependencies'])):
    """Holds a list of 'JVMPackageName' dependencies."""
    pass