Class DefaultBasicRefactoringTool


public class DefaultBasicRefactoringTool extends BasicRefactoringTool
This utility class provides basic refactoring support. This version does not changes the StateObject but rather gather the changes in RefactoringDelta and it is the responsibility of the invoker to the actual change.

Provided functionality:

  • Renaming an identification variable;
  • Renaming a state field or collection-valued field;
  • Renaming an entity name;
  • Renaming a Class name (e.g.: in constructor expression);
  • Renaming an Enum constant.

Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Since:
2.4
Version:
2.4
See Also:
  • Constructor Details

    • DefaultBasicRefactoringTool

      public DefaultBasicRefactoringTool(CharSequence jpqlQuery, JPQLGrammar jpqlGrammar, IManagedTypeProvider managedTypeProvider)
      Creates a new DefaultBasicRefactoringTool.
      Parameters:
      jpqlQuery - The JPQL query to manipulate
      jpqlGrammar - The JPQLGrammar that was used to parse the JPQL query
      managedTypeProvider - The external form of a provider that gives access to the JPA metadata
    • DefaultBasicRefactoringTool

      public DefaultBasicRefactoringTool(CharSequence jpqlFragment, JPQLGrammar jpqlGrammar, IManagedTypeProvider managedTypeProvider, String jpqlQueryBNFId)
      Creates a new DefaultBasicRefactoringTool.
      Parameters:
      jpqlFragment - The JPQL query to manipulate or a single JPQL fragment, which is parsed using the JPQL query BNF identifier by the given ID
      jpqlGrammar - The JPQLGrammar that was used to parse the JPQL fragment
      managedTypeProvider - The external form of a provider that gives access to the JPA metadata
      jpqlQueryBNFId - The unique identifier of the JPQLQueryBNF that determines how to parse the JPQL fragment
  • Method Details