Examples of includes()


Examples of org.eclipse.jdt.internal.compiler.util.SimpleSet.includes()

                if (typeVariable.rank >= varSuperType.rank && varSuperType.declaringElement == typeVariable.declaringElement) {
                  SimpleSet set = new SimpleSet(typeParameters.length);
                  set.add(typeVariable);
                  ReferenceBinding superBinding = varSuperType;
                  while (superBinding instanceof TypeVariableBinding) {
                    if (set.includes(superBinding)) {
                      problemReporter().hierarchyCircularity(typeVariable, varSuperType, typeRef);
                      typeVariable.tagBits |= TagBits.HierarchyHasProblems;
                      break firstBound; // do not keep first bound
                    } else {
                      set.add(superBinding);
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.util.SimpleSetOfCharArray.includes()

              nameScanner.setSource(suffixName);
              switch (nameScanner.getNextToken()) {
                case TerminalTokens.TokenNameIdentifier :
                  int token = nameScanner.getNextToken();
                  if (token == TerminalTokens.TokenNameEOF && nameScanner.startPosition == suffixName.length) {
                    if (!foundNames.includes(suffixName)) {
                      acceptName(suffixName, prefixes[k], suffixes[l],  k == 0, l == 0, internalPrefix.length - matchingIndex, requestor);
                      foundNames.add(suffixName);
                      acceptDefaultName = false;
                    }
                  }
View Full Code Here

Examples of org.eclipse.jdt.internal.core.builder.ReferenceCollection.includes()

            Object[] values = projectState.getReferences().valueTable;
            int vLength = values.length;
            for (int j=0; j<vLength; j++)  {
              if (values[j] == null) continue;
              ReferenceCollection references = (ReferenceCollection) values[j];
              if (references.includes(focusQualifiedNames, null, null)) {
                return true;
              }
            }
            return false;
          }
View Full Code Here

Examples of org.eclipse.jface.text.Position.includes()

    // iterate all mapped jsp ranges
    Iterator it = fJsp2JavaMap.keySet().iterator();
    while (it.hasNext()) {
      jspPos = (Position) it.next();
      // need to count the last position as included
      if (!jspPos.includes(jspOffset) && !(jspPos.offset+jspPos.length == jspOffset))
        continue;

      offsetInRange = jspOffset - jspPos.offset;
      javaPos = (Position) fJsp2JavaMap.get(jspPos);
      if(javaPos != null)
View Full Code Here

Examples of org.eclipse.jface.text.TypedPosition.includes()

      int newLength= e.getText() == null ? 0 : e.getText().length();

      int first= d.computeIndexInCategory(fPositionCategory, reparseStart);
      if (first > 0)  {
        TypedPosition partition= (TypedPosition) category[first - 1];
        if (partition.includes(reparseStart)) {
          partitionStart= partition.getOffset();
          contentType= partition.getType();
          if (e.getOffset() == partition.getOffset() + partition.getLength())
            reparseStart= partitionStart;
          -- first;
View Full Code Here

Examples of org.elasticsearch.search.fetch.source.FetchSourceContext.includes()

                case "1" :
                    assertThat(fetchSource.fetchSource(), is(false));
                    break;
                case "2" :
                    assertThat(fetchSource.fetchSource(), is(true));
                    assertThat(fetchSource.includes(), is(new String[]{"field3", "field4"}));
                    break;
                case "3" :
                    assertThat(fetchSource.fetchSource(), is(true));
                    assertThat(fetchSource.includes(), is(new String[]{"user"}));
                    assertThat(fetchSource.excludes(), is(new String[]{"user.location"}));
View Full Code Here

Examples of org.jboss.dna.graph.request.ReadBranchRequest.includes()

                process(create);
                if (create.isCancelled() || create.hasError()) return;

                // Process the children ...
                for (Location child : readSubgraph.getChildren(location)) {
                    if (!readSubgraph.includes(child)) {
                        // Record this location as needing to be read ...
                        locationsToRead.add(child);
                    }
                }
            }
View Full Code Here

Examples of org.jboss.gravia.resource.VersionRange.includes()

                    try {
                        version = new Version(file.getName());
                    } catch (Throwable th) {
                        continue;
                    }
                    if (!versionRange.includes(version)) {
                        continue;
                    }
                    String modname = symbolicName + ":" + version;
                    ModuleIdentifier modid = ModuleIdentifier.fromString(modname);
                    try {
View Full Code Here

Examples of org.jruby.RubyArray.includes()

                    }
                });
            } else {
                // already set up append_features, just add the interface if we haven't already
                RubyArray javaInterfaceMods =(RubyArray)module.getInstanceVariables().fastGetInstanceVariable("@java_interface_mods");
                if (!javaInterfaceMods.includes(context, self)) {
                    javaInterfaceMods.append(self);
                }
            }
        }
    }
View Full Code Here

Examples of org.kitesdk.data.View.includes()

    Iterator<View<StandardEvent>> coveringPartitions =
        ((FileSystemView) unbounded).getCoveringPartitions().iterator();

    assertTrue(coveringPartitions.hasNext());
    View v1 = coveringPartitions.next();
    assertTrue(v1.includes(standardEvent(sepEvent.getTimestamp())));
    assertFalse(v1.includes(standardEvent(octEvent.getTimestamp())));
    assertFalse(v1.includes(standardEvent(novEvent.getTimestamp())));

    assertTrue(coveringPartitions.hasNext());
    View v2 = coveringPartitions.next();
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.