Interface JVariableSymbol

All Superinterfaces:
AnnotableSymbol, JElementSymbol
All Known Subinterfaces:
JFieldSymbol, JFormalParamSymbol, JLocalVariableSymbol

public interface JVariableSymbol extends AnnotableSymbol
Reference to a variable, ie local variable, formal parameter, or field.
Since:
7.0.0
  • Method Details

    • isField

      default boolean isField()
      Returns true if this is a field symbol.
      See Also:
    • isFinal

      boolean isFinal()
      Returns true if this declaration is declared final. This takes implicit modifiers into account.
    • getTypeMirror

      JTypeMirror getTypeMirror(Substitution subst)
      Returns the type of this value, under the given substitution.
    • tryGetNode

      default ASTVariableId tryGetNode()
      Description copied from interface: JElementSymbol
      Returns the node that declares this symbol. Eg for JMethodSymbol, it's an ASTMethodDeclaration. Will only return non-null if the symbol is declared in the file currently being analysed.
      Specified by:
      tryGetNode in interface JElementSymbol