public class BuilderUtils extends Object
public static boolean isBuildable(TypeRef typeRef)
public static boolean isBuildable(TypeDef typeDef)
public static boolean methodHasArgument(Method method, Property property)
method - The method.property - The arguement.public static boolean hasBuildableConstructorWithArgument(TypeDef clazz, Property property)
public static boolean hasDefaultConstructor(TypeDef item)
item - The clazz to check.public static boolean isInlineable(Method method)
public static TypeDef getInlineType(BuilderContext context, Inline inline)
public static TypeDef getInlineReturnType(BuilderContext context, Inline inline, TypeDef fallback)
public static Set<TypeElement> getBuildableReferences(BuilderContext context, Buildable buildable)
public static Set<TypeElement> getBuildableReferences(BuilderContext context, ExternalBuildables buildable)
public static TypeParamDef getNextGeneric(TypeDef type, TypeParamDef... excluded)
public static TypeParamDef getNextGeneric(TypeDef type, Collection<TypeParamDef> excluded)
public static Collection<String> allGenericsOf(Property property)
public static Collection<String> allGenericsOf(Method method)
public static String fullyQualifiedNameDiff(TypeRef typeRef, TypeDef originType)
Copyright © 2016. All Rights Reserved.