Interface MemberReferenceTree

All Superinterfaces:
ExpressionTree, Tree
public interface MemberReferenceTree
extends ExpressionTree

A tree node for a member reference expression. For example:

expression # [ identifier | new ]

Since:
1.8

Nested Classes

Modifier and Type Interface Description
static class  MemberReferenceTree.ReferenceMode

There are two kinds of member references: (i) method references and (ii) constructor references

Nested classes/interfaces declared in interface com.sun.source.tree.Tree

Tree.Kind

Methods

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.

Methods declared in interface com.sun.source.tree.Tree

accept, getKind

Methods

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, 2020, 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/11/docs/api/jdk.compiler/com/sun/source/tree/MemberReferenceTree.html