public class BuilderUtils extends Object
public static boolean isBuildable(TypeRef typeRef)
public static boolean isBuildable(TypeDef typeDef)
public static boolean isBuildable(ClassRef ref)
ClassRef
is buildable.ref
- The reference.public static boolean isOrHasBuildableDescendants(Property property)
public static List<ClassRef> findBuildableReferences(ClassRef ref)
ClassRef
that are considered buildable.ref
- The reference.public static boolean methodHasArgument(Method method, Property property)
method
- The method.property
- The argument.public static boolean hasBuildableConstructorWithArgument(TypeDef clazz, Property property)
public static boolean hasDefaultConstructor(TypeRef item)
item
- The clazz to check.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)
public static List<ClassRef> alsoImportAsList(Attributeable attributeable)
public static List<ClassRef> alsoImport(Attributeable attributeable, ClassRef... refs)
Copyright © 2019 JBoss by Red Hat. All rights reserved.