; Java symbol extraction queries
; Captures: @node (declaration), @name (identifier)
; Export convention: 'public' modifier = exported (checked by extractor)

; Class declaration
(class_declaration
  name: (identifier) @name) @node

; Interface declaration
(interface_declaration
  name: (identifier) @name) @node

; Enum declaration
(enum_declaration
  name: (identifier) @name) @node

; Method declaration
(method_declaration
  name: (identifier) @name) @node

; Constructor declaration
(constructor_declaration
  name: (identifier) @name) @node

; Field declaration
(field_declaration
  declarator: (variable_declarator
    name: (identifier) @name)) @node
