コード例 #1
0
ファイル: Type.java プロジェクト: nypgit/alto
    /** Boostrap and validate type and rtype instances in the file cache. */
    public Tools init() {
      /*
       * Install
       */
      alto.lang.Type[] types = this.bootstrap();
      /*
       * Validate
       */
      alto.lang.Type test;

      for (alto.lang.Type type : types) {

        String name = type.getName();
        test = Type.Tools.For(name);
        if (type != test && (!type.equals(test))) throw new alto.sys.Error.Bug(name + '@' + type);

        String fext = type.getFext();
        test = Type.Tools.Of(fext);
        if (type != test && (!type.equals(test))) throw new alto.sys.Error.Bug(fext + '@' + type);
      }
      return this;
    }
コード例 #2
0
ファイル: Type.java プロジェクト: nypgit/alto
 public static final alto.lang.Type Nil() {
   return alto.lang.Type.Tools.For(Component.Type.Instances.Nil);
 }
コード例 #3
0
ファイル: Type.java プロジェクト: nypgit/alto
 public static final alto.lang.Type Config() {
   return alto.lang.Type.Tools.For(Component.Type.Instances.Config);
 }
コード例 #4
0
ファイル: Type.java プロジェクト: nypgit/alto
 public static final alto.lang.Type Sio() {
   return alto.lang.Type.Tools.For(Component.Type.Instances.Sio);
 }
コード例 #5
0
ファイル: Type.java プロジェクト: nypgit/alto
 public static final alto.lang.Type Keys() {
   return alto.lang.Type.Tools.For(Component.Type.Instances.Keys);
 }
コード例 #6
0
ファイル: Type.java プロジェクト: nypgit/alto
 public static final alto.lang.Type Address() {
   return alto.lang.Type.Tools.For(Component.Type.Instances.Address);
 }
コード例 #7
0
ファイル: Type.java プロジェクト: nypgit/alto
 public static final alto.lang.Type MimeType() {
   return alto.lang.Type.Tools.For(Component.Type.Instances.MimeType);
 }