class org.springframework.scripting.config.ScriptBeanDefinitionParser extends org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.springframework.scripting.config.ScriptBeanDefinitionParser
super_class: org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
{
private static final java.lang.String ENGINE_ATTRIBUTE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "engine"
private static final java.lang.String SCRIPT_SOURCE_ATTRIBUTE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "script-source"
private static final java.lang.String INLINE_SCRIPT_ELEMENT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "inline-script"
private static final java.lang.String SCOPE_ATTRIBUTE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "scope"
private static final java.lang.String AUTOWIRE_ATTRIBUTE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "autowire"
private static final java.lang.String DEPENDS_ON_ATTRIBUTE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "depends-on"
private static final java.lang.String INIT_METHOD_ATTRIBUTE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "init-method"
private static final java.lang.String DESTROY_METHOD_ATTRIBUTE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "destroy-method"
private static final java.lang.String SCRIPT_INTERFACES_ATTRIBUTE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "script-interfaces"
private static final java.lang.String REFRESH_CHECK_DELAY_ATTRIBUTE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "refresh-check-delay"
private static final java.lang.String PROXY_TARGET_CLASS_ATTRIBUTE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "proxy-target-class"
private static final java.lang.String CUSTOMIZER_REF_ATTRIBUTE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "customizer-ref"
private final java.lang.String scriptFactoryClassName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.<init>:()V
1: aload 0
aload 1
putfield org.springframework.scripting.config.ScriptBeanDefinitionParser.scriptFactoryClassName:Ljava/lang/String;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/scripting/config/ScriptBeanDefinitionParser;
0 3 1 scriptFactoryClassName Ljava/lang/String;
MethodParameters:
Name Flags
scriptFactoryClassName
protected org.springframework.beans.factory.support.AbstractBeanDefinition parseInternal(org.w3c.dom.Element, org.springframework.beans.factory.xml.ParserContext);
descriptor: (Lorg/w3c/dom/Element;Lorg/springframework/beans/factory/xml/ParserContext;)Lorg/springframework/beans/factory/support/AbstractBeanDefinition;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=17, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "engine"
invokeinterface org.w3c.dom.Element.getAttribute:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: aload 0
aload 1
aload 2
invokevirtual org.springframework.beans.factory.xml.ParserContext.getReaderContext:()Lorg/springframework/beans/factory/xml/XmlReaderContext;
invokevirtual org.springframework.scripting.config.ScriptBeanDefinitionParser.resolveScriptSource:(Lorg/w3c/dom/Element;Lorg/springframework/beans/factory/xml/XmlReaderContext;)Ljava/lang/String;
astore 4
start local 4 2: aload 4
ifnonnull 4
3: aconst_null
areturn
4: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 2
invokevirtual org.springframework.beans.factory.xml.ParserContext.getRegistry:()Lorg/springframework/beans/factory/support/BeanDefinitionRegistry;
invokestatic org.springframework.scripting.config.LangNamespaceUtils.registerScriptFactoryPostProcessorIfNecessary:(Lorg/springframework/beans/factory/support/BeanDefinitionRegistry;)Lorg/springframework/beans/factory/config/BeanDefinition;
pop
5: new org.springframework.beans.factory.support.GenericBeanDefinition
dup
invokespecial org.springframework.beans.factory.support.GenericBeanDefinition.<init>:()V
astore 5
start local 5 6: aload 5
aload 0
getfield org.springframework.scripting.config.ScriptBeanDefinitionParser.scriptFactoryClassName:Ljava/lang/String;
invokevirtual org.springframework.beans.factory.support.GenericBeanDefinition.setBeanClassName:(Ljava/lang/String;)V
7: aload 5
aload 2
aload 1
invokevirtual org.springframework.beans.factory.xml.ParserContext.extractSource:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual org.springframework.beans.factory.support.GenericBeanDefinition.setSource:(Ljava/lang/Object;)V
8: aload 5
getstatic org.springframework.scripting.support.ScriptFactoryPostProcessor.LANGUAGE_ATTRIBUTE:Ljava/lang/String;
aload 1
invokeinterface org.w3c.dom.Element.getLocalName:()Ljava/lang/String;
invokevirtual org.springframework.beans.factory.support.GenericBeanDefinition.setAttribute:(Ljava/lang/String;Ljava/lang/Object;)V
9: aload 1
ldc "scope"
invokeinterface org.w3c.dom.Element.getAttribute:(Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 10: aload 6
invokestatic org.springframework.util.StringUtils.hasLength:(Ljava/lang/String;)Z
ifeq 12
11: aload 5
aload 6
invokevirtual org.springframework.beans.factory.support.GenericBeanDefinition.setScope:(Ljava/lang/String;)V
12: StackMap locals: org.springframework.beans.factory.support.GenericBeanDefinition java.lang.String
StackMap stack:
aload 1
ldc "autowire"
invokeinterface org.w3c.dom.Element.getAttribute:(Ljava/lang/String;)Ljava/lang/String;
astore 7
start local 7 13: aload 2
invokevirtual org.springframework.beans.factory.xml.ParserContext.getDelegate:()Lorg/springframework/beans/factory/xml/BeanDefinitionParserDelegate;
aload 7
invokevirtual org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.getAutowireMode:(Ljava/lang/String;)I
istore 8
start local 8 14: iload 8
iconst_4
if_icmpne 17
15: iconst_2
istore 8
16: goto 19
17: StackMap locals: java.lang.String int
StackMap stack:
iload 8
iconst_3
if_icmpne 19
18: iconst_0
istore 8
19: StackMap locals:
StackMap stack:
aload 5
iload 8
invokevirtual org.springframework.beans.factory.support.GenericBeanDefinition.setAutowireMode:(I)V
20: aload 1
ldc "depends-on"
invokeinterface org.w3c.dom.Element.getAttribute:(Ljava/lang/String;)Ljava/lang/String;
astore 9
start local 9 21: aload 9
invokestatic org.springframework.util.StringUtils.hasLength:(Ljava/lang/String;)Z
ifeq 25
22: aload 5
23: aload 9
ldc ",; "
24: invokestatic org.springframework.util.StringUtils.tokenizeToStringArray:(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
invokevirtual org.springframework.beans.factory.support.GenericBeanDefinition.setDependsOn:([Ljava/lang/String;)V
25: StackMap locals: java.lang.String
StackMap stack:
aload 2
invokevirtual org.springframework.beans.factory.xml.ParserContext.getDelegate:()Lorg/springframework/beans/factory/xml/BeanDefinitionParserDelegate;
invokevirtual org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.getBeanDefinitionDefaults:()Lorg/springframework/beans/factory/support/BeanDefinitionDefaults;
astore 10
start local 10 26: aload 1
ldc "init-method"
invokeinterface org.w3c.dom.Element.getAttribute:(Ljava/lang/String;)Ljava/lang/String;
astore 11
start local 11 27: aload 11
invokestatic org.springframework.util.StringUtils.hasLength:(Ljava/lang/String;)Z
ifeq 30
28: aload 5
aload 11
invokevirtual org.springframework.beans.factory.support.GenericBeanDefinition.setInitMethodName:(Ljava/lang/String;)V
29: goto 32
30: StackMap locals: org.springframework.beans.factory.support.BeanDefinitionDefaults java.lang.String
StackMap stack:
aload 10
invokevirtual org.springframework.beans.factory.support.BeanDefinitionDefaults.getInitMethodName:()Ljava/lang/String;
ifnull 32
31: aload 5
aload 10
invokevirtual org.springframework.beans.factory.support.BeanDefinitionDefaults.getInitMethodName:()Ljava/lang/String;
invokevirtual org.springframework.beans.factory.support.GenericBeanDefinition.setInitMethodName:(Ljava/lang/String;)V
32: StackMap locals:
StackMap stack:
aload 1
ldc "destroy-method"
invokeinterface org.w3c.dom.Element.hasAttribute:(Ljava/lang/String;)Z
ifeq 36
33: aload 1
ldc "destroy-method"
invokeinterface org.w3c.dom.Element.getAttribute:(Ljava/lang/String;)Ljava/lang/String;
astore 12
start local 12 34: aload 5
aload 12
invokevirtual org.springframework.beans.factory.support.GenericBeanDefinition.setDestroyMethodName:(Ljava/lang/String;)V
end local 12 35: goto 38
36: StackMap locals:
StackMap stack:
aload 10
invokevirtual org.springframework.beans.factory.support.BeanDefinitionDefaults.getDestroyMethodName:()Ljava/lang/String;
ifnull 38
37: aload 5
aload 10
invokevirtual org.springframework.beans.factory.support.BeanDefinitionDefaults.getDestroyMethodName:()Ljava/lang/String;
invokevirtual org.springframework.beans.factory.support.GenericBeanDefinition.setDestroyMethodName:(Ljava/lang/String;)V
38: StackMap locals:
StackMap stack:
aload 1
ldc "refresh-check-delay"
invokeinterface org.w3c.dom.Element.getAttribute:(Ljava/lang/String;)Ljava/lang/String;
astore 12
start local 12 39: aload 12
invokestatic org.springframework.util.StringUtils.hasText:(Ljava/lang/String;)Z
ifeq 41
40: aload 5
getstatic org.springframework.scripting.support.ScriptFactoryPostProcessor.REFRESH_CHECK_DELAY_ATTRIBUTE:Ljava/lang/String;
aload 12
invokestatic java.lang.Long.valueOf:(Ljava/lang/String;)Ljava/lang/Long;
invokevirtual org.springframework.beans.factory.support.GenericBeanDefinition.setAttribute:(Ljava/lang/String;Ljava/lang/Object;)V
41: StackMap locals: java.lang.String
StackMap stack:
aload 1
ldc "proxy-target-class"
invokeinterface org.w3c.dom.Element.getAttribute:(Ljava/lang/String;)Ljava/lang/String;
astore 13
start local 13 42: aload 13
invokestatic org.springframework.util.StringUtils.hasText:(Ljava/lang/String;)Z
ifeq 44
43: aload 5
getstatic org.springframework.scripting.support.ScriptFactoryPostProcessor.PROXY_TARGET_CLASS_ATTRIBUTE:Ljava/lang/String;
aload 13
invokestatic java.lang.Boolean.valueOf:(Ljava/lang/String;)Ljava/lang/Boolean;
invokevirtual org.springframework.beans.factory.support.GenericBeanDefinition.setAttribute:(Ljava/lang/String;Ljava/lang/Object;)V
44: StackMap locals: java.lang.String
StackMap stack:
aload 5
invokevirtual org.springframework.beans.factory.support.GenericBeanDefinition.getConstructorArgumentValues:()Lorg/springframework/beans/factory/config/ConstructorArgumentValues;
astore 14
start local 14 45: iconst_0
istore 15
start local 15 46: aload 3
invokestatic org.springframework.util.StringUtils.hasLength:(Ljava/lang/String;)Z
ifeq 48
47: aload 14
iload 15
iinc 15 1
aload 3
invokevirtual org.springframework.beans.factory.config.ConstructorArgumentValues.addIndexedArgumentValue:(ILjava/lang/Object;)V
48: StackMap locals: org.springframework.beans.factory.config.ConstructorArgumentValues int
StackMap stack:
aload 14
iload 15
iinc 15 1
aload 4
invokevirtual org.springframework.beans.factory.config.ConstructorArgumentValues.addIndexedArgumentValue:(ILjava/lang/Object;)V
49: aload 1
ldc "script-interfaces"
invokeinterface org.w3c.dom.Element.hasAttribute:(Ljava/lang/String;)Z
ifeq 53
50: aload 14
51: iload 15
iinc 15 1
aload 1
ldc "script-interfaces"
invokeinterface org.w3c.dom.Element.getAttribute:(Ljava/lang/String;)Ljava/lang/String;
ldc "java.lang.Class[]"
52: invokevirtual org.springframework.beans.factory.config.ConstructorArgumentValues.addIndexedArgumentValue:(ILjava/lang/Object;Ljava/lang/String;)V
53: StackMap locals:
StackMap stack:
aload 1
ldc "customizer-ref"
invokeinterface org.w3c.dom.Element.hasAttribute:(Ljava/lang/String;)Z
ifeq 59
54: aload 1
ldc "customizer-ref"
invokeinterface org.w3c.dom.Element.getAttribute:(Ljava/lang/String;)Ljava/lang/String;
astore 16
start local 16 55: aload 16
invokestatic org.springframework.util.StringUtils.hasText:(Ljava/lang/String;)Z
ifne 58
56: aload 2
invokevirtual org.springframework.beans.factory.xml.ParserContext.getReaderContext:()Lorg/springframework/beans/factory/xml/XmlReaderContext;
ldc "Attribute 'customizer-ref' has empty value"
aload 1
invokevirtual org.springframework.beans.factory.xml.XmlReaderContext.error:(Ljava/lang/String;Ljava/lang/Object;)V
57: goto 59
58: StackMap locals: java.lang.String
StackMap stack:
aload 14
iload 15
iinc 15 1
new org.springframework.beans.factory.config.RuntimeBeanReference
dup
aload 16
invokespecial org.springframework.beans.factory.config.RuntimeBeanReference.<init>:(Ljava/lang/String;)V
invokevirtual org.springframework.beans.factory.config.ConstructorArgumentValues.addIndexedArgumentValue:(ILjava/lang/Object;)V
end local 16 59: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.springframework.beans.factory.xml.ParserContext.getDelegate:()Lorg/springframework/beans/factory/xml/BeanDefinitionParserDelegate;
aload 1
aload 5
invokevirtual org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertyElements:(Lorg/w3c/dom/Element;Lorg/springframework/beans/factory/config/BeanDefinition;)V
60: aload 5
areturn
end local 15 end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 61 0 this Lorg/springframework/scripting/config/ScriptBeanDefinitionParser;
0 61 1 element Lorg/w3c/dom/Element;
0 61 2 parserContext Lorg/springframework/beans/factory/xml/ParserContext;
1 61 3 engine Ljava/lang/String;
2 61 4 value Ljava/lang/String;
6 61 5 bd Lorg/springframework/beans/factory/support/GenericBeanDefinition;
10 61 6 scope Ljava/lang/String;
13 61 7 autowire Ljava/lang/String;
14 61 8 autowireMode I
21 61 9 dependsOn Ljava/lang/String;
26 61 10 beanDefinitionDefaults Lorg/springframework/beans/factory/support/BeanDefinitionDefaults;
27 61 11 initMethod Ljava/lang/String;
34 35 12 destroyMethod Ljava/lang/String;
39 61 12 refreshCheckDelay Ljava/lang/String;
42 61 13 proxyTargetClass Ljava/lang/String;
45 61 14 cav Lorg/springframework/beans/factory/config/ConstructorArgumentValues;
46 61 15 constructorArgNum I
55 59 16 customizerBeanName Ljava/lang/String;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
element
parserContext
private java.lang.String resolveScriptSource(org.w3c.dom.Element, org.springframework.beans.factory.xml.XmlReaderContext);
descriptor: (Lorg/w3c/dom/Element;Lorg/springframework/beans/factory/xml/XmlReaderContext;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "script-source"
invokeinterface org.w3c.dom.Element.hasAttribute:(Ljava/lang/String;)Z
istore 3
start local 3 1: aload 1
ldc "inline-script"
invokestatic org.springframework.util.xml.DomUtils.getChildElementsByTagName:(Lorg/w3c/dom/Element;Ljava/lang/String;)Ljava/util/List;
astore 4
start local 4 2: iload 3
ifeq 5
aload 4
invokeinterface java.util.List.isEmpty:()Z
ifne 5
3: aload 2
ldc "Only one of 'script-source' and 'inline-script' should be specified."
aload 1
invokevirtual org.springframework.beans.factory.xml.XmlReaderContext.error:(Ljava/lang/String;Ljava/lang/Object;)V
4: aconst_null
areturn
5: StackMap locals: int java.util.List
StackMap stack:
iload 3
ifeq 7
6: aload 1
ldc "script-source"
invokeinterface org.w3c.dom.Element.getAttribute:(Ljava/lang/String;)Ljava/lang/String;
areturn
7: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.List.isEmpty:()Z
ifne 10
8: aload 4
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.w3c.dom.Element
astore 5
start local 5 9: new java.lang.StringBuilder
dup
ldc "inline:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokestatic org.springframework.util.xml.DomUtils.getTextValue:(Lorg/w3c/dom/Element;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 5 10: StackMap locals:
StackMap stack:
aload 2
ldc "Must specify either 'script-source' or 'inline-script'."
aload 1
invokevirtual org.springframework.beans.factory.xml.XmlReaderContext.error:(Ljava/lang/String;Ljava/lang/Object;)V
11: aconst_null
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/springframework/scripting/config/ScriptBeanDefinitionParser;
0 12 1 element Lorg/w3c/dom/Element;
0 12 2 readerContext Lorg/springframework/beans/factory/xml/XmlReaderContext;
1 12 3 hasScriptSource Z
2 12 4 elements Ljava/util/List<Lorg/w3c/dom/Element;>;
9 10 5 inlineElement Lorg/w3c/dom/Element;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
element
readerContext
protected boolean shouldGenerateIdAsFallback();
descriptor: ()Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/scripting/config/ScriptBeanDefinitionParser;
}
SourceFile: "ScriptBeanDefinitionParser.java"