@Override
protected String generateMatchCondition(JClassType classType) {
MultipageEntryPoint annotation = getAnnotation(classType);
if (annotation != null) {
return EntryPointFactoryImplGenerator.RELATIVE_PATH_VAR + ".matches(\"" + annotation.urlPattern() + "\")";
} else {
throw new RuntimeException(classType.getQualifiedSourceName()
+ " does not have a @MultipageEntryPoint annotation");
}
}