public final class RefactoringElementsBag extends Object
Modifier and Type | Method and Description |
---|---|
Problem |
add(AbstractRefactoring refactoring,
RefactoringElementImplementation el)
Adds RefactoringElementImplementation to this bag.
|
Problem |
addAll(AbstractRefactoring refactoring,
Collection<RefactoringElementImplementation> elements)
Adds all RefactringElements from given Collection using #add method
|
Problem |
addFileChange(AbstractRefactoring refactoring,
RefactoringElementImplementation el)
fileChanges are performed after all element changes
|
RefactoringSession |
getSession() |
void |
registerTransaction(Transaction commit)
commits are called after all changes are performed
|
public Problem add(AbstractRefactoring refactoring, RefactoringElementImplementation el)
refactoring
- refactoring, which adds this RefactoringElementImplementationel
- element to addpublic Problem addAll(AbstractRefactoring refactoring, Collection<RefactoringElementImplementation> elements)
refactoring
- refactoring, which adds this RefactoringElementelements
- Collection of RefactoringElementspublic RefactoringSession getSession()
public void registerTransaction(Transaction commit)
commit
- Transaction to commitTransaction
,
BackupFacility
public Problem addFileChange(AbstractRefactoring refactoring, RefactoringElementImplementation el)
refactoring
- changes to be performedTransaction
,
BackupFacility