- All Superinterfaces:
ExpressionTree
,Tree
A tree node for a member reference expression.
For example:
expression # [ identifier | new ]
- Since:
- 1.8
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
There are two kinds of member references: (i) method references and (ii) constructor references -
Method Summary
Modifier and TypeMethodDescriptiongetMode()
Returns the mode of the reference.getName()
Returns the name of the reference.Returns the qualifier expression for the reference.List<? extends ExpressionTree>
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
-