Class RefactoringAccess
- java.lang.Object
-
- jetbrains.mps.refactoring.runtime.access.RefactoringAccess
-
public abstract class RefactoringAccess extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static RefactoringAccessourInstance
-
Constructor Summary
Constructors Modifier Constructor Description protectedRefactoringAccess()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Collection<IRefactoring>getAllRefactorings()IMPORTANT: DON'T USE THIS METHOD, ITS VISIBILITY WILL CHANGE TO protected.static RefactoringAccessgetInstance()IRefactoringgetRefactoringByClassName(String className)abstract RefactoringFacadegetRefactoringFacade()booleanisApplicable(String refactoringClassName, Object target)NPE-safe shorthand forisApplicable(getRefactoringByClassName(refactoringClassName), target)booleanisApplicable(IRefactoring refactoring, Object target)protected static voidsetInstance(RefactoringAccess instance)
-
-
-
Field Detail
-
ourInstance
protected static RefactoringAccess ourInstance
-
-
Method Detail
-
getRefactoringFacade
public abstract RefactoringFacade getRefactoringFacade()
-
getRefactoringByClassName
@Nullable public IRefactoring getRefactoringByClassName(String className)
-
isApplicable
public boolean isApplicable(@NotNull String refactoringClassName, Object target)
NPE-safe shorthand forisApplicable(getRefactoringByClassName(refactoringClassName), target)
-
isApplicable
public boolean isApplicable(@NotNull IRefactoring refactoring, Object target)
-
getAllRefactorings
public abstract Collection<IRefactoring> getAllRefactorings()
IMPORTANT: DON'T USE THIS METHOD, ITS VISIBILITY WILL CHANGE TO protected. IT'S PROVISIONALLY PUBLIC FOR MIGRATION PURPOSES ONLY. Once RefactoringUtil is history (past 2018.2), we expect no clients to access collection of all available refactorings. If this is wrong, please file an issue.
-
getInstance
public static RefactoringAccess getInstance()
-
setInstance
protected static void setInstance(RefactoringAccess instance)
-
-