src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/CastCall.java
changeset 47359 e1a6c0168741
parent 47216 71c04702a3d5
child 48409 5ab69533994b
equal deleted inserted replaced
47358:d07d5f7cab35 47359:e1a6c0168741
     1 /*
     1 /*
     2  * reserved comment block
     2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT REMOVE OR ALTER!
     3  * @LastModified: Oct 2017
     4  */
     4  */
     5 /*
     5 /*
     6  * Licensed to the Apache Software Foundation (ASF) under one or more
     6  * Licensed to the Apache Software Foundation (ASF) under one or more
     7  * contributor license agreements.  See the NOTICE file distributed with
     7  * contributor license agreements.  See the NOTICE file distributed with
     8  * this work for additional information regarding copyright ownership.
     8  * this work for additional information regarding copyright ownership.
    19  * limitations under the License.
    19  * limitations under the License.
    20  */
    20  */
    21 
    21 
    22 package com.sun.org.apache.xalan.internal.xsltc.compiler;
    22 package com.sun.org.apache.xalan.internal.xsltc.compiler;
    23 
    23 
    24 import java.util.Vector;
    24 import com.sun.org.apache.bcel.internal.generic.CHECKCAST;
    25 
       
    26 import com.sun.org.apache.bcel.internal.generic.ConstantPoolGen;
    25 import com.sun.org.apache.bcel.internal.generic.ConstantPoolGen;
    27 import com.sun.org.apache.bcel.internal.generic.CHECKCAST;
       
    28 import com.sun.org.apache.bcel.internal.generic.InstructionList;
    26 import com.sun.org.apache.bcel.internal.generic.InstructionList;
    29 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator;
    27 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator;
       
    28 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg;
    30 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator;
    29 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator;
    31 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg;
    30 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ObjectType;
    32 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type;
    31 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type;
    33 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ObjectType;
       
    34 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.TypeCheckError;
    32 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.TypeCheckError;
       
    33 import java.util.List;
    35 
    34 
    36 /**
    35 /**
    37  * @author Santiago Pericas-Geertsen
    36  * @author Santiago Pericas-Geertsen
    38  */
    37  */
    39 final class CastCall extends FunctionCall {
    38 final class CastCall extends FunctionCall {
    50     private Expression _right;
    49     private Expression _right;
    51 
    50 
    52     /**
    51     /**
    53      * Constructor.
    52      * Constructor.
    54      */
    53      */
    55     public CastCall(QName fname, Vector arguments) {
    54     public CastCall(QName fname, List<Expression> arguments) {
    56         super(fname, arguments);
    55         super(fname, arguments);
    57     }
    56     }
    58 
    57 
    59     /**
    58     /**
    60      * Type check the two parameters for this function
    59      * Type check the two parameters for this function