public class IntrospectionUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
checkInstantiable(Class<?> declaringClass) |
static void |
checkInstantiable(Class<?> declaringClass,
boolean requireDefaultConstructor) |
static String |
getAlias(Field field) |
static Field |
getField(Class<?> clazz,
org.mule.extension.introspection.Parameter parameter) |
static Field |
getField(Class<?> clazz,
org.mule.extension.introspection.declaration.fluent.ParameterDeclaration parameterDeclaration) |
static Field |
getField(Class<?> clazz,
String name,
Class<?> type) |
static org.mule.extension.introspection.DataType |
getFieldDataType(Field field)
Returns a
DataType describing
the given Field 's type |
static org.mule.extension.introspection.DataType[] |
getMethodArgumentTypes(Method method)
Returns an array of
DataType
representing each of the given Method 's argument
types. |
static org.mule.extension.introspection.DataType |
getMethodReturnType(Method method)
Returns a
DataType representing
the given Method 's return type |
static Method |
getOperationMethod(Class<?> declaringClass,
org.mule.extension.introspection.Operation operation) |
static Collection<Method> |
getOperationMethods(Class<?> declaringClass) |
static Collection<Field> |
getParameterFields(Class<?> extensionType) |
static Collection<Field> |
getParameterGroupFields(Class<?> extensionType) |
static boolean |
hasDefaultConstructor(Class<?> clazz) |
static boolean |
isDynamic(AccessibleObject object) |
static boolean |
isIgnored(AccessibleObject object) |
static boolean |
isRequired(AccessibleObject object) |
static boolean |
isRequired(org.mule.extension.introspection.Parameter parameter,
boolean forceOptional) |
static boolean |
isVoid(Method method) |
public static org.mule.extension.introspection.DataType getMethodReturnType(Method method)
DataType
representing
the given Method
's return typeDataType
IllegalArgumentException
- is method is null
public static org.mule.extension.introspection.DataType[] getMethodArgumentTypes(Method method)
DataType
representing each of the given Method
's argument
types.method
- a not null
Method
DataType
matching
the method's arguments. If the method doesn't take any, then the array will be emptyIllegalArgumentException
- is method is null
public static org.mule.extension.introspection.DataType getFieldDataType(Field field)
DataType
describing
the given Field
's typefield
- a not null
Field
DataType
matching the field's typeIllegalArgumentException
- if field is null
public static Field getField(Class<?> clazz, org.mule.extension.introspection.Parameter parameter)
public static Field getField(Class<?> clazz, org.mule.extension.introspection.declaration.fluent.ParameterDeclaration parameterDeclaration)
public static boolean hasDefaultConstructor(Class<?> clazz)
public static void checkInstantiable(Class<?> declaringClass)
public static void checkInstantiable(Class<?> declaringClass, boolean requireDefaultConstructor)
public static boolean isIgnored(AccessibleObject object)
public static boolean isRequired(AccessibleObject object)
public static boolean isRequired(org.mule.extension.introspection.Parameter parameter, boolean forceOptional)
public static boolean isDynamic(AccessibleObject object)
public static boolean isVoid(Method method)
public static Collection<Field> getParameterFields(Class<?> extensionType)
public static Collection<Field> getParameterGroupFields(Class<?> extensionType)
public static Collection<Method> getOperationMethods(Class<?> declaringClass)
public static Method getOperationMethod(Class<?> declaringClass, org.mule.extension.introspection.Operation operation)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.