public class com.ctc.wstx.dtd.DTDValidator extends com.ctc.wstx.dtd.DTDValidatorBase
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.ctc.wstx.dtd.DTDValidator
super_class: com.ctc.wstx.dtd.DTDValidatorBase
{
protected boolean mReportDuplicateErrors;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
protected com.ctc.wstx.util.ElementIdMap mIdMap;
descriptor: Lcom/ctc/wstx/util/ElementIdMap;
flags: (0x0004) ACC_PROTECTED
protected com.ctc.wstx.dtd.StructValidator[] mValidators;
descriptor: [Lcom/ctc/wstx/dtd/StructValidator;
flags: (0x0004) ACC_PROTECTED
protected java.util.BitSet mCurrSpecialAttrs;
descriptor: Ljava/util/BitSet;
flags: (0x0004) ACC_PROTECTED
boolean mCurrHasAnyFixed;
descriptor: Z
flags: (0x0000)
java.util.BitSet mTmpSpecialAttrs;
descriptor: Ljava/util/BitSet;
flags: (0x0000)
public void <init>(com.ctc.wstx.dtd.DTDSubset, org.codehaus.stax2.validation.ValidationContext, boolean, java.util.Map<com.ctc.wstx.util.PrefixedName, com.ctc.wstx.dtd.DTDElement>, java.util.Map<java.lang.String, com.ctc.wstx.ent.EntityDecl>);
descriptor: (Lcom/ctc/wstx/dtd/DTDSubset;Lorg/codehaus/stax2/validation/ValidationContext;ZLjava/util/Map;Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
aload 2
iload 3
aload 4
aload 5
invokespecial com.ctc.wstx.dtd.DTDValidatorBase.<init>:(Lcom/ctc/wstx/dtd/DTDSubset;Lorg/codehaus/stax2/validation/ValidationContext;ZLjava/util/Map;Ljava/util/Map;)V
1: aload 0
iconst_0
putfield com.ctc.wstx.dtd.DTDValidator.mReportDuplicateErrors:Z
2: aload 0
aconst_null
putfield com.ctc.wstx.dtd.DTDValidator.mIdMap:Lcom/ctc/wstx/util/ElementIdMap;
3: aload 0
aconst_null
putfield com.ctc.wstx.dtd.DTDValidator.mValidators:[Lcom/ctc/wstx/dtd/StructValidator;
4: aload 0
aconst_null
putfield com.ctc.wstx.dtd.DTDValidator.mCurrSpecialAttrs:Ljava/util/BitSet;
5: aload 0
iconst_0
putfield com.ctc.wstx.dtd.DTDValidator.mCurrHasAnyFixed:Z
6: aload 0
bipush 16
anewarray com.ctc.wstx.dtd.StructValidator
putfield com.ctc.wstx.dtd.DTDValidator.mValidators:[Lcom/ctc/wstx/dtd/StructValidator;
7: return
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 8 0 this Lcom/ctc/wstx/dtd/DTDValidator;
0 8 1 schema Lcom/ctc/wstx/dtd/DTDSubset;
0 8 2 ctxt Lorg/codehaus/stax2/validation/ValidationContext;
0 8 3 hasNsDefaults Z
0 8 4 elemSpecs Ljava/util/Map<Lcom/ctc/wstx/util/PrefixedName;Lcom/ctc/wstx/dtd/DTDElement;>;
0 8 5 genEntities Ljava/util/Map<Ljava/lang/String;Lcom/ctc/wstx/ent/EntityDecl;>;
Signature: (Lcom/ctc/wstx/dtd/DTDSubset;Lorg/codehaus/stax2/validation/ValidationContext;ZLjava/util/Map<Lcom/ctc/wstx/util/PrefixedName;Lcom/ctc/wstx/dtd/DTDElement;>;Ljava/util/Map<Ljava/lang/String;Lcom/ctc/wstx/ent/EntityDecl;>;)V
MethodParameters:
Name Flags
schema
ctxt
hasNsDefaults
elemSpecs
genEntities
public final boolean reallyValidating();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
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 Lcom/ctc/wstx/dtd/DTDValidator;
public void validateElementStart(java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mTmpKey:Lcom/ctc/wstx/util/PrefixedName;
aload 3
aload 1
invokevirtual com.ctc.wstx.util.PrefixedName.reset:(Ljava/lang/String;Ljava/lang/String;)Lcom/ctc/wstx/util/PrefixedName;
pop
1: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mElemSpecs:Ljava/util/Map;
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mTmpKey:Lcom/ctc/wstx/util/PrefixedName;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.ctc.wstx.dtd.DTDElement
astore 4
start local 4 2: aload 0
dup
getfield com.ctc.wstx.dtd.DTDValidator.mElemCount:I
dup_x1
iconst_1
iadd
putfield com.ctc.wstx.dtd.DTDValidator.mElemCount:I
istore 5
start local 5 3: iload 5
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mElems:[Lcom/ctc/wstx/dtd/DTDElement;
arraylength
if_icmplt 6
4: aload 0
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mElems:[Lcom/ctc/wstx/dtd/DTDElement;
invokestatic com.ctc.wstx.util.DataUtil.growArrayBy50Pct:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.ctc.wstx.dtd.DTDElement[]
putfield com.ctc.wstx.dtd.DTDValidator.mElems:[Lcom/ctc/wstx/dtd/DTDElement;
5: aload 0
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mValidators:[Lcom/ctc/wstx/dtd/StructValidator;
invokestatic com.ctc.wstx.util.DataUtil.growArrayBy50Pct:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.ctc.wstx.dtd.StructValidator[]
putfield com.ctc.wstx.dtd.DTDValidator.mValidators:[Lcom/ctc/wstx/dtd/StructValidator;
6: StackMap locals: com.ctc.wstx.dtd.DTDElement int
StackMap stack:
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mElems:[Lcom/ctc/wstx/dtd/DTDElement;
iload 5
aload 0
aload 4
dup_x1
putfield com.ctc.wstx.dtd.DTDValidator.mCurrElem:Lcom/ctc/wstx/dtd/DTDElement;
aastore
7: aload 4
ifnull 8
aload 4
invokevirtual com.ctc.wstx.dtd.DTDElement.isDefined:()Z
ifne 9
8: StackMap locals:
StackMap stack:
aload 0
getstatic com.ctc.wstx.cfg.ErrorConsts.ERR_VLD_UNKNOWN_ELEM:Ljava/lang/String;
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mTmpKey:Lcom/ctc/wstx/util/PrefixedName;
invokevirtual com.ctc.wstx.util.PrefixedName.toString:()Ljava/lang/String;
invokevirtual com.ctc.wstx.dtd.DTDValidator.reportValidationProblem:(Ljava/lang/String;Ljava/lang/Object;)V
9: StackMap locals:
StackMap stack:
iload 5
ifle 10
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mValidators:[Lcom/ctc/wstx/dtd/StructValidator;
iload 5
iconst_1
isub
aaload
goto 11
StackMap locals:
StackMap stack:
10: aconst_null
StackMap locals:
StackMap stack: com.ctc.wstx.dtd.StructValidator
11: astore 6
start local 6 12: aload 6
ifnull 25
aload 4
ifnull 25
13: aload 6
aload 4
invokevirtual com.ctc.wstx.dtd.DTDElement.getName:()Lcom/ctc/wstx/util/PrefixedName;
invokevirtual com.ctc.wstx.dtd.StructValidator.tryToValidate:(Lcom/ctc/wstx/util/PrefixedName;)Ljava/lang/String;
astore 7
start local 7 14: aload 7
ifnull 25
15: aload 7
ldc "$END"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 8
start local 8 16: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mElems:[Lcom/ctc/wstx/dtd/DTDElement;
iload 5
iconst_1
isub
aaload
invokevirtual com.ctc.wstx.dtd.DTDElement.toString:()Ljava/lang/String;
astore 9
start local 9 17: iload 8
iflt 21
18: new java.lang.StringBuilder
dup
aload 7
iconst_0
iload 8
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "</"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 9
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ">"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
19: aload 7
iload 8
iconst_4
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
20: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 7
21: StackMap locals: com.ctc.wstx.dtd.DTDValidator java.lang.String java.lang.String java.lang.String com.ctc.wstx.dtd.DTDElement int com.ctc.wstx.dtd.StructValidator java.lang.String int java.lang.String
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
ldc "Validation error, encountered element <"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
22: aload 4
invokevirtual com.ctc.wstx.dtd.DTDElement.getName:()Lcom/ctc/wstx/util/PrefixedName;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "> as a child of <"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
23: aload 9
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ">: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
24: invokevirtual com.ctc.wstx.dtd.DTDValidator.reportValidationProblem:(Ljava/lang/String;)V
end local 9 end local 8 end local 7 25: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield com.ctc.wstx.dtd.DTDValidator.mAttrCount:I
26: aload 0
bipush -2
putfield com.ctc.wstx.dtd.DTDValidator.mIdAttrIndex:I
27: aload 4
ifnonnull 33
28: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mValidators:[Lcom/ctc/wstx/dtd/StructValidator;
iload 5
aconst_null
aastore
29: aload 0
getstatic com.ctc.wstx.dtd.DTDValidator.NO_ATTRS:Ljava/util/HashMap;
putfield com.ctc.wstx.dtd.DTDValidator.mCurrAttrDefs:Ljava/util/HashMap;
30: aload 0
iconst_0
putfield com.ctc.wstx.dtd.DTDValidator.mCurrHasAnyFixed:Z
31: aload 0
aconst_null
putfield com.ctc.wstx.dtd.DTDValidator.mCurrSpecialAttrs:Ljava/util/BitSet;
32: goto 48
33: StackMap locals:
StackMap stack:
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mValidators:[Lcom/ctc/wstx/dtd/StructValidator;
iload 5
aload 4
invokevirtual com.ctc.wstx.dtd.DTDElement.getValidator:()Lcom/ctc/wstx/dtd/StructValidator;
aastore
34: aload 0
aload 4
invokevirtual com.ctc.wstx.dtd.DTDElement.getAttributes:()Ljava/util/HashMap;
putfield com.ctc.wstx.dtd.DTDValidator.mCurrAttrDefs:Ljava/util/HashMap;
35: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mCurrAttrDefs:Ljava/util/HashMap;
ifnonnull 37
36: aload 0
getstatic com.ctc.wstx.dtd.DTDValidator.NO_ATTRS:Ljava/util/HashMap;
putfield com.ctc.wstx.dtd.DTDValidator.mCurrAttrDefs:Ljava/util/HashMap;
37: StackMap locals:
StackMap stack:
aload 0
aload 4
invokevirtual com.ctc.wstx.dtd.DTDElement.hasFixedAttrs:()Z
putfield com.ctc.wstx.dtd.DTDValidator.mCurrHasAnyFixed:Z
38: aload 4
invokevirtual com.ctc.wstx.dtd.DTDElement.getSpecialCount:()I
istore 7
start local 7 39: iload 7
ifne 42
40: aload 0
aconst_null
putfield com.ctc.wstx.dtd.DTDValidator.mCurrSpecialAttrs:Ljava/util/BitSet;
41: goto 48
42: StackMap locals: int
StackMap stack:
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mTmpSpecialAttrs:Ljava/util/BitSet;
astore 8
start local 8 43: aload 8
ifnonnull 46
44: aload 0
new java.util.BitSet
dup
iload 7
invokespecial java.util.BitSet.<init>:(I)V
dup
astore 8
putfield com.ctc.wstx.dtd.DTDValidator.mTmpSpecialAttrs:Ljava/util/BitSet;
45: goto 47
46: StackMap locals: java.util.BitSet
StackMap stack:
aload 8
invokevirtual java.util.BitSet.clear:()V
47: StackMap locals:
StackMap stack:
aload 0
aload 8
putfield com.ctc.wstx.dtd.DTDValidator.mCurrSpecialAttrs:Ljava/util/BitSet;
end local 8 end local 7 48: StackMap locals:
StackMap stack:
return
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 49 0 this Lcom/ctc/wstx/dtd/DTDValidator;
0 49 1 localName Ljava/lang/String;
0 49 2 uri Ljava/lang/String;
0 49 3 prefix Ljava/lang/String;
2 49 4 elem Lcom/ctc/wstx/dtd/DTDElement;
3 49 5 elemCount I
12 49 6 pv Lcom/ctc/wstx/dtd/StructValidator;
14 25 7 msg Ljava/lang/String;
16 25 8 ix I
17 25 9 pname Ljava/lang/String;
39 48 7 specCount I
43 48 8 bs Ljava/util/BitSet;
Exceptions:
throws javax.xml.stream.XMLStreamException
MethodParameters:
Name Flags
localName
uri
prefix
public java.lang.String validateAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=10, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mCurrAttrDefs:Ljava/util/HashMap;
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mTmpKey:Lcom/ctc/wstx/util/PrefixedName;
aload 3
aload 1
invokevirtual com.ctc.wstx.util.PrefixedName.reset:(Ljava/lang/String;Ljava/lang/String;)Lcom/ctc/wstx/util/PrefixedName;
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.ctc.wstx.dtd.DTDAttribute
astore 5
start local 5 1: aload 5
ifnonnull 7
2: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mCurrElem:Lcom/ctc/wstx/dtd/DTDElement;
ifnull 6
3: aload 0
getstatic com.ctc.wstx.cfg.ErrorConsts.ERR_VLD_UNKNOWN_ATTR:Ljava/lang/String;
4: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mCurrElem:Lcom/ctc/wstx/dtd/DTDElement;
invokevirtual com.ctc.wstx.dtd.DTDElement.toString:()Ljava/lang/String;
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mTmpKey:Lcom/ctc/wstx/util/PrefixedName;
invokevirtual com.ctc.wstx.util.PrefixedName.toString:()Ljava/lang/String;
5: invokevirtual com.ctc.wstx.dtd.DTDValidator.reportValidationProblem:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
6: StackMap locals: com.ctc.wstx.dtd.DTDAttribute
StackMap stack:
aload 4
areturn
7: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.ctc.wstx.dtd.DTDValidator.mAttrCount:I
dup_x1
iconst_1
iadd
putfield com.ctc.wstx.dtd.DTDValidator.mAttrCount:I
istore 6
start local 6 8: iload 6
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mAttrSpecs:[Lcom/ctc/wstx/dtd/DTDAttribute;
arraylength
if_icmplt 10
9: aload 0
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mAttrSpecs:[Lcom/ctc/wstx/dtd/DTDAttribute;
invokestatic com.ctc.wstx.util.DataUtil.growArrayBy50Pct:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.ctc.wstx.dtd.DTDAttribute[]
putfield com.ctc.wstx.dtd.DTDValidator.mAttrSpecs:[Lcom/ctc/wstx/dtd/DTDAttribute;
10: StackMap locals: int
StackMap stack:
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mAttrSpecs:[Lcom/ctc/wstx/dtd/DTDAttribute;
iload 6
aload 5
aastore
11: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mCurrSpecialAttrs:Ljava/util/BitSet;
ifnull 15
12: aload 5
invokevirtual com.ctc.wstx.dtd.DTDAttribute.getSpecialIndex:()I
istore 7
start local 7 13: iload 7
iflt 15
14: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mCurrSpecialAttrs:Ljava/util/BitSet;
iload 7
invokevirtual java.util.BitSet.set:(I)V
end local 7 15: StackMap locals:
StackMap stack:
aload 5
aload 0
aload 4
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mNormAttrs:Z
invokevirtual com.ctc.wstx.dtd.DTDAttribute.validate:(Lcom/ctc/wstx/dtd/DTDValidatorBase;Ljava/lang/String;Z)Ljava/lang/String;
astore 7
start local 7 16: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mCurrHasAnyFixed:Z
ifeq 23
aload 5
invokevirtual com.ctc.wstx.dtd.DTDAttribute.isFixed:()Z
ifeq 23
17: aload 7
ifnonnull 18
aload 4
goto 19
StackMap locals: java.lang.String
StackMap stack:
18: aload 7
StackMap locals:
StackMap stack: java.lang.String
19: astore 8
start local 8 20: aload 5
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mContext:Lorg/codehaus/stax2/validation/ValidationContext;
aload 0
invokevirtual com.ctc.wstx.dtd.DTDAttribute.getDefaultValue:(Lorg/codehaus/stax2/validation/ValidationContext;Lorg/codehaus/stax2/validation/XMLValidator;)Ljava/lang/String;
astore 9
start local 9 21: aload 8
aload 9
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 23
22: aload 0
new java.lang.StringBuilder
dup
ldc "Value of attribute \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "\" (element <"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mCurrElem:Lcom/ctc/wstx/dtd/DTDElement;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ">) not \""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 9
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\" as expected, but \""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 8
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual com.ctc.wstx.dtd.DTDValidator.reportValidationProblem:(Ljava/lang/String;)V
end local 9 end local 8 23: StackMap locals:
StackMap stack:
aload 7
areturn
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 24 0 this Lcom/ctc/wstx/dtd/DTDValidator;
0 24 1 localName Ljava/lang/String;
0 24 2 uri Ljava/lang/String;
0 24 3 prefix Ljava/lang/String;
0 24 4 value Ljava/lang/String;
1 24 5 attr Lcom/ctc/wstx/dtd/DTDAttribute;
8 24 6 index I
13 15 7 specIndex I
16 24 7 result Ljava/lang/String;
20 23 8 act Ljava/lang/String;
21 23 9 exp Ljava/lang/String;
Exceptions:
throws javax.xml.stream.XMLStreamException
MethodParameters:
Name Flags
localName
uri
prefix
value
public java.lang.String validateAttribute(java.lang.String, java.lang.String, java.lang.String, char[], int, int);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[CII)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=13, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mCurrAttrDefs:Ljava/util/HashMap;
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mTmpKey:Lcom/ctc/wstx/util/PrefixedName;
aload 3
aload 1
invokevirtual com.ctc.wstx.util.PrefixedName.reset:(Ljava/lang/String;Ljava/lang/String;)Lcom/ctc/wstx/util/PrefixedName;
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.ctc.wstx.dtd.DTDAttribute
astore 7
start local 7 1: aload 7
ifnonnull 7
2: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mCurrElem:Lcom/ctc/wstx/dtd/DTDElement;
ifnull 6
3: aload 0
getstatic com.ctc.wstx.cfg.ErrorConsts.ERR_VLD_UNKNOWN_ATTR:Ljava/lang/String;
4: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mCurrElem:Lcom/ctc/wstx/dtd/DTDElement;
invokevirtual com.ctc.wstx.dtd.DTDElement.toString:()Ljava/lang/String;
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mTmpKey:Lcom/ctc/wstx/util/PrefixedName;
invokevirtual com.ctc.wstx.util.PrefixedName.toString:()Ljava/lang/String;
5: invokevirtual com.ctc.wstx.dtd.DTDValidator.reportValidationProblem:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
6: StackMap locals: com.ctc.wstx.dtd.DTDAttribute
StackMap stack:
new java.lang.String
dup
aload 4
iload 5
iload 6
invokespecial java.lang.String.<init>:([CII)V
areturn
7: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.ctc.wstx.dtd.DTDValidator.mAttrCount:I
dup_x1
iconst_1
iadd
putfield com.ctc.wstx.dtd.DTDValidator.mAttrCount:I
istore 8
start local 8 8: iload 8
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mAttrSpecs:[Lcom/ctc/wstx/dtd/DTDAttribute;
arraylength
if_icmplt 10
9: aload 0
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mAttrSpecs:[Lcom/ctc/wstx/dtd/DTDAttribute;
invokestatic com.ctc.wstx.util.DataUtil.growArrayBy50Pct:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.ctc.wstx.dtd.DTDAttribute[]
putfield com.ctc.wstx.dtd.DTDValidator.mAttrSpecs:[Lcom/ctc/wstx/dtd/DTDAttribute;
10: StackMap locals: int
StackMap stack:
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mAttrSpecs:[Lcom/ctc/wstx/dtd/DTDAttribute;
iload 8
aload 7
aastore
11: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mCurrSpecialAttrs:Ljava/util/BitSet;
ifnull 15
12: aload 7
invokevirtual com.ctc.wstx.dtd.DTDAttribute.getSpecialIndex:()I
istore 9
start local 9 13: iload 9
iflt 15
14: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mCurrSpecialAttrs:Ljava/util/BitSet;
iload 9
invokevirtual java.util.BitSet.set:(I)V
end local 9 15: StackMap locals:
StackMap stack:
aload 7
aload 0
aload 4
iload 5
iload 6
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mNormAttrs:Z
invokevirtual com.ctc.wstx.dtd.DTDAttribute.validate:(Lcom/ctc/wstx/dtd/DTDValidatorBase;[CIIZ)Ljava/lang/String;
astore 9
start local 9 16: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mCurrHasAnyFixed:Z
ifeq 28
aload 7
invokevirtual com.ctc.wstx.dtd.DTDAttribute.isFixed:()Z
ifeq 28
17: aload 7
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mContext:Lorg/codehaus/stax2/validation/ValidationContext;
aload 0
invokevirtual com.ctc.wstx.dtd.DTDAttribute.getDefaultValue:(Lorg/codehaus/stax2/validation/ValidationContext;Lorg/codehaus/stax2/validation/XMLValidator;)Ljava/lang/String;
astore 10
start local 10 18: aload 9
ifnonnull 21
19: aload 10
aload 4
iload 5
iload 6
iload 5
isub
invokestatic com.ctc.wstx.util.StringUtil.matches:(Ljava/lang/String;[CII)Z
istore 11
start local 11 20: goto 22
end local 11 21: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 10
aload 9
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
istore 11
start local 11 22: StackMap locals: int
StackMap stack:
iload 11
ifne 28
23: aload 9
ifnonnull 25
24: new java.lang.String
dup
aload 4
iload 5
iload 6
invokespecial java.lang.String.<init>:([CII)V
goto 26
StackMap locals:
StackMap stack:
25: aload 9
26: StackMap locals:
StackMap stack: java.lang.String
astore 12
start local 12 27: aload 0
new java.lang.StringBuilder
dup
ldc "Value of #FIXED attribute \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "\" (element <"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mCurrElem:Lcom/ctc/wstx/dtd/DTDElement;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ">) not \""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 10
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\" as expected, but \""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 12
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual com.ctc.wstx.dtd.DTDValidator.reportValidationProblem:(Ljava/lang/String;)V
end local 12 end local 11 end local 10 28: StackMap locals:
StackMap stack:
aload 9
areturn
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 29 0 this Lcom/ctc/wstx/dtd/DTDValidator;
0 29 1 localName Ljava/lang/String;
0 29 2 uri Ljava/lang/String;
0 29 3 prefix Ljava/lang/String;
0 29 4 valueChars [C
0 29 5 valueStart I
0 29 6 valueEnd I
1 29 7 attr Lcom/ctc/wstx/dtd/DTDAttribute;
8 29 8 index I
13 15 9 specIndex I
16 29 9 result Ljava/lang/String;
18 28 10 exp Ljava/lang/String;
20 21 11 match Z
22 28 11 match Z
27 28 12 act Ljava/lang/String;
Exceptions:
throws javax.xml.stream.XMLStreamException
MethodParameters:
Name Flags
localName
uri
prefix
valueChars
valueStart
valueEnd
public int validateElementAndAttributes();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mCurrElem:Lcom/ctc/wstx/dtd/DTDElement;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: iconst_4
ireturn
3: StackMap locals: com.ctc.wstx.dtd.DTDElement
StackMap stack:
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mCurrSpecialAttrs:Ljava/util/BitSet;
ifnull 16
4: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mCurrSpecialAttrs:Ljava/util/BitSet;
astore 2
start local 2 5: aload 1
invokevirtual com.ctc.wstx.dtd.DTDElement.getSpecialCount:()I
istore 3
start local 3 6: aload 2
iconst_0
invokevirtual java.util.BitSet.nextClearBit:(I)I
istore 4
start local 4 7: goto 15
8: StackMap locals: java.util.BitSet int int
StackMap stack:
aload 1
invokevirtual com.ctc.wstx.dtd.DTDElement.getSpecialAttrs:()Ljava/util/List;
astore 5
start local 5 9: aload 5
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.ctc.wstx.dtd.DTDAttribute
astore 6
start local 6 10: aload 6
invokevirtual com.ctc.wstx.dtd.DTDAttribute.isRequired:()Z
ifeq 13
11: aload 0
ldc "Required attribute \"{0}\" missing from element <{1}>"
aload 6
aload 1
invokevirtual com.ctc.wstx.dtd.DTDValidator.reportValidationProblem:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
12: goto 14
13: StackMap locals: java.util.List com.ctc.wstx.dtd.DTDAttribute
StackMap stack:
aload 0
aload 6
invokevirtual com.ctc.wstx.dtd.DTDValidator.doAddDefaultValue:(Lcom/ctc/wstx/dtd/DTDAttribute;)V
14: StackMap locals:
StackMap stack:
aload 2
iload 4
iconst_1
iadd
invokevirtual java.util.BitSet.nextClearBit:(I)I
istore 4
end local 6 end local 5 15: StackMap locals:
StackMap stack:
iload 4
iload 3
if_icmplt 8
end local 4 end local 3 end local 2 16: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.ctc.wstx.dtd.DTDElement.getAllowedContent:()I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/ctc/wstx/dtd/DTDValidator;
1 17 1 elem Lcom/ctc/wstx/dtd/DTDElement;
5 16 2 specBits Ljava/util/BitSet;
6 16 3 specCount I
7 16 4 ix I
9 15 5 specAttrs Ljava/util/List<Lcom/ctc/wstx/dtd/DTDAttribute;>;
10 15 6 attr Lcom/ctc/wstx/dtd/DTDAttribute;
Exceptions:
throws javax.xml.stream.XMLStreamException
public int validateElementEnd(java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mElemCount:I
iconst_1
isub
istore 4
start local 4 1: iload 4
ifge 3
2: iconst_1
ireturn
3: StackMap locals: int
StackMap stack:
aload 0
iload 4
putfield com.ctc.wstx.dtd.DTDValidator.mElemCount:I
4: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mElems:[Lcom/ctc/wstx/dtd/DTDElement;
iload 4
aaload
astore 5
start local 5 5: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mElems:[Lcom/ctc/wstx/dtd/DTDElement;
iload 4
aconst_null
aastore
6: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mValidators:[Lcom/ctc/wstx/dtd/StructValidator;
iload 4
aaload
astore 6
start local 6 7: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mValidators:[Lcom/ctc/wstx/dtd/StructValidator;
iload 4
aconst_null
aastore
8: aload 6
ifnull 14
9: aload 6
invokevirtual com.ctc.wstx.dtd.StructValidator.fullyValid:()Ljava/lang/String;
astore 7
start local 7 10: aload 7
ifnull 14
11: aload 0
new java.lang.StringBuilder
dup
ldc "Validation error, element </"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
12: aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ">: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
13: invokevirtual com.ctc.wstx.dtd.DTDValidator.reportValidationProblem:(Ljava/lang/String;)V
end local 7 14: StackMap locals: com.ctc.wstx.dtd.DTDElement com.ctc.wstx.dtd.StructValidator
StackMap stack:
iload 4
iconst_1
if_icmpge 16
15: iconst_1
ireturn
16: StackMap locals:
StackMap stack:
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mElems:[Lcom/ctc/wstx/dtd/DTDElement;
iload 4
iconst_1
isub
aaload
astore 7
start local 7 17: aload 7
ifnonnull 19
18: iconst_4
goto 20
19: StackMap locals: com.ctc.wstx.dtd.DTDElement
StackMap stack:
aload 7
invokevirtual com.ctc.wstx.dtd.DTDElement.getAllowedContent:()I
20: StackMap locals:
StackMap stack: int
ireturn
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 21 0 this Lcom/ctc/wstx/dtd/DTDValidator;
0 21 1 localName Ljava/lang/String;
0 21 2 uri Ljava/lang/String;
0 21 3 prefix Ljava/lang/String;
1 21 4 ix I
5 21 5 closingElem Lcom/ctc/wstx/dtd/DTDElement;
7 21 6 v Lcom/ctc/wstx/dtd/StructValidator;
10 14 7 msg Ljava/lang/String;
17 21 7 element Lcom/ctc/wstx/dtd/DTDElement;
Exceptions:
throws javax.xml.stream.XMLStreamException
MethodParameters:
Name Flags
localName
uri
prefix
public void validationCompleted(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.ctc.wstx.dtd.DTDValidator.checkIdRefs:()V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/ctc/wstx/dtd/DTDValidator;
0 2 1 eod Z
Exceptions:
throws javax.xml.stream.XMLStreamException
MethodParameters:
Name Flags
eod
protected com.ctc.wstx.util.ElementIdMap getIdMap();
descriptor: ()Lcom/ctc/wstx/util/ElementIdMap;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mIdMap:Lcom/ctc/wstx/util/ElementIdMap;
ifnonnull 2
1: aload 0
new com.ctc.wstx.util.ElementIdMap
dup
invokespecial com.ctc.wstx.util.ElementIdMap.<init>:()V
putfield com.ctc.wstx.dtd.DTDValidator.mIdMap:Lcom/ctc/wstx/util/ElementIdMap;
2: StackMap locals:
StackMap stack:
aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mIdMap:Lcom/ctc/wstx/util/ElementIdMap;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/ctc/wstx/dtd/DTDValidator;
protected void checkIdRefs();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mIdMap:Lcom/ctc/wstx/util/ElementIdMap;
ifnull 9
1: aload 0
getfield com.ctc.wstx.dtd.DTDValidator.mIdMap:Lcom/ctc/wstx/util/ElementIdMap;
invokevirtual com.ctc.wstx.util.ElementIdMap.getFirstUndefined:()Lcom/ctc/wstx/util/ElementId;
astore 1
start local 1 2: aload 1
ifnull 9
3: aload 0
new java.lang.StringBuilder
dup
ldc "Undefined id '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual com.ctc.wstx.util.ElementId.getId:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: ldc "': referenced from element <"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: aload 1
invokevirtual com.ctc.wstx.util.ElementId.getElemName:()Lcom/ctc/wstx/util/PrefixedName;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ">, attribute '"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: aload 1
invokevirtual com.ctc.wstx.util.ElementId.getAttrName:()Lcom/ctc/wstx/util/PrefixedName;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: aload 1
invokevirtual com.ctc.wstx.util.ElementId.getLocation:()Ljavax/xml/stream/Location;
8: invokevirtual com.ctc.wstx.dtd.DTDValidator.reportValidationProblem:(Ljava/lang/String;Ljavax/xml/stream/Location;)V
end local 1 9: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/ctc/wstx/dtd/DTDValidator;
2 9 1 ref Lcom/ctc/wstx/util/ElementId;
Exceptions:
throws javax.xml.stream.XMLStreamException
}
SourceFile: "DTDValidator.java"