Interface MemberReferenceTree
- All Superinterfaces:
-
CaseLabelTreePREVIEW
,ExpressionTree
,Tree
public interface MemberReferenceTree extends ExpressionTree
A tree node for a member reference expression. For example:
expression # [ identifier | new ]
- Since:
- 1.8
Nested Class Summary
Modifier and Type | Interface | Description |
---|---|---|
static enum |
MemberReferenceTree.ReferenceMode |
There are two kinds of member references: (i) method references and (ii) constructor references |
Method Summary
Modifier and Type | Method | Description |
---|---|---|
MemberReferenceTree.ReferenceMode |
getMode() |
Returns the mode of the reference. |
Name |
getName() |
Returns the name of the reference. |
ExpressionTree |
getQualifierExpression() |
Returns the qualifier expression for the reference. |
List<? extends ExpressionTree> |
getTypeArguments() |
Returns the type arguments for the reference. |
Method Details
getMode
MemberReferenceTree.ReferenceMode getMode()
Returns the mode of the reference.
- Returns:
- the mode
getQualifierExpression
ExpressionTree getQualifierExpression()
Returns the qualifier expression for the reference.
- Returns:
- the qualifier expression
getName
Name getName()
Returns the name of the reference.
- Returns:
- the name
getTypeArguments
List<? extends ExpressionTree> getTypeArguments()
Returns the type arguments for the reference.
- Returns:
- the type arguments
© 1993, 2021, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/17/docs/api/jdk.compiler/com/sun/source/tree/MemberReferenceTree.html