Interface FieldVar

All Superinterfaces:
Assignable, Expr, SimpleTyped, Typed, Var
All Known Subinterfaces:
InstanceFieldVar, StaticFieldVar

public sealed interface FieldVar extends Var permits InstanceFieldVar, StaticFieldVar
A variable corresponding to a field.
  • Method Details

    • type

      default ClassDesc type()
      Description copied from interface: Expr
      Returns the expression type (not null).
      Specified by:
      type in interface Expr
      Specified by:
      type in interface SimpleTyped
      Specified by:
      type in interface Typed
      Returns:
      the expression type (not null)
    • name

      default String name()
      Description copied from interface: Var
      Returns the variable name.
      Specified by:
      name in interface Var
      Returns:
      the variable name
    • owner

      default ClassDesc owner()
      Returns the descriptor of the class which contains the field.
      Returns:
      the descriptor of the class which contains the field
    • desc

      FieldDesc desc()
      Returns the descriptor of the field.
      Returns:
      the descriptor of the field