public class org.apache.dubbo.common.utils.ServiceAnnotationResolver extends java.lang.Object
{
public static java.util.List SERVICE_ANNOTATION_CLASSES;
private final java.lang.'annotation'.Annotation serviceAnnotation;
private final java.lang.Class serviceType;
public void <init>(java.lang.Class) throws java.lang.IllegalArgumentException
{
java.lang.'annotation'.Annotation v;
java.lang.Class v;
org.apache.dubbo.common.utils.ServiceAnnotationResolver v;
v := @this: org.apache.dubbo.common.utils.ServiceAnnotationResolver;
v := @parameter: java.lang.Class;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<org.apache.dubbo.common.utils.ServiceAnnotationResolver: java.lang.Class serviceType> = v;
v = specialinvoke v.<org.apache.dubbo.common.utils.ServiceAnnotationResolver: java.lang.'annotation'.Annotation getServiceAnnotation(java.lang.Class)>(v);
v.<org.apache.dubbo.common.utils.ServiceAnnotationResolver: java.lang.'annotation'.Annotation serviceAnnotation> = v;
return;
}
private java.lang.'annotation'.Annotation getServiceAnnotation(java.lang.Class)
{
java.lang.Object[] v;
java.util.Iterator v;
java.lang.IllegalArgumentException v;
org.apache.dubbo.common.utils.ServiceAnnotationResolver v;
java.util.List v, v;
java.lang.'annotation'.Annotation v;
java.lang.Class v;
java.lang.Object v;
java.lang.String v, v;
boolean v;
v := @this: org.apache.dubbo.common.utils.ServiceAnnotationResolver;
v := @parameter: java.lang.Class;
v = null;
v = <org.apache.dubbo.common.utils.ServiceAnnotationResolver: java.util.List SERVICE_ANNOTATION_CLASSES>;
v = interfaceinvoke v.<java.util.List: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = virtualinvoke v.<java.lang.Class: java.lang.'annotation'.Annotation getAnnotation(java.lang.Class)>(v);
if v != null goto label;
goto label;
label:
if v != null goto label;
v = new java.lang.IllegalArgumentException;
v = newarray (java.lang.Object)[2];
v = <org.apache.dubbo.common.utils.ServiceAnnotationResolver: java.util.List SERVICE_ANNOTATION_CLASSES>;
v[0] = v;
v = virtualinvoke v.<java.lang.Class: java.lang.String getName()>();
v[1] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("Any annotation of [%s] can\'t be annotated in the service type[%s].", v);
specialinvoke v.<java.lang.IllegalArgumentException: void <init>(java.lang.String)>(v);
throw v;
label:
return v;
}
public java.lang.String resolveInterfaceClassName()
{
java.lang.Class[] v;
org.apache.dubbo.common.utils.ServiceAnnotationResolver v;
java.lang.Class v, v, v;
java.lang.Object v, v;
java.lang.ClassLoader v;
java.lang.String v;
boolean v, v, v, v;
v := @this: org.apache.dubbo.common.utils.ServiceAnnotationResolver;
v = specialinvoke v.<org.apache.dubbo.common.utils.ServiceAnnotationResolver: java.lang.Object resolveAttribute(java.lang.String)>("interfaceName");
v = staticinvoke <org.apache.dubbo.common.utils.StringUtils: boolean isEmpty(java.lang.String)>(v);
if v == 0 goto label;
v = specialinvoke v.<org.apache.dubbo.common.utils.ServiceAnnotationResolver: java.lang.Object resolveAttribute(java.lang.String)>("interfaceClass");
goto label;
label:
v = virtualinvoke v.<java.lang.Object: java.lang.Class getClass()>();
v = virtualinvoke v.<java.lang.Class: java.lang.ClassLoader getClassLoader()>();
v = staticinvoke <org.apache.dubbo.common.utils.ClassUtils: java.lang.Class resolveClass(java.lang.String,java.lang.ClassLoader)>(v, v);
label:
v = staticinvoke <org.apache.dubbo.common.utils.ClassUtils: boolean isGenericClass(java.lang.Class)>(v);
if v == 0 goto label;
v = virtualinvoke v.<java.lang.Class: java.lang.String getName()>();
goto label;
label:
v = null;
label:
v = staticinvoke <org.apache.dubbo.common.utils.StringUtils: boolean isEmpty(java.lang.String)>(v);
if v == 0 goto label;
v = v.<org.apache.dubbo.common.utils.ServiceAnnotationResolver: java.lang.Class serviceType>;
v = virtualinvoke v.<java.lang.Class: java.lang.Class[] getInterfaces()>();
v = staticinvoke <org.apache.dubbo.common.utils.ArrayUtils: boolean isNotEmpty(java.lang.Object[])>(v);
if v == 0 goto label;
v = v[0];
v = virtualinvoke v.<java.lang.Class: java.lang.String getName()>();
label:
return v;
}
public java.lang.String resolveVersion()
{
java.lang.Object v;
org.apache.dubbo.common.utils.ServiceAnnotationResolver v;
v := @this: org.apache.dubbo.common.utils.ServiceAnnotationResolver;
v = specialinvoke v.<org.apache.dubbo.common.utils.ServiceAnnotationResolver: java.lang.Object resolveAttribute(java.lang.String)>("version");
return v;
}
public java.lang.String resolveGroup()
{
java.lang.Object v;
org.apache.dubbo.common.utils.ServiceAnnotationResolver v;
v := @this: org.apache.dubbo.common.utils.ServiceAnnotationResolver;
v = specialinvoke v.<org.apache.dubbo.common.utils.ServiceAnnotationResolver: java.lang.Object resolveAttribute(java.lang.String)>("group");
return v;
}
private java.lang.Object resolveAttribute(java.lang.String)
{
java.lang.'annotation'.Annotation v;
java.lang.Object v;
java.lang.String v;
org.apache.dubbo.common.utils.ServiceAnnotationResolver v;
v := @this: org.apache.dubbo.common.utils.ServiceAnnotationResolver;
v := @parameter: java.lang.String;
v = v.<org.apache.dubbo.common.utils.ServiceAnnotationResolver: java.lang.'annotation'.Annotation serviceAnnotation>;
v = staticinvoke <org.apache.dubbo.common.utils.AnnotationUtils: java.lang.Object getAttribute(java.lang.'annotation'.Annotation,java.lang.String)>(v, v);
return v;
}
public java.lang.'annotation'.Annotation getServiceAnnotation()
{
java.lang.'annotation'.Annotation v;
org.apache.dubbo.common.utils.ServiceAnnotationResolver v;
v := @this: org.apache.dubbo.common.utils.ServiceAnnotationResolver;
v = v.<org.apache.dubbo.common.utils.ServiceAnnotationResolver: java.lang.'annotation'.Annotation serviceAnnotation>;
return v;
}
public java.lang.Class getServiceType()
{
java.lang.Class v;
org.apache.dubbo.common.utils.ServiceAnnotationResolver v;
v := @this: org.apache.dubbo.common.utils.ServiceAnnotationResolver;
v = v.<org.apache.dubbo.common.utils.ServiceAnnotationResolver: java.lang.Class serviceType>;
return v;
}
static void <clinit>()
{
java.lang.Class[] v;
java.util.List v, v;
v = newarray (java.lang.Class)[3];
v[0] = class "Lorg/apache/dubbo/config/annotation/DubboService;";
v[1] = class "Lorg/apache/dubbo/config/annotation/Service;";
v[2] = class "Lcom/alibaba/dubbo/config/annotation/Service;";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
v = staticinvoke <java.util.Collections: java.util.List unmodifiableList(java.util.List)>(v);
<org.apache.dubbo.common.utils.ServiceAnnotationResolver: java.util.List SERVICE_ANNOTATION_CLASSES> = v;
return;
}
}