JCSwitch switchNode = (JCSwitch) currentNode; evaluateForksExecutionPaths(allExecutionPaths, currentPathForksList, currentPath, true, activeBreaks, switchNode.cases.toArray(new JCCase[0]));
context.compilationUnits = compilationUnits.toArray(new JCCompilationUnit[compilationUnits.size()]);
/** Convert buffer to an array */ public <T> T[] toArray(T[] vec) { return elems.toArray(vec); } public Object[] toArray() {
/** Convert buffer to an array */ public <T> T[] toArray(T[] vec) { return elems.toArray(vec); } public Object[] toArray() {
/** Convert buffer to an array */ public <T> T[] toArray(T[] vec) { return elems.toArray(vec); } public Object[] toArray() {
/** Convert buffer to an array */ public <T> T[] toArray(T[] vec) { return elems.toArray(vec); } public Object[] toArray() {
/** * Packages specified on the command line. */ public PackageDoc[] specifiedPackages() { return (PackageDoc[])cmdLinePackages .toArray(new PackageDocImpl[cmdLinePackages.length()]); }
public Array(Type type, List<Attribute> values) { super(type); this.values = values.toArray(new Attribute[values.size()]); }
public Array(Type type, List<Attribute> values) { super(type); this.values = values.toArray(new Attribute[values.size()]); }
public Object[] toArray() { return toArray(new Object[size()]); }
public Object[] toArray() { return toArray(new Object[size()]); }
public Object[] toArray() { return toArray(new Object[size()]); }
public Object[] toArray() { return toArray(new Object[size()]); }
/** * Command line options. * * <pre> * For example, given: * javadoc -foo this that -bar other ... * * This method will return: * options()[0][0] = "-foo" * options()[0][1] = "this" * options()[0][2] = "that" * options()[1][0] = "-bar" * options()[1][1] = "other" * </pre> * * @return an array of arrays of String. */ public String[][] options() { return options.toArray(new String[options.length()][]); }
/** * Get all classes (including Exceptions and Errors) * and interfaces. * @since J2SE1.4. * * @return all classes and interfaces in this package, filtered to include * only the included classes if filter==true. */ public ClassDoc[] allClasses(boolean filter) { List<ClassDocImpl> classes = getClasses(filter); return classes.toArray(new ClassDocImpl[classes.length()]); }
/** * Return the least upper bound of list of types. if the lub does * not exist return null. */ public Type lub(List<Type> ts) { return lub(ts.toArray(new Type[ts.length()])); }
/** Copy successive elements of this list into given vector until * list is exhausted or end of vector is reached. */ @Override @SuppressWarnings("unchecked") public <T> T[] toArray(T[] vec) { int i = 0; List<A> l = this; Object[] dest = vec; while (l.nonEmpty() && i < vec.length) { dest[i] = l.head; l = l.tail; i++; } if (l.isEmpty()) { if (i < vec.length) vec[i] = null; return vec; } vec = (T[])Array.newInstance(vec.getClass().getComponentType(), size()); return toArray(vec); }
/** Copy successive elements of this list into given vector until * list is exhausted or end of vector is reached. */ @Override @SuppressWarnings("unchecked") public <T> T[] toArray(T[] vec) { int i = 0; List<A> l = this; Object[] dest = vec; while (l.nonEmpty() && i < vec.length) { dest[i] = l.head; l = l.tail; i++; } if (l.isEmpty()) { if (i < vec.length) vec[i] = null; return vec; } vec = (T[])Array.newInstance(vec.getClass().getComponentType(), size()); return toArray(vec); }
/** Copy successive elements of this list into given vector until * list is exhausted or end of vector is reached. */ @Override @SuppressWarnings("unchecked") public <T> T[] toArray(T[] vec) { int i = 0; List<A> l = this; Object[] dest = vec; while (l.nonEmpty() && i < vec.length) { dest[i] = l.head; l = l.tail; i++; } if (l.isEmpty()) { if (i < vec.length) vec[i] = null; return vec; } vec = (T[])Array.newInstance(vec.getClass().getComponentType(), size()); return toArray(vec); }
/** * Returns the elements of this annotation type. * Returns an empty array if there are none. * Elements are always public, so no need to filter them. */ public AnnotationTypeElementDoc[] elements() { List<AnnotationTypeElementDoc> elements = List.nil(); for (Scope.Entry e = tsym.members().elems; e != null; e = e.sibling) { if (e.sym != null && e.sym.kind == Kinds.MTH) { MethodSymbol s = (MethodSymbol)e.sym; elements = elements.prepend(env.getAnnotationTypeElementDoc(s)); } } return elements.toArray(new AnnotationTypeElementDoc[elements.length()]); } }