Languages / Java · Edit coverage JSON

AST coverage

Java

Support matrix rendered from java-ast-coverage.json. Update that file when bumping the grammar; the site regenerates on the next build.

Grammar
tree-sitter-java@0.23.5
Plugin
JavaPlugin (rgctl-lang-java)
Extensions
.java
Discover
rgctl discover . -l java --with-cfg

Handler summary

HandlerKinds
Symbol10
Relation1
CfgStatement15
AstSkeleton1
Literal18
Skip97

Symbol (10)

  • annotation_type_declaration
  • class_declaration
  • compact_constructor_declaration
  • constructor_declaration
  • enum_declaration
  • field_declaration
  • interface_declaration
  • method_declaration
  • module_declaration
  • record_declaration

Relation (1)

  • import_declaration

CfgStatement (15)

  • block
  • break_statement
  • catch_clause
  • continue_statement
  • do_statement
  • finally_clause
  • for_statement
  • if_statement
  • return_statement
  • switch_expression
  • throw_statement
  • try_statement
  • try_with_resources_statement
  • while_statement
  • yield_statement

AstSkeleton (1)

  • assignment_expression

Literal (18)

  • binary_integer_literal
  • block_comment
  • character_literal
  • class_literal
  • decimal_floating_point_literal
  • decimal_integer_literal
  • escape_sequence
  • false
  • hex_floating_point_literal
  • hex_integer_literal
  • line_comment
  • multiline_string_fragment
  • null_literal
  • octal_integer_literal
  • string_fragment
  • string_interpolation
  • string_literal
  • true

Skip (97)

  • annotated_type
  • annotation
  • annotation_argument_list
  • annotation_type_body
  • annotation_type_element_declaration
  • argument_list
  • array_access
  • array_creation_expression
  • array_initializer
  • array_type
  • assert_statement
  • asterisk
  • binary_expression
  • boolean_type
  • cast_expression
  • catch_formal_parameter
  • catch_type
  • class_body
  • constant_declaration
  • constructor_body
  • dimensions
  • dimensions_expr
  • element_value_array_initializer
  • element_value_pair
  • enhanced_for_statement
  • enum_body
  • enum_body_declarations
  • enum_constant
  • explicit_constructor_invocation
  • exports_module_directive
  • expression_statement
  • extends_interfaces
  • field_access
  • floating_point_type
  • formal_parameter
  • formal_parameters
  • generic_type
  • guard
  • identifier
  • inferred_parameters
  • instanceof_expression
  • integral_type
  • interface_body
  • labeled_statement
  • lambda_expression
  • local_variable_declaration
  • marker_annotation
  • method_invocation
  • method_reference
  • modifiers
  • module_body
  • object_creation_expression
  • opens_module_directive
  • package_declaration
  • parenthesized_expression
  • pattern
  • permits
  • program
  • provides_module_directive
  • receiver_parameter
  • record_pattern
  • record_pattern_body
  • record_pattern_component
  • requires_modifier
  • requires_module_directive
  • resource
  • resource_specification
  • scoped_identifier
  • scoped_type_identifier
  • spread_parameter
  • static_initializer
  • super
  • super_interfaces
  • superclass
  • switch_block
  • switch_block_statement_group
  • switch_label
  • switch_rule
  • synchronized_statement
  • template_expression
  • ternary_expression
  • this
  • throws
  • type_arguments
  • type_bound
  • type_identifier
  • type_list
  • type_parameter
  • type_parameters
  • type_pattern
  • unary_expression
  • underscore_pattern
  • update_expression
  • uses_module_directive
  • variable_declarator
  • void_type
  • wildcard

Related: Tier 1 language support · Discovering and indexing