Interface ClassNameCRStrategy

    • Method Detail

      • dealWithClassNameConflict

        SGStateInfo dealWithClassNameConflict​(SGStateInfo state,
                                              ClassInfo newClassInfo,
                                              JClass conflict)
        Implements a specific strategy for dealing with class name conflicts.
        Parameters:
        state - The current source generator state.
        newClassInfo - The CLassInfo for the new class to be generated.
        conflict - The JClass instance representing the potential conflict.
        Returns:
        the source generator state, as modified by the decision.
      • dealWithFileOverwrite

        boolean dealWithFileOverwrite​(java.lang.String filename)
        Implements a specific strategy for dealing with the fact that -- for a given file name -- an artifact with the same name already exists.
        Parameters:
        filename - The name of the file to be overwritten.
        Returns:
        True of the file should be overwritten.
      • getName

        java.lang.String getName()
        Returns the name of this strategy.
        Returns:
        The name of this strategy.