equal
deleted
inserted
replaced
24 package com.sun.org.apache.xalan.internal.xsltc.compiler; |
24 package com.sun.org.apache.xalan.internal.xsltc.compiler; |
25 |
25 |
26 import java.util.Vector; |
26 import java.util.Vector; |
27 |
27 |
28 import com.sun.org.apache.bcel.internal.generic.ConstantPoolGen; |
28 import com.sun.org.apache.bcel.internal.generic.ConstantPoolGen; |
29 import com.sun.org.apache.bcel.internal.generic.INVOKEVIRTUAL; |
29 import com.sun.org.apache.bcel.internal.generic.INVOKESTATIC; |
30 import com.sun.org.apache.bcel.internal.generic.InstructionList; |
30 import com.sun.org.apache.bcel.internal.generic.InstructionList; |
31 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator; |
31 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator; |
32 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator; |
32 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator; |
33 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type; |
33 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type; |
34 |
34 |
49 } |
49 } |
50 else { |
50 else { |
51 il.append(methodGen.loadContextNode()); |
51 il.append(methodGen.loadContextNode()); |
52 Type.Node.translateTo(classGen, methodGen, Type.String); |
52 Type.Node.translateTo(classGen, methodGen, Type.String); |
53 } |
53 } |
54 il.append(new INVOKEVIRTUAL(cpg.addMethodref(STRING_CLASS, |
54 il.append(new INVOKESTATIC(cpg.addMethodref(BASIS_LIBRARY_CLASS, |
55 "length", "()I"))); |
55 "getStringLength", |
|
56 "(Ljava/lang/String;)I"))); |
56 } |
57 } |
57 } |
58 } |