public AccessInfo getAccessInfo() { return typeInfo().accessInfo(); }
public AccessInfo getAccessInfo() { return typeInfo().accessInfo(); }
public static BuilderInterface of(StandardBuilderConfiguration builder) { TypeInfo typeInfo = builder.typeInfo(); Naming naming = builder.naming(); TypeSpec.Builder type = TypeSpec.interfaceBuilder(naming.builderInterfaceSimpleName()) .addModifiers(typeInfo.accessInfo().modifiers()); naming.typeVariableNameListTo(type); return new BuilderInterface(builder, type); }
public ToMustacheHelper toMustacheHelper() { return Mustaches.toMustacheHelper() .add("access", accessInfo()) .add("package", packageInfo()) .add("name", name()) .add("simpleName", getSimpleName()) .add("rawName", getRawName()) .add("unboundName", getUnboundedName()) .add("varName", getVarName()) .add("typeParameters", typeParameterInfoMap()) .add("methods", methodInfoMap().list()); }
@Override public boolean isEqual(TypeInfo that) { return Testables.isEqualHelper() .equal(accessInfo(), that.accessInfo()) .equal(kind(), that.kind()) .equal(packageInfo(), that.packageInfo()) .equal(name(), that.name()) .equal(typeParameterInfoMap(), that.typeParameterInfoMap()) .equal(annotationInfoMap(), that.annotationInfoMap()) .equal(enclosingTypeInfo(), that.enclosingTypeInfo()) .equal(superTypeInfo(), that.superTypeInfo()) .equal(interfaceInfoMap(), that.interfaceInfoMap()) .equal(constructorInfoMap(), that.constructorInfoMap()) .equal(methodInfoMap(), that.methodInfoMap()) .equal(declaredTypeInfoMap(), that.declaredTypeInfoMap()) .result(); }