示例#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)
示例#2
0
class Throw(datatype('Throw', ['msg']), State):
    """Indicates that a Node should have been able to return a value, but failed."""
    pass
示例#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)
示例#4
0
class Return(datatype('Return', ['value']), State):
    """Indicates that a Node successfully returned a value."""
    pass
示例#5
0
class SearchPath(datatype('SearchPath', ['dependencies'])):
    """A set of Directories to search."""
    pass
示例#6
0
class SourceRoots(datatype('SourceRoots', ['buildroot', 'srcroots'])):
    """Placeholder for the SourceRoot subsystem."""
    pass
示例#7
0
class JVMPackageName(datatype('JVMPackageName', ['name'])):
    """A typedef to represent a fully qualified JVM package name."""
    pass
示例#8
0
class ImportedJVMPackages(datatype('ImportedJVMPackages', ['dependencies'])):
    """Holds a list of 'JVMPackageName' dependencies."""
    pass