public class BuilderUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.Collection<java.lang.String> |
allGenericsOf(Method method) |
static java.util.Collection<java.lang.String> |
allGenericsOf(Property property) |
static java.util.Set<java.lang.String> |
allGenericsOf(TypeDef clazz) |
static java.util.Set<java.lang.String> |
allGenericsOf(TypeRef type) |
static java.util.List<ClassRef> |
alsoImport(Attributeable attributeable,
ClassRef... refs) |
static java.util.List<ClassRef> |
alsoImportAsList(Attributeable attributeable) |
static Property |
buildableField(Property property) |
static ClassRef |
buildableRef(TypeRef typeRef) |
static Method |
findBuildableConstructor(TypeDef clazz) |
static TypeDef |
findBuildableSuperClass(TypeDef clazz) |
static ClassRef |
findBuildableSuperClassRef(TypeDef clazz) |
static java.lang.String |
fullyQualifiedNameDiff(TypeRef typeRef,
TypeDef originType) |
static java.util.Set<javax.lang.model.element.TypeElement> |
getBuildableReferences(BuilderContext context,
Buildable buildable) |
static java.util.Set<javax.lang.model.element.TypeElement> |
getBuildableReferences(BuilderContext context,
ExternalBuildables buildable) |
static java.util.Set<Method> |
getInlineableConstructors(Property property) |
static TypeDef |
getInlineReturnType(BuilderContext context,
Inline inline,
TypeDef fallback) |
static TypeDef |
getInlineType(BuilderContext context,
Inline inline) |
static TypeParamDef |
getNextGeneric(TypeDef type,
java.util.Collection<TypeParamDef> excluded) |
static TypeParamDef |
getNextGeneric(TypeDef type,
TypeParamDef... excluded) |
static boolean |
hasBuildableConstructorWithArgument(TypeDef clazz,
Property property) |
static boolean |
hasDefaultConstructor(TypeDef item)
Checks if there is a default constructor available.
|
static boolean |
isBuildable(TypeDef typeDef) |
static boolean |
isBuildable(TypeRef typeRef) |
static boolean |
isInlineable(Method method) |
static boolean |
methodHasArgument(Method method,
Property property)
Checks if method has a specific argument.
|
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 argument.public static boolean hasBuildableConstructorWithArgument(TypeDef clazz, Property property)
public static boolean hasDefaultConstructor(TypeDef item)
item - The clazz to check.public static java.util.Set<Method> getInlineableConstructors(Property property)
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 java.util.Set<javax.lang.model.element.TypeElement> getBuildableReferences(BuilderContext context, Buildable buildable)
public static java.util.Set<javax.lang.model.element.TypeElement> getBuildableReferences(BuilderContext context, ExternalBuildables buildable)
public static TypeParamDef getNextGeneric(TypeDef type, TypeParamDef... excluded)
public static TypeParamDef getNextGeneric(TypeDef type, java.util.Collection<TypeParamDef> excluded)
public static java.util.Set<java.lang.String> allGenericsOf(TypeDef clazz)
public static java.util.Set<java.lang.String> allGenericsOf(TypeRef type)
public static java.util.Collection<java.lang.String> allGenericsOf(Property property)
public static java.util.Collection<java.lang.String> allGenericsOf(Method method)
public static java.lang.String fullyQualifiedNameDiff(TypeRef typeRef, TypeDef originType)
public static java.util.List<ClassRef> alsoImportAsList(Attributeable attributeable)
public static java.util.List<ClassRef> alsoImport(Attributeable attributeable, ClassRef... refs)
Copyright © 2018. All Rights Reserved.