예제 #1
0
 @TypeInfo("ceylon.language.descriptor::Package")
 static ceylon.language.descriptor.Package getPackage$() {
   return new ceylon.language.descriptor.Package(
       "ceylon.language.descriptor",
       true,
       "The Ceylon Language Descriptor package",
       new com.redhat.ceylon.compiler.java.language.ArraySequence<ceylon.language.String>(
           ceylon.language.String.instance("Gavin King")));
 }
예제 #2
0
 public static java.lang.String[] toJavaStringArray(
     ceylon.language.Iterable<? extends ceylon.language.String, ? extends java.lang.Object>
         sequence,
     java.lang.String... initialElements) {
   if (sequence instanceof ceylon.language.List)
     return toJavaStringArray(
         (ceylon.language.List<? extends ceylon.language.String>) sequence, initialElements);
   List<ceylon.language.String> list = collectIterable(sequence);
   java.lang.String[] ret = new java.lang.String[list.size() + initialElements.length];
   int i = 0;
   for (; i < initialElements.length; i++) {
     ret[i] = initialElements[i];
   }
   for (ceylon.language.String e : list) {
     ret[i++] = e.toString();
   }
   return ret;
 }