}
private boolean generateViewIdentificationBlock(SourcePrinter srcWriter, JClassType type)
{
BindRootView bindRootView = type.getAnnotation(BindRootView.class);
BindView bindView = type.getAnnotation(BindView.class);
boolean ret = false;
if (bindRootView != null && bindView != null)
{
throw new CruxGeneratorException("ViewBindable class ["+baseIntf.getQualifiedSourceName()+"] can be annotated with BindView or with BindRootView, but not with both...");
}
if (bindRootView != null)
{
srcWriter.println("this.__view = "+Screen.class.getCanonicalName()+".getRootView().getId();");
ret = true;
}
else if (bindView != null)
{
srcWriter.println("this.__view = "+EscapeUtils.quote(bindView.value())+";");
ret = true;
}
else
{
JClassType[] interfaces = type.getImplementedInterfaces();