import {
import ceylon.language {
import ceylon.language.meta.declaration {
import ceylon.language.meta.model {

import java.lang {
    Types {

"The [[java.lang::String]] underlying the given Ceylon 
deprecated("use [[Types.nativeString]]")
shared JavaString javaString(String string) 
        => nativeString(string);

"A Java [[java.lang::Class]] object representing the given 
deprecated("use [[Types.classForType]]")
shared Class<Type> javaClass<Type>() 
        given Type satisfies Object
        => classForType<Type>();

"A Java [[java.lang::Class]] object representing the 
 concrete type of the given [[instance]]."
deprecated("use [[Types.classForInstance]]")
shared Class<out Type> javaClassFromInstance<Type>
        (Type instance) 
        given Type satisfies Object
        => classForInstance(instance);

"A Java [[java.lang::Class]] object representing the given 
deprecated("use [[Types.classForDeclaration]]")
shared Class<out Object> javaClassFromDeclaration
        (ClassOrInterfaceDeclaration declaration) 
        => classForDeclaration(declaration);

"A Java [[java.lang::Class]] object representing the given 
deprecated("use [[Types.classForModel]]")
shared Class<out Type> javaClassFromModel<Type>
        (ClassOrInterface<Type> model)
        given Type satisfies Object
        => classForModel(model);

"A Java [[java.lang::Class]] object representing the Java
 annotation type corresponding to the given Ceylon
 [[annotation class|Type]]."
deprecated("use [[Types.classForAnnotationType]]")
shared Class<out Type> javaAnnotationClass<Type>()
        given Type satisfies Annotation 
        => classForAnnotationType<Type>();

"The stack trace information for the given [[Throwable]] as 
 a sequence of Java [[StackTraceElement]]s, or the empty
 sequence if no stack trace information is available. The 
 first element of the sequence is the top of the stack, that 
 is, the most deeply nested stack frame. This is usually the
 stack frame in which the given `Throwable` was created
 and thrown."
deprecated("use [[Types.stackTrace]]")
shared StackTraceElement[] javaStackTrace(Throwable throwable) 
        => stackTrace(throwable).sequence();

"Runs the [[do]] callback in a block synchronized on [[on]].
     value newCount = synchronize(this, () {
        return count++;

 This is an alternative to direct use of the annotation
 [[java.lang::synchronized]], allowing synchronization on
 a given [[object|on]]."
shared Return synchronize<Return>(Object on, Return do())
        => synchronizeInternal(on, do);