Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/armandAkop/Lifecycle-Sorter
/ functions
Functions
22 in github.com/armandAkop/Lifecycle-Sorter
⨍
Functions
22
◇
Types & classes
10
↓ 2 callers
Method
appendToStart
Appends the sorted lifecycle methods to the start of the class. @param sortedMethods The sorted lifecycle methods
src/Sort/Sorter.java:127
↓ 1 callers
Method
appendSortedMethods
Appends the sorted methods to the file @param sortedMethods The sorted methods to append
src/Sort/Sorter.java:100
↓ 1 callers
Method
appendToEnd
Appends the sorted lifecycle methods to the end of the class. @param sortedMethods The sorted lifecycle methods
src/Sort/Sorter.java:117
↓ 1 callers
Method
buildSuperClassList
Recurses up the superclass chain of the PsiClass provided to determine if the chain contains Activity or Fragment as one of the base classes. This wil
src/Util/LifecycleUtils.java:83
↓ 1 callers
Method
createLifecycle
(PsiClass psiClass, Map<String, PsiMethod> methods)
src/Lifecycle/LifecycleFactory.java:14
↓ 1 callers
Method
deleteUnsortedLifecycleMethods
Removes the collection of PsiMethods from the PsiClass @param methods the methods to remove from the PsiClass
src/Sort/Sorter.java:90
↓ 1 callers
Method
getLifeCycleType
Checks a list of superclasses of a PsiClass against the Activity/Fragment classes and support classes. @param psiClass @return true if a match is foun
src/Util/LifecycleUtils.java:46
↓ 1 callers
Method
getMethodsMap
Generates a Map of all the methods in the current class @return a Map of all the methods in the current class
src/Sort/Sorter.java:70
↓ 1 callers
Method
getPsiClassFromContext
@param e the action event that occurred @return The PSIClass object based on which class your mouse cursor was in
src/Action/SortAction.java:43
↓ 1 callers
Method
resolvePackageToCompare
Cross checks the list of package names we've built up against the list of Activity package names and list of Fragment package names. @param superClass
src/Util/LifecycleUtils.java:61
↓ 1 callers
Method
sort
Formats the activity/fragment lifecycle methods
src/Sort/Sorter.java:47
↓ 1 callers
Method
sort
Sorts the lifecycle methods provided @return A Map of the method names and entire method definitions, respecting the sort order of mLifecycleOrdering
src/Lifecycle/Lifecycle.java:41
↓ 1 callers
Method
sortLifecycleMethods
(final PsiClass psiClass)
src/Action/SortAction.java:27
Method
ActivityLifecycle
(Map<String, PsiMethod> methods)
src/Lifecycle/ActivityLifecycle.java:40
Method
FragmentLifecycle
(Map<String, PsiMethod> methods)
src/Lifecycle/FragmentLifecycle.java:53
Method
Lifecycle
(Map<String, PsiMethod> methods)
src/Lifecycle/Lifecycle.java:31
Method
LifecycleUtils
To Prevent instantiation
src/Util/LifecycleUtils.java:37
Method
Sorter
@param psiClass The class whose methods to sort @param sortPosition The offset position in the class in which to place the sorted methods
src/Sort/Sorter.java:39
Method
actionPerformed
(AnActionEvent e)
src/Action/SortStartAction.java:11
Method
actionPerformed
(AnActionEvent e)
src/Action/SortAction.java:16
Method
actionPerformed
(AnActionEvent e)
src/Action/SortEndAction.java:11
Method
run
()
src/Action/SortAction.java:29