@Beta public interface IdentifierTree extends ExpressionTree, BindingElementTree
Kind#PROPERTY_IDENTIFIERKind#IDENTIFIER_REFERENCEKind#BINDING_IDENTIFIERKind#THIS| Modifier and Type | Method and Description |
|---|---|
SyntaxToken |
identifierToken() |
String |
name() |
Scope |
scope() |
Optional<Symbol> |
symbol() |
Optional<Usage> |
symbolUsage() |
typesaccept, childrenStream, descendants, firstToken, is, isAncestorOf, lastToken, parentbindingIdentifiersSyntaxToken identifierToken()
String name()
Optional<Symbol> symbol()
Symbol which is referenced by this identifier. No Symbol is returned in several cases:
Kind#PROPERTY_IDENTIFIERKind#BINDING_IDENTIFIER (used for symbol declaration) always has corresponding symbol.
Note that this method is a shortcut for IdentifierTree#symbolUsage()#symbol().Copyright © 2011–2017 SonarSource and Eriks Nukis. All rights reserved.