Examples of indexOf()


Examples of abstrasy.Node.indexOf()

        }
        else {
            if (startAt.size() == 2) {
                // contient un vecteur de références
                Node vector = startAt.getSubNode(1, Node.TYPE_CLIST);
                if (vector.indexOf(objet) >= 0)
                    throw new InterpreterException(StdErrors.Circulare_reference);
                if (!objet.isNodeType(Node.VTYPE_BY_VALUE))
                    vector.addElement(objet);
                res = AExtTools.createNewExpr(
                          Node.createSymbol("Object"),
View Full Code Here

Examples of alt.jiapi.reflect.InstructionList.indexOf()

        }

        //System.out.println("Instrumenting " + il.getDeclaringMethod());

        int idx = -1;
        while ((idx = il.indexOf(OpcodeGroups.FIELD_ACCESS_INSTRUCTIONS, idx+1)) != -1) {
            FieldAccess ins = (FieldAccess)il.get(idx);
            // Do not instrument on __jiapi_fields
            if (ins.getName().startsWith("__jiapi_field")) {
                continue;
            }
View Full Code Here

Examples of ariba.util.core.FastStringBuffer.indexOf()

        String negativeSuffix = fmt.getNegativeSuffix();
        String positivePrefix = fmt.getPositivePrefix();
        String positiveSuffix = fmt.getPositiveSuffix();

            // Remove any canonical negative sign
        int minusSign = buf.indexOf(CanonicalMinusSign);
        if (minusSign > -1) {
            buf.removeCharAt(minusSign);
        }

            // Replace the canonical decimal separator with a localized version
View Full Code Here

Examples of ca.canucksoftware.ipkg.PackageFeed.indexOf()

                jLabel2.setText("<html><center>" + name + "</center></html>");
                if(isPatch(name)) {
                    if(!containsPatch) {
                        webOS.sendScript(ScriptType.Patch);
                        PackageFeed wosiFeed = PackageFeed.Download("http://ipkg.preware.net/feeds/webos-internals/all/Packages.gz");
                        int ausmtIndex = wosiFeed.indexOf("org.webosinternals.ausmt");
                        if(ausmtIndex>-1) {
                            okForPatch = patcher.meetsRequirements(wosiFeed.packages.get(ausmtIndex).getDownloadUrl());
                        } else {
                            okForPatch = false;
                        }
View Full Code Here

Examples of cern.colt.list.LongArrayList.indexOf()

                        throw new IllegalStateException();
                    }
                }
               
                //  Ensure tier will be added only once
                if (tiers.indexOf(formulaAndTierIndices) < 0)
                {
                    tiers.add(formulaAndTierIndices);
                }
            }
        }
View Full Code Here

Examples of client.net.sf.saxon.ce.tree.util.FastStringBuffer.indexOf()

            // Map the digits and decimal point to use the selected characters

            int[] ib = StringValue.expand(sb);
            int ibused = ib.length;
            int point = sb.indexOf('.');
            if (point == -1) {
                point = sb.length();
            } else {
                ib[point] = dfs.decimalSeparator;
View Full Code Here

Examples of com.alee.extended.layout.ComponentPanelLayout.indexOf()

                            cpl.setComponentShift ( wsp, null );
                        }
                        else
                        {
                            // Dragged panel index and middle
                            final int oldIndex = cpl.indexOf ( wsp );
                            final int middle = getMiddleY ( wsp );

                            // Searching for insert index
                            int insertIndex = 0;
                            for ( final Component component : cpl.getComponents () )
View Full Code Here

Examples of com.alibaba.fastjson.JSONArray.indexOf()

        Assert.assertEquals(4, array.toArray()[0]);
        array.remove(0);
        array.remove(0);
        Assert.assertEquals(0, array.size());
        array.addAll(Arrays.asList(1, 2, 3, 4, 5, 4, 3));
        Assert.assertEquals(2, array.indexOf(3));
        Assert.assertEquals(6, array.lastIndexOf(3));
        {
            AtomicInteger count = new AtomicInteger();
            for (ListIterator<Object> iter = array.listIterator(); iter.hasNext(); iter.next()) {
                count.incrementAndGet();
View Full Code Here

Examples of com.android.dx.util.IntList.indexOf()

        });

        reachableLabels.sort();

        for (int i = result.size() - 1 ; i >= 0 ; i--) {
            if (reachableLabels.indexOf(result.get(i).getLabel()) < 0) {
                result.remove(i);
                // unnecessary here really, since subroutine inlining is done
                //resultSubroutines.remove(i);
            }
        }
View Full Code Here

Examples of com.aptana.shared_core.string.FastStringBuffer.indexOf()

            for (ICoverageNode element : list) {
                if (element instanceof FileNode) { //it may have been an error node...
                    FileNode fileNode = (FileNode) element;
                    int start = buffer.length();
                    fileNode.appendToBuffer(buffer, baseLocation, nameNumberOfColumns).append("\n");
                    int len = buffer.indexOf(' ', start) - start;
                    StyleRangeWithCustomData styleRange = new StyleRangeWithCustomData(start, len, null, null);
                    styleRange.underline = true;
                    try {
                        styleRange.underlineStyle = SWT.UNDERLINE_LINK;
                    } catch (Throwable e) {
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.