Interface Symbol.VariableSymbol

All Superinterfaces:
Symbol
Enclosing interface:
Symbol

public static interface Symbol.VariableSymbol extends Symbol
Symbol for field, method parameters and local variables.
  • Method Details

    • declaration

      @Nullable VariableTree declaration()
      Description copied from interface: Symbol
      Declaration node of this symbol. Currently, only works for declaration within the same file.
      Specified by:
      declaration in interface Symbol
      Returns:
      the Tree of the declaration of this symbol. Null if declaration does not occur in the currently analyzed file.