public class Methods extends Object
MethodSource objects| Modifier and Type | Method and Description |
|---|---|
static String[] |
generateParameterNames(Class<?>[] parameterTypes)
Generate the parameter names for given parameter types
|
static List<MethodSource<?>> |
implementAbstractMethods(Class<?> source,
MethodHolderSource<?> target)
Implement the abstract methods present in a
Class to the specified MethodHolderSource. |
static List<MethodSource<?>> |
implementAbstractMethods(MethodHolder<?> source,
MethodHolderSource<?> target)
Implement the abstract methods present in a
MethodHolder to the specified MethodHolderSource. |
static void |
implementMethod(MethodSource<?> source)
Adds a default method implementation to the given
MethodSource. |
static void |
removeAllAnnotations(MethodSource<?> source) |
public static List<MethodSource<?>> implementAbstractMethods(MethodHolder<?> source, MethodHolderSource<?> target)
MethodHolder to the specified MethodHolderSource.source - the MethodHolder where the methods will be imported fromtarget - the MethodHolderSource where the methods will be exported toList of the implemented methods added to the provided MethodHolderSourcepublic static void removeAllAnnotations(MethodSource<?> source)
public static List<MethodSource<?>> implementAbstractMethods(Class<?> source, MethodHolderSource<?> target)
Class to the specified MethodHolderSource.source - the Class where the methods will be imported fromtarget - the MethodHolderSource where the methods will be exported toList of the implemented methods added to the provided MethodHolderSourcepublic static void implementMethod(MethodSource<?> source)
MethodSource. This method will call
AbstractableSource.setAbstract(boolean) with false before setting the body if the origin is not an
interface.source - the method where the implementation should be addedCopyright © 2019 JBoss by Red Hat. All rights reserved.