public class MethodUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Method |
cloneMethod(Method method)
Clone method.
|
static java.util.List<Method> |
cloneMethods(java.util.List<Method> methodsToBeCloned)
Clone methods.
|
static java.util.Set<Method> |
cloneMethods(java.util.Set<Method> methodsToBeCloned)
Clone methods.
|
static java.util.List<Method> |
createMethodsFromSetOfElements(java.util.List<Element> elements)
Creates the methods from set of elements.
|
static java.util.List<Method> |
createMethodsFromSetOfElementsByConcern(java.util.List<Element> elements,
Concern concern)
Creates the methods from set of elements by concern.
|
static java.util.List<Method> |
getAllCommonMethodsFromSetOfElements(java.util.List<Element> elements)
Gets the all common methods from set of elements.
|
static java.util.List<Method> |
getAllCommonMethodsFromSetOfElementsByConcern(java.util.List<Element> elements,
Concern concern)
Gets the all common methods from set of elements by concern.
|
static java.util.List<Method> |
getAllMethodsFromElement(Element element)
Gets the all methods from element.
|
static java.util.List<Method> |
getAllMethodsFromElementByConcern(Element element,
Concern concern)
Gets the all methods from element by concern.
|
static java.util.List<Method> |
getAllMethodsFromSetOfElements(java.util.List<Element> elements)
Gets the all methods from set of elements.
|
static java.util.List<Method> |
getAllMethodsFromSetOfElementsByConcern(java.util.List<Element> elements,
Concern concern)
Gets the all methods from set of elements by concern.
|
static java.util.Set<Method> |
getMethodsFromElement(Element element)
Gets the methods from element.
|
static void |
mergeMethodsToMethodA(Method methodA,
Method methodB)
Merge methods to method A.
|
static Method |
mergeMethodsToNewOne(Method methodA,
Method methodB)
Merge methods to new one.
|
public static java.util.Set<Method> getMethodsFromElement(Element element)
element
- the elementpublic static java.util.List<Method> getAllMethodsFromElement(Element element)
element
- the elementpublic static java.util.List<Method> getAllMethodsFromElementByConcern(Element element, Concern concern)
element
- the elementconcern
- the concernpublic static java.util.List<Method> getAllMethodsFromSetOfElements(java.util.List<Element> elements)
elements
- the elementspublic static java.util.List<Method> getAllMethodsFromSetOfElementsByConcern(java.util.List<Element> elements, Concern concern)
elements
- the elementsconcern
- the concernpublic static java.util.List<Method> createMethodsFromSetOfElements(java.util.List<Element> elements)
elements
- the elementspublic static java.util.List<Method> createMethodsFromSetOfElementsByConcern(java.util.List<Element> elements, Concern concern)
elements
- the elementsconcern
- the concernpublic static Method cloneMethod(Method method)
method
- the methodpublic static java.util.Set<Method> cloneMethods(java.util.Set<Method> methodsToBeCloned)
methodsToBeCloned
- the methods to be clonedpublic static java.util.List<Method> cloneMethods(java.util.List<Method> methodsToBeCloned)
methodsToBeCloned
- the methods to be clonedpublic static Method mergeMethodsToNewOne(Method methodA, Method methodB)
methodA
- the method AmethodB
- the method Bpublic static void mergeMethodsToMethodA(Method methodA, Method methodB)
methodA
- the method AmethodB
- the method Bpublic static java.util.List<Method> getAllCommonMethodsFromSetOfElements(java.util.List<Element> elements)
elements
- the elementspublic static java.util.List<Method> getAllCommonMethodsFromSetOfElementsByConcern(java.util.List<Element> elements, Concern concern)
elements
- the elementsconcern
- the concern