// NewGetReclaimPolicy returns a NewMethod that writes a GetReclaimPolicy method
// for the supplied Object to the supplied file. The ReclaimPolicy is returned
// from the supplied field - typically Spec or SpecTemplate.
NewGetReclaimPolicy returns a NewMethod that writes a GetReclaimPolicy method
for the supplied Object to the supplied file. The ReclaimPolicy is returned
from the supplied field - typically Spec or SpecTemplate.
// NewGetReclaimPolicy returns a NewMethod that writes a GetReclaimPolicy method // for the supplied Object to the supplied file . The ReclaimPolicy is returned // from the supplied field - typically Spec or SpecTemplate .
func NewGetReclaimPolicy(receiver, runtime, field string) New {
	return func(f *jen.File, o types.Object) {
		f.Commentf("GetReclaimPolicy of this %s.", o.Name())
		f.Func().Params(jen.Id(receiver).Op("*").Id(o.Name())).Id("GetReclaimPolicy").Params().Qual(runtime, "ReclaimPolicy").Block(
			jen.Return(jen.Id(receiver).Dot(field).Dot("ReclaimPolicy")),
		)
	}
}
func NewGetReclaimPolicy ( receiver , runtime , field string ) New { return func ( f * jen . File , o types . Object ) { f . Commentf ( " " , o . Name ( ) ) f . Func ( ) . Params ( jen . Id ( receiver ) . Op ( " " ) . Id ( o . Name ( ) ) ) . Id ( " " ) . Params ( ) . Qual ( runtime , " " ) . Block ( jen . Return ( jen . Id ( receiver ) . Dot ( field ) . Dot ( " " ) ) , ) } }
NewGetReclaimPolicy returns a NewMethod that writes a GetReclaimPolicy method
for the supplied Object to the supplied file.
NewGetReclaimPolicy returns a NewMethod that writes a GetReclaimPolicy method for the supplied Object to the supplied file .