Class AbstractRenameRefactoring<T extends CtNamedElement>

    • Field Detail

      • javaIdentifierRE

        public static final java.util.regex.Pattern javaIdentifierRE
      • newName

        protected java.lang.String newName
      • newNameValidationRE

        protected java.util.regex.Pattern newNameValidationRE
    • Constructor Detail

      • AbstractRenameRefactoring

        protected AbstractRenameRefactoring​(java.util.regex.Pattern newNameValidationRE)
    • Method Detail

      • refactorNoCheck

        protected abstract void refactorNoCheck()
      • detectIssues

        protected void detectIssues()
      • checkNewNameIsValid

        protected void checkNewNameIsValid()
        client may implement this method to check whether newName is valid
      • detectNameConflicts

        protected void detectNameConflicts()
        client may implement this method to check whether newName is in conflict with names of other model elements
      • isJavaIdentifier

        protected boolean isJavaIdentifier​(java.lang.String name)
        Helper method, which can be used by the child classes to check if name is an java identifier
        Parameters:
        name - the to be checked name
        Returns:
        true if name is valid java identifier