net.jbock.context.CachedMethod Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jbock-compiler Show documentation
Show all versions of jbock-compiler Show documentation
jbock annotation processor
package net.jbock.context;
import com.squareup.javapoet.MethodSpec;
abstract class CachedMethod {
private MethodSpec instance;
abstract MethodSpec define();
final MethodSpec get() {
if (instance == null) {
instance = define();
}
return instance;
}
}