equal
deleted
inserted
replaced
520 public Kind getKind() { return Kind.COMPILATION_UNIT; } |
520 public Kind getKind() { return Kind.COMPILATION_UNIT; } |
521 public List<JCAnnotation> getPackageAnnotations() { |
521 public List<JCAnnotation> getPackageAnnotations() { |
522 return packageAnnotations; |
522 return packageAnnotations; |
523 } |
523 } |
524 public List<JCImport> getImports() { |
524 public List<JCImport> getImports() { |
525 ListBuffer<JCImport> imports = new ListBuffer<JCImport>(); |
525 ListBuffer<JCImport> imports = new ListBuffer<>(); |
526 for (JCTree tree : defs) { |
526 for (JCTree tree : defs) { |
527 if (tree.hasTag(IMPORT)) |
527 if (tree.hasTag(IMPORT)) |
528 imports.append((JCImport)tree); |
528 imports.append((JCImport)tree); |
529 else if (!tree.hasTag(SKIP)) |
529 else if (!tree.hasTag(SKIP)) |
530 break; |
530 break; |
622 */ |
622 */ |
623 public enum PolyKind { |
623 public enum PolyKind { |
624 /** poly expression to be treated as a standalone expression */ |
624 /** poly expression to be treated as a standalone expression */ |
625 STANDALONE, |
625 STANDALONE, |
626 /** true poly expression */ |
626 /** true poly expression */ |
627 POLY; |
627 POLY |
628 } |
628 } |
629 |
629 |
630 /** is this poly expression a 'true' poly expression? */ |
630 /** is this poly expression a 'true' poly expression? */ |
631 public PolyKind polyKind; |
631 public PolyKind polyKind; |
632 } |
632 } |
1588 */ |
1588 */ |
1589 public static class JCLambda extends JCFunctionalExpression implements LambdaExpressionTree { |
1589 public static class JCLambda extends JCFunctionalExpression implements LambdaExpressionTree { |
1590 |
1590 |
1591 public enum ParameterKind { |
1591 public enum ParameterKind { |
1592 IMPLICIT, |
1592 IMPLICIT, |
1593 EXPLICIT; |
1593 EXPLICIT |
1594 } |
1594 } |
1595 |
1595 |
1596 public List<JCVariableDecl> params; |
1596 public List<JCVariableDecl> params; |
1597 public JCTree body; |
1597 public JCTree body; |
1598 public boolean canCompleteNormally = true; |
1598 public boolean canCompleteNormally = true; |
1919 public boolean ownerAccessible; |
1919 public boolean ownerAccessible; |
1920 public OverloadKind overloadKind; |
1920 public OverloadKind overloadKind; |
1921 |
1921 |
1922 public enum OverloadKind { |
1922 public enum OverloadKind { |
1923 OVERLOADED, |
1923 OVERLOADED, |
1924 UNOVERLOADED; |
1924 UNOVERLOADED |
1925 } |
1925 } |
1926 |
1926 |
1927 /** |
1927 /** |
1928 * Javac-dependent classification for member references, based |
1928 * Javac-dependent classification for member references, based |
1929 * on relevant properties w.r.t. code-generation |
1929 * on relevant properties w.r.t. code-generation |