예제 #1
0
 public static Window Window(Object... paramVarArgs) {
   Window localWindow = Display.getInstance().makeWindow();
   int j = paramVarArgs.length;
   int i = 0;
   Object localObject1;
   while (i < j) {
     localObject1 = paramVarArgs[i];
     if ((localObject1 instanceof Keyword)) {}
     try {
       localObject2 = (Keyword) localObject1;
       windowKeyword(localWindow, ((Keyword) localObject2).getName(), paramVarArgs[(i + 1)]);
       i += 2;
     } catch (ClassCastException paramVarArgs) {
       Object localObject2;
       throw new WrongType(paramVarArgs, "gnu.expr.Keyword.getName()", 1, localObject1);
     }
     if ((localObject1 instanceof KAttr)) {}
     try {
       localObject2 = (KAttr) localObject1;
       windowKeyword(
           localWindow, ((KAttr) localObject2).getName(), ((KAttr) localObject2).getObjectValue());
       i += 1;
     } catch (ClassCastException paramVarArgs) {
       throw new WrongType(paramVarArgs, "attr", -2, localObject1);
     }
     windowNonKeyword(localWindow, localObject1);
     i += 1;
   }
   return localWindow;
 }
예제 #2
0
 static Model asModel(Object paramObject) {
   return Display.getInstance().coerceToModel(paramObject);
 }