/openjdk10/langtools/test/tools/javac/lambdaShapes/org/openjdk/tests/javac/ |
H A D | FDTest.java | 29 import com.sun.tools.javac.util.Pair; 83 for (Pair<TestKind,Hierarchy> fdtest : generateCases()) { 98 List<Pair<TestKind, Hierarchy>> cases = generateCases(); 108 public static List<Pair<TestKind, Hierarchy>> generateCases() { 109 ArrayList<Pair<TestKind,Hierarchy>> list = new ArrayList<>(); 114 list.add((i++ % 2) == 0 ? new Pair<>(tk, hs) {} : new Pair<>(tk, hs));
|
/openjdk10/langtools/test/tools/javac/generics/typevars/ |
H A D | T7148242.java | 31 static abstract class A<K, V, I extends Pair<K, V>, I2 extends Pair<V, K>> { 34 static class Pair<K, V> { } class in class:T7148242
|
/openjdk10/langtools/test/tools/javac/generics/inference/8067767/ |
H A D | T8067767.java | 34 static class Pair<A, B> { class in class:T8067767 35 static <A, B> Pair<A, B> of(A a, B b) { 46 static final List<Pair<String, String>> PAIRS = List.of( 47 Pair.of("a", "b"), Pair.of("a", "b"), Pair.of("a", "b"), Pair.of("a", "b"), Pair.of("a", "b"), 48 Pair.of("a", "b"), Pair [all...] |
/openjdk10/langtools/test/tools/javac/generics/inference/6215213/ |
H A D | T6215213.java | 35 static class Pair<T, S> {} class in class:T6215213 44 <T> Pair<T, T> testPair(T t) { return null; } 54 Pair<?, ?> pair = testPair(null);
|
/openjdk10/langtools/test/tools/javac/generics/ |
H A D | ParametricException.java | 69 class Pair<T,U> { class 72 Pair(T first, U second) { method in class:Pair 91 return bool.accept(new AChurchBoolean.IVisitor<AChurchBoolean, Pair<File, byte[]>, IOException>() { 92 public AChurchBoolean caseTrue(Pair<File, byte[]> parameter) throws IOException { 98 public AChurchBoolean caseFalse(Pair<File, byte[]> parameter) throws IOException { 101 }, new Pair<File, byte[]>(file, output));
|
H A D | Nonlinear.java | 49 // static <A> Pair <A,A> duplicate (A x) { 50 // return new Pair<A,A> (x,x); 60 static <A,B extends Ref<A>> Pair<Ref<A>,B> duplicate (B x) { 61 return new Pair<Ref<A>,B> (x,x); 71 Pair <Ref<A>, Ref<B>> p = duplicate (build ()); 95 class Pair<A,B> { class 100 Pair (A fst, B snd) { this.fst = fst; this.snd = snd; } method in class:Pair
|
/openjdk10/langtools/test/tools/javac/generics/6910550/ |
H A D | T6910550e.java | 11 static class Pair<X,Y> {} class in class:T6910550e 13 <X> void m(Pair<X,X> x) {} 14 <X,Y> void m(Pair<X,Y> y) {} 16 { m(new Pair<String,String>()); 17 m(new Pair<String,Integer>()); }
|
/openjdk10/langtools/test/tools/javac/failover/ |
H A D | CheckAttributedTree.java | 101 import com.sun.tools.javac.util.Pair; 307 List<Pair<JCCompilationUnit, JCTree>> read(File file) throws IOException, AttributionException { 330 List<Pair<JCCompilationUnit, JCTree>> res = new ArrayList<>(); 336 res.add(new Pair<>(cu, def)); 364 void test(List<Pair<JCCompilationUnit, JCTree>> trees) { 365 for (Pair<JCCompilationUnit, JCTree> p : trees) {
|
/openjdk10/langtools/test/tools/javac/classfiles/attributes/annotations/ |
H A D | TestCase.java | 227 new TestAnnotationInfo.Pair("value",
|
H A D | TestAnnotationInfo.java | 37 public final List<Pair> elementValues; 39 public TestAnnotationInfo(String typeIndexName, RetentionPolicy policy, Pair... values) { 43 public TestAnnotationInfo(String typeIndexName, RetentionPolicy policy, boolean isRepeatable, Pair... values) { 72 .map(Pair::toString) 77 public static class Pair { class in class:TestAnnotationInfo 81 public Pair(String elementName, TestElementValue elementValue) { method in class:TestAnnotationInfo.Pair 427 Pair expectedPair = annotation.elementValues.get(i);
|
H A D | AnnotationsTestBase.java | 43 private static final TestAnnotationInfo.Pair[] elementValues = { 44 new TestAnnotationInfo.Pair("booleanValue", new TestAnnotationInfo.TestBooleanElementValue(true)), 45 new TestAnnotationInfo.Pair("byteValue", new TestAnnotationInfo.TestIntegerElementValue('B', 83)), 46 new TestAnnotationInfo.Pair("charValue", new TestAnnotationInfo.TestCharElementValue('H')), 47 new TestAnnotationInfo.Pair("shortValue", new TestAnnotationInfo.TestIntegerElementValue('S', 14)), 48 new TestAnnotationInfo.Pair("intValue", new TestAnnotationInfo.TestIntegerElementValue('I', 18)), 49 new TestAnnotationInfo.Pair("longValue", new TestAnnotationInfo.TestLongElementValue(14)), 50 new TestAnnotationInfo.Pair("floatValue", new TestAnnotationInfo.TestFloatElementValue(-1)), 51 new TestAnnotationInfo.Pair("doubleValue", new TestAnnotationInfo.TestDoubleElementValue(-83)), 52 new TestAnnotationInfo.Pair("stringValu [all...] |
/openjdk10/langtools/test/tools/javac/ |
H A D | T6247324.java | 6 class Pair<X,Y> { class 10 public Pair(X x, Y y){ method in class:Pair 26 Pair<Integer, String> pair = new Pair<Integer, String>(0, "I am not sure");
|
/openjdk10/langtools/test/lib/combo/tools/javac/combo/ |
H A D | JavacTemplateTestBase.java | 49 import com.sun.tools.javac.util.Pair; 80 protected final List<Pair<String, Template>> sourceFiles = new ArrayList<>(); 99 sourceFiles.add(new Pair<>(name, t)); 152 for (Pair<String, Template> e : sourceFiles) 232 for (Pair<String, Template> e : sourceFiles) 242 for (Pair<String, Template> e : sourceFiles)
|
/openjdk10/langtools/test/jdk/jshell/ |
H A D | PipeInputStreamTest.java | 39 import com.sun.tools.javac.util.Pair; 47 Pair<InputStream, OutputStream> streams = createPipeStream(); 61 private Pair<InputStream, OutputStream> createPipeStream() throws Exception { 68 return Pair.of((InputStream) pipeStream, (OutputStream) createOutputStream.invoke(pipeStream));
|
/openjdk10/langtools/src/jdk.jshell/share/classes/jdk/jshell/ |
H A D | Util.java | 130 static class Pair<T, U> { class in class:Util 134 Pair(T first, U second) { method in class:Util.Pair
|
H A D | TreeDissector.java | 51 import jdk.jshell.Util.Pair; 72 Pair<CompilationUnitTree, ClassTree> pair = classes(bt.firstCuTree()) 73 .findFirst().orElseGet(() -> new Pair<>(bt.firstCuTree(), null)); 81 private static Stream<Pair<CompilationUnitTree, ClassTree>> classes(CompilationUnitTree cut) { 86 .map(decl -> new Pair<>(cut, (ClassTree)decl)); 89 private static Stream<Pair<CompilationUnitTree, ClassTree>> classes(Iterable<? extends CompilationUnitTree> cuts) { 97 Pair<CompilationUnitTree, ClassTree> pair = classes(bt.cuTrees())
|
H A D | SourceCodeAnalysisImpl.java | 58 import com.sun.tools.javac.util.Pair; 940 Iterable<Pair<ExecutableElement, ExecutableType>> candidateConstructors = newClassCandidates(at, forPath.getParentPath()); 961 Iterable<Pair<ExecutableElement, ExecutableType>> candidateMethods = methodCandidates(at, forPath.getParentPath()); 988 private List<Pair<ExecutableElement, ExecutableType>> filterExecutableTypesByArguments(AnalyzeTask at, Iterable<Pair<ExecutableElement, ExecutableType>> candidateMethods, List<TypeMirror> precedingActualTypes) { 989 List<Pair<ExecutableElement, ExecutableType>> candidate = new ArrayList<>(); 993 for (Pair<ExecutableElement, ExecutableType> method : candidateMethods) { 1023 private List<TypeMirror> computeSmartTypesForExecutableType(AnalyzeTask at, Iterable<Pair<ExecutableElement, ExecutableType>> candidateMethods, List<TypeMirror> precedingActualTypes) { 1053 private Iterable<Pair<ExecutableElement, ExecutableType>> methodCandidates(AnalyzeTask at, TreePath invocation) { 1056 List<Pair<ExecutableElemen [all...] |
/openjdk10/langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/ |
H A D | Utils.java | 3337 public static class Pair<K, L> { class in class:Utils 3341 public Pair(K first, L second) { method in class:Utils.Pair
|
/openjdk10/langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/ |
H A D | BaseConfiguration.java | 58 import jdk.javadoc.internal.doclets.toolkit.util.Utils.Pair; 289 private final List<Pair<String, String>> linkOfflineList = new ArrayList<>(); 294 private List<Pair<String, String>> groupPairs; 525 groupPairs.add(new Pair<>(args.get(0), args.get(1))); 560 linkOfflineList.add(new Pair<String, String>(args.get(0), args.get(1))); 696 for (Pair<String, String> linkOfflinePair : linkOfflineList) {
|
/openjdk10/langtools/src/jdk.javadoc/share/classes/com/sun/tools/javadoc/main/ |
H A D | AnnotationDescImpl.java | 33 import com.sun.tools.javac.util.Pair; 83 List<Pair<MethodSymbol,Attribute>> vals = annotation.values; 86 for (Pair<MethodSymbol,Attribute> val : vals) {
|
/openjdk10/langtools/src/jdk.compiler/share/classes/jdk/internal/shellsupport/doc/ |
H A D | JavadocHelper.java | 89 import com.sun.tools.javac.util.Pair; 157 private final Map<String, Pair<JavacTask, TreePath>> signature2Source = new HashMap<>(); 167 Pair<JavacTask, TreePath> sourceElement = getSourceElement(mainTask, forElement); 177 Pair<JavacTask, TreePath> sourceElement = getSourceElement(mainTask, forElement); 203 Pair<JavacTask, TreePath> source = getSourceElement(task, supMethod); 328 Pair<JavacTask, TreePath> source = getSourceElement(task, supMethod); 535 private Pair<JavacTask, TreePath> getSourceElement(JavacTask origin, Element el) throws IOException { 537 Pair<JavacTask, TreePath> cached = signature2Source.get(handle); 554 Pair<JavacTask, CompilationUnitTree> source = findSource(moduleName, binaryName); 566 signature2Source.put(handle, Pair [all...] |
/openjdk10/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/util/ |
H A D | Pair.java | 37 public class Pair<A, B> { class 42 public Pair(A fst, B snd) { method in class:Pair 48 return "Pair[" + fst + "," + snd + "]"; 53 other instanceof Pair<?,?> && 54 Objects.equals(fst, ((Pair<?,?>)other).fst) && 55 Objects.equals(snd, ((Pair<?,?>)other).snd); 64 public static <A,B> Pair<A,B> of(A a, B b) { 65 return new Pair<>(a,b);
|
H A D | Log.java | 424 protected Set<Pair<JavaFileObject, Integer>> recorded = new HashSet<>(); 429 protected Set<Pair<JavaFileObject, String>> recordedSourceLevelErrors = new HashSet<>(); 503 Pair<JavaFileObject,Integer> coords = new Pair<>(file, pos); 524 Pair<JavaFileObject, String> coords = new Pair<>(file, d.getCode());
|
/openjdk10/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/ |
H A D | TreeMaker.java | 886 for (List<Pair<Symbol.MethodSymbol,Attribute>> values = compound.values; values.nonEmpty(); values=values.tail) { 887 Pair<MethodSymbol,Attribute> pair = values.head; 895 for (List<Pair<Symbol.MethodSymbol,Attribute>> values = compound.values; values.nonEmpty(); values=values.tail) { 896 Pair<MethodSymbol,Attribute> pair = values.head;
|
H A D | DocTreeMaker.java | 96 import com.sun.tools.javac.util.Pair; 199 Pair<List<DCTree>, List<DCTree>> pair = splitBody(fullBody); 238 Pair<List<DCTree>, List<DCTree>> pair = splitBody(fullBody); 475 Pair<List<DCTree>, List<DCTree>> pair = splitBody(list); 485 private Pair<List<DCTree>, List<DCTree>> splitBody(Collection<? extends DocTree> list) { 494 return new Pair<>(fs.toList(), body.toList()); 554 return new Pair<>(fs.toList(), body.toList());
|