Skip to content

Lucene index fields

Amy Brennan-Luna edited this page Nov 8, 2020 · 4 revisions

Document fields

  • Class - name of class
  • Method - name of method
  • Element - name of element (such as method name, field name)
    • How should I represent method invocations?
  • Type
    • Class
    • Method
    • Field
    • Parameter
    • Local variable

Info I want to store

  • Method invocations
  • Parameters
  • Local variables

Info I want to store about variables

  • Scope (such as if within a specific "if" or "for" block
  • Effectively final? (useful for Streams; there's a field)
  • "Constant" (JDT has way to get value)
  • Assignments (include each)
    • Initialization
    • Later assignments
  • In the future, want to also indicate when a method is
    • Read (dereferenced with no side effects)
      • For example, list.get
    • Dereferenced (if cannot determine if read / write)
    • Write (dereferenced with side effects)
      • For example, list.add / list.set
    • Assign (an assignment)

Clone this wiki locally