< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/tree/JCTree.java

Print this page
*** 26,10 ***
--- 26,11 ---
  package com.sun.tools.javac.tree;
  
  import java.io.IOException;
  import java.io.StringWriter;
  import java.util.*;
+ import java.util.function.Consumer;
  
  import javax.lang.model.element.Modifier;
  import javax.lang.model.type.TypeKind;
  import javax.tools.JavaFileObject;
  

*** 821,14 ***
--- 822,18 ---
  
          /** list of target types inferred for this functional expression. */
          public Type target;
          /** The owner of this functional expression. */
          public Symbol owner;
+         /** code reflection specific metadata. */
+         public CodeReflectionInfo codeReflectionInfo;
  
          public Type getDescriptorType(Types types) {
              return target != null ? types.findDescriptorType(target) : types.createErrorType(null);
          }
+ 
+         public record CodeReflectionInfo(Consumer<Name> registerImplementation, Type reflectableLambdaMetafactory) { }
      }
  
      /**
       * A class definition.
       */
< prev index next >