• Modules
    • By category
    • By name
    • Most popular
    • Most downloaded
    • Repository
  • Register
  • Log in
  • Help
    • Start using Ceylon Herd
    • Publish your first module
    • Module publishing guidelines
    • All about Ceylon
    • Keyboard Shortcuts

    • s Focus search module bar
      ? Open this information panel
      j Move selection down
      k Move selection up
      enter Open current selection
Module info
Name
Voitech / herd.type.support / 0.1.0
Backends JVM JavaScript
Maven coordinates
Compatible Ceylon release JVM: 1.2.x, 1.3.x (latest)
JavaScript: Unknown (10/0)
Published Feb 6, 2019
Stats Downloads (JVM): 115
Downloads (JS): 34
Source downloads: 111
Authors Wojciech Potiopa
License http://www.apache.org/licenses/LICENSE-2.0.html
Description

This module is toolbox for operating on types and it's declarations. It should simplify required operations.

  • Use flat object to extract type or declaration hierarchy into stream so it can be searched or filtered.

    value stringflatHierarchy = flat.types(`String`);
    assert(stringflatHierarchy.containsEvery([`SearchableList<Character>`,`List<Character>`,`Comparable<String>`,`Object`]));
    
    value stringflatHierarchy = flat.declarations(`class String`);
    assert(stringflatHierarchy.containsEvery([`interface SearchableList`,`interface List`,`interface Comparable`,`class Object`]));
    
Dependencies
ceylon.language/1.3.3
Usage
  • Import
 import herd.type.support "0.1.0";
Module links Members
Imported By
Browse
Download .car
Download .js
Download source archive
Download module documentation
View API documentation

Ceylon Herd v1.24 Copyright 2012-2022 Red Hat. About