Interface IdentifierTree

    • Method Detail

      • symbolUsage

        Optional<Usage> symbolUsage()
        Returns:
        Usage corresponding to this identifier. Empty optional is returned when there is no symbol available for this identifier (see symbol())
      • symbol

        Optional<Symbol> symbol()
        Returns:
        Symbol which is referenced by this identifier. No Symbol is returned in several cases: Note that Tree.Kind.BINDING_IDENTIFIER (used for symbol declaration) always has corresponding symbol. Note that this method is a shortcut for {@link IdentifierTree#symbolUsage()#symbol()}.
      • scope

        Scope scope()
        Returns:
        Scope instance in which this identifier appear