Class LocalVariable

java.lang.Object
org.checkerframework.dataflow.expression.JavaExpression
org.checkerframework.dataflow.expression.LocalVariable

public class LocalVariable extends JavaExpression
A local variable.

This class also represents a formal parameter expressed using its name. Class FormalParameter represents a formal parameter expressed using the "#2" notation.

  • Field Details

    • element

      protected final VariableElement element
      The element for this local variable.
  • Constructor Details

    • LocalVariable

      public LocalVariable(LocalVariableNode localVar)
      Creates a new LocalVariable.
      Parameters:
      localVar - a CFG local variable
    • LocalVariable

      public LocalVariable(VariableElement element)
      Creates a new LocalVariable.
      Parameters:
      element - the element for the local variable
  • Method Details