Package java.util

Examples of java.util.ArrayList.toArray()


            anonymousClassAsString = csv.getSource();
            items.add(anonymousClassAsString);
        }

        view = new Object[items.size()];
        view = items.toArray(view);

        if (!"void".equals(((Invoke) operation).getMethodDescriptor().getReturnType().getBaseType()) || isConstructor)
        {
            context.push(this);
        }
View Full Code Here


            }
            items.add("}");
        }

        view = new Object[items.size()];
        view = items.toArray(view);
    }

    public boolean isPrintable()
    {
        return false;
View Full Code Here

                info.addMedium("screen");
            }
            list.add(info);
        }

        return (StylesheetInfo[])list.toArray(new StylesheetInfo[list.size()]);
    }

    public StylesheetInfo getDefaultStylesheet(StylesheetFactory factory) {
        return null;
    }
View Full Code Here

           
            if (last != s.length()) {
                result.add(s.substring(last));
            }
           
            return (String[])result.toArray(new String[result.size()]);
        }
    }   
}
View Full Code Here

                      throw new TeiidComponentException(e, e.getMessage());
                  }
          }
         
          tuples = new List[filteredTuples.size()];
          filteredTuples.toArray(tuples);
      }
    } else if ( command instanceof Insert || command instanceof Update || command instanceof Delete) {
      // add single update command to a list to be executed
      updateCommands.add(command);
    } else if ( command instanceof BatchedUpdateCommand ) {
View Full Code Here

        } else {
          filteredTuples.add(Arrays.asList(1)); //TODO: check for bulk
        }
      }
        tuples = new List[filteredTuples.size()];
        filteredTuples.toArray(tuples);
        elements = new ArrayList<Object>(projectedSymbols);
        columnMap[0] = 0;
    }   
       
        FakeTupleSource ts= new FakeTupleSource(elements, tuples, projectedSymbols, columnMap);
View Full Code Here

        }

        public void addException(Type type) {
            List exceptions = new ArrayList(Arrays.asList(getExceptions()));
            exceptions.add(type);
            setExceptions((Type[]) exceptions.toArray(new Type[0]));
        }
    }

    public static class Permission {
        private final String ifaceType;
View Full Code Here

        if (!extendsLst.contains("javax.ejb.EJBHome")) {
            extendsLst.add("javax.ejb.EJBHome");
        }

        return (String[]) extendsLst.toArray(new String[0]);
    }

    public String ejbJndiName(JavaClass clazz) {
        return ejbUtils.getComponentName(clazz, EjbUtils.REMOTE, true);
    }
View Full Code Here

                paramLst.add(new JavaParameter(new Type(paramType, paramDim), paramName));
                beginIdx = matcher.end();
            }

            method.setParameters((JavaParameter[]) paramLst.toArray(new JavaParameter[0]));
            return method;
        }

        throw new Error("Invalid finder signature '" + signature + "'");
    }
View Full Code Here

        if (!extendsLst.contains("java.rmi.Remote")) {
            extendsLst.add("java.rmi.Remote");
        }

        return (String[]) extendsLst.toArray(new String[0]);
    }

    /**
     * Don't let multioutput be changed
     */
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.