public class BuilderUtils extends Object
public static final String BUILDABLE
public static JavaMethod findBuildableConstructor(JavaClazz clazz)
public static JavaMethod findGetter(JavaClazz clazz, JavaProperty property)
public static boolean hasSetter(JavaClazz clazz, JavaProperty property)
public static boolean methodHasArgument(JavaMethod method, JavaProperty property)
method - The method.property - The arguement.public static boolean hasBuildableConstructorWithArgument(JavaClazz clazz, JavaProperty property)
public static boolean hasDefaultConstructor(JavaClazz item)
item - The clazz to check.public static boolean isBuildable(AttributeSupport item)
JavaType has the BUILDABLE attribute set to true.item - The type to check.public static Set<JavaMethod> getInlineableConstructors(JavaProperty property)
public static boolean isInlineable(JavaMethod method)
public static JavaType getInlineType(BuilderContext context, Inline inline)
public static JavaType getInlineReturnType(BuilderContext context, Inline inline)
public static Set<TypeElement> getBuildableReferences(BuilderContext context, Buildable buildable)
public static Set<TypeElement> getBuildableReferences(BuilderContext context, ExternalBuildables buildable)
public static boolean isPrimitive(JavaType type)
public static boolean isMap(JavaType type)
public static boolean isList(JavaType type)
public static boolean isSet(JavaType type)
public static JavaType getNextGeneric(JavaType type, Collection<JavaType> excluded)
public static Collection<JavaType> allGenericsOf(JavaProperty property)
public static Collection<JavaType> allGenericsOf(JavaMethod method)
Copyright © 2016. All Rights Reserved.