1 /* |
1 /* |
2 * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
37 * <em>expression</em> # <em>[ identifier | new ]</em> |
37 * <em>expression</em> # <em>[ identifier | new ]</em> |
38 * </pre> |
38 * </pre> |
39 * |
39 * |
40 * @since 1.8 |
40 * @since 1.8 |
41 */ |
41 */ |
|
42 @jdk.Supported |
42 public interface MemberReferenceTree extends ExpressionTree { |
43 public interface MemberReferenceTree extends ExpressionTree { |
43 |
44 |
44 /** |
45 /** |
45 * There are two kinds of member references: (i) method references and |
46 * There are two kinds of member references: (i) method references and |
46 * (ii) constructor references |
47 * (ii) constructor references |
47 */ |
48 */ |
|
49 @jdk.Supported |
48 public enum ReferenceMode { |
50 public enum ReferenceMode { |
49 /** enum constant for method references */ |
51 /** enum constant for method references */ |
50 INVOKE, |
52 INVOKE, |
51 /** enum constant for constructor references */ |
53 /** enum constant for constructor references */ |
52 NEW |
54 NEW |