Group: Ceylon
1. Ceylon Language Module101 usages
ceylon » language
The Ceylon language module containing the core definitions
referred to by the [language specification][spec], along
with some basic functionality of use to most programs:
- The [[root package|package ceylon.language]] defines
general-purpose functionality including support for
[[numbers|Numeric]] and [[character strings|String]],
[[streams|Iterable]] and [[sequences|Sequential]],
[[exceptions|Throwable]], and [[null values|Null]].
- The Ceylon _metamodel_ is defined in
[[package ...
Last Release on Feb 13, 2021
Relocated → org.ceylon-lang »
ceylon.language
2. Ceylon Collection Platform Module46 usages
ceylon » collectionApache
Library providing general-purpose mutable lists, sets, and
maps.
The following interfaces define abstract mutable collection
types:
- [[MutableList]] is a mutable [[List]],
- [[MutableSet]] is a mutable [[Set]], and
- [[MutableMap]] is a mutable [[Map]].
These interfaces define abstract sorted collection types:
- [[SortedSet]] is a sorted [[Set]], and
- [[SortedMap]] is a sorted [[Map]].
In addition, dedicated [[Stack]] and [[Queue]] interfaces
are defined, representing specialized kinds of ...
Last Release on Feb 13, 2021
4. Ceylon JSON Platform Module18 usages
ceylon » jsonApache
Contains everything required to parse and serialise JSON
data.
Sample usage for parsing and accessing JSON:
import ceylon.json {
parse, Object = Object
}
String getAuthor(String json){
value parsedJson = parse(json);
"author must be a string"
assert(is Object parsedJson, is String author = parsedJson["author"]);
return author;
}
Alternatively, this variation will result in an
[[InvalidTypeException]] instead of an [[AssertionError]]
if the input ...
Last Release on Feb 13, 2021
5. Ceylon File Platform Module15 usages
ceylon » file
API for accessing hierarchical file systems. Clients use
[[Path]]s to obtain [[Resource]]s representing files or
directories.
`Path` contains many useful operations for manipulating
paths:
value path = parsePath("/Users/Trompon/Documents");
value child = path.childPath("hello.txt");
value sibling = child.siblingPath("goodbye.txt");
value parent = path.parent;
The attribute [[resource|Path.resource]] of `Path` is used
to obtain a `Resource`. It is usually necessary to narrow a ...
Last Release on Feb 13, 2021
6. Ceylon Time Platform Module10 usages
ceylon » time
Date and Time library for Ceylon language SDK.
This library is loosely modeled/inspired by the JodaTime/JSR-310 date/time library.
Last Release on Feb 13, 2021
7. Ceylon IO Platform Module9 usages
ceylon » ioApache
This module allows you to read and write to streams, such
as files, sockets and pipes.
See the `ceylon.io` package for usage examples.
Last Release on Feb 13, 2021
8. Ceylon Whole Platform Module8 usages
ceylon » whole
This module provides an arbitrary-precision integer numeric type.
The type [[Whole|ceylon.whole::Whole]] is a first-class numeric type and
support all the usual mathematical operations:
Whole i = wholeNumber(12P);
Whole j = wholeNumber(3);
Whole n = i**j + j;
print(n); //prints 1728000000000000000000000000000000000003
Last Release on Feb 13, 2021
9. Ceylon Random Platform Module7 usages
ceylon » randomApache
Ceylon Random provides:
- a pseudorandom number generator ([[DefaultRandom]]),
- toplevel utility functions to shuffle streams or arrays ([[randomize]]
and [[randomizeInPlace]]), and
- an easy to implement interface for use by third party random number generators
([[Random]]).
To generate random numbers, create and use an instance of [[DefaultRandom]]:
// Create a random number generator
value random = DefaultRandom();
// Print a pseudorandom Float in the range 0.0 to 1.0:
print ...
Last Release on Feb 13, 2021
10. Ceylon Logging Platform Module7 usages
ceylon » logging
Defines a platform-neutral API for writing log messages.
_Important! By default, no log writer function is registered,
and so nothing is logged. Read on to learn how to properly
configure logging for your application_
## Adding logging to your module
Log messages are written to a [[Logger]]. A canonical
`Logger` instance for a package or module may be obtained
by calling [[logger]].
Logger log = logger(`module hello`);
The methods [[Logger.fatal]], [[Logger.error]],
[[Logger.warn]], ...
Last Release on Feb 13, 2021
11. Ceylon Buffer Platform Module7 usages
ceylon » buffer
This module allows you to convert between text and binary forms of data.
For efficiency of I/O (see the `ceylon.io` module), [[Buffer]]s are the core
representation which [[ceylon.buffer.codec::Codec]]s output from the
encode/decode operations, but it's still easy to get more general types like
[[Array]]s and [[String]]s. Input to the operations can be any stream type.
[[ceylon.buffer.codec::Codec]]s are symmetrical, as any data that is
[[encode|ceylon.buffer.codec::StatelessCodec.encode]]d ...
Last Release on Feb 13, 2021
13. Ceylon Test Platform Module6 usages
ceylon » testApache
The `ceylon.test` module is a simple framework to write repeatable tests.
Tests execute the code of the module under test and
can make assertions about what it does. For example,
* do functions, when called with certain arguments, return the expected results?
* do classes behave as required?
* etc.
------------------------------------------------------------------
#### CONTENT
1. [Getting started](#start)
1. [Running](#running)
1. [Assertions](#assertions)
1. [Lifecycle callbacks](#callbacks)
1. ...
Last Release on Feb 13, 2021
17. Ceylon Network Platform Module3 usages
ceylon » netApache
This module defines APIs for:
- representing and manipulating URIs,
- connecting to HTTP servers, and
- defining HTTP endpoints and executing HTTP servers.
The [[ceylon.net.uri::Uri]] class supports connection
to an HTTP URI. A new `Uri` may be obtained using
[[ceylon.net.uri::parse]].
void getit(String uriAsString) {
Uri uri = parse(uriAsString);
Request request = uri.get();
Response response = request.execute();
print(response.contents);
}
A ...
Last Release on Feb 13, 2021
18. Ceylon Math Platform Module3 usages
ceylon » math
This module provides four APIs:
- `ceylon.math.decimal`—an arbitrary-precision decimal
numeric type,
- `ceylon.math.whole`—an arbitrary-precision integer
numeric type,
- `ceylon.math.float`—various common mathematical
functions for floating-point numbers, and
- `ceylon.math.integer`—various common functions for
integers.
The types [[Whole|ceylon.math.whole::Whole]] and
[[Decimal|ceylon.math.decimal::Decimal]] are first-class
numeric types and support all the usual ...
Last Release on Feb 13, 2021
19. Ceylon Promise Platform Module2 usages
ceylon » promiseApache
Support for promises. If an operation cannot return a value
immediately without blocking, it may instead return a
_promise_ of the value. A promise is an object that
represents the return value or the thrown exception that
the operation eventually produces. Such an operation is
sometimes called a _long-running operation_.
This module provides following abstractions:
- The [[Completable]] interface abstracts objects which
promise one or more values, accommodating the possibility
of failure.
- The ...
Last Release on Feb 13, 2021
20. Ceylon Process Platform Module2 usages
ceylon » process
API for running native commands in a child process.
Clients simply create `Process`es using the
`createProcess()` method. The new process starts
executing immediately.
Process process = createProcess {
command = "ls";
arguments = ["-l"];
path = home;
};
By default, the standard input, output, and error
streams of the new child process are piped to and
from the current process by exposing a `Writer` and
`Reader`s.
if (is Reader reader = process.output) {
...
Last Release on Feb 13, 2021