< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/FunctionCall.java

Print this page


   1 /*
   2  * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * @LastModified: Nov 2017
   4  */
   5 /*
   6  * Licensed to the Apache Software Foundation (ASF) under one or more
   7  * contributor license agreements.  See the NOTICE file distributed with
   8  * this work for additional information regarding copyright ownership.
   9  * The ASF licenses this file to You under the Apache License, Version 2.0
  10  * (the "License"); you may not use this file except in compliance with
  11  * the License.  You may obtain a copy of the License at
  12  *
  13  *      http://www.apache.org/licenses/LICENSE-2.0
  14  *
  15  * Unless required by applicable law or agreed to in writing, software
  16  * distributed under the License is distributed on an "AS IS" BASIS,
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18  * See the License for the specific language governing permissions and
  19  * limitations under the License.
  20  */
  21 
  22 package com.sun.org.apache.xalan.internal.xsltc.compiler;
  23 


  46 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ReferenceType;
  47 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type;
  48 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.TypeCheckError;
  49 import java.lang.reflect.Constructor;
  50 import java.lang.reflect.Method;
  51 import java.lang.reflect.Modifier;
  52 import java.util.ArrayList;
  53 import java.util.Collections;
  54 import java.util.HashMap;
  55 import java.util.List;
  56 import java.util.Map;
  57 import java.util.Objects;
  58 import jdk.xml.internal.JdkXmlFeatures;
  59 
  60 /**
  61  * @author Jacek Ambroziak
  62  * @author Santiago Pericas-Geertsen
  63  * @author Morten Jorgensen
  64  * @author Erwin Bolwidt <ejb@klomp.org>
  65  * @author Todd Miller

  66  */
  67 class FunctionCall extends Expression {
  68 
  69     // Name of this function call
  70     private QName  _fname;
  71     // Arguments to this function call (might not be any)
  72     private final List<Expression> _arguments;
  73     // Empty argument list, used for certain functions
  74     private final static List<Expression> EMPTY_ARG_LIST = new ArrayList<>(0);
  75 
  76     // Valid namespaces for Java function-call extension
  77     protected final static String EXT_XSLTC =
  78         TRANSLET_URI;
  79 
  80     protected final static String JAVA_EXT_XSLTC =
  81         EXT_XSLTC + "/java";
  82 
  83     protected final static String EXT_XALAN =
  84         "http://xml.apache.org/xalan";
  85 


   1 /*
   2  * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.

   3  */
   4 /*
   5  * Licensed to the Apache Software Foundation (ASF) under one or more
   6  * contributor license agreements.  See the NOTICE file distributed with
   7  * this work for additional information regarding copyright ownership.
   8  * The ASF licenses this file to You under the Apache License, Version 2.0
   9  * (the "License"); you may not use this file except in compliance with
  10  * the License.  You may obtain a copy of the License at
  11  *
  12  *      http://www.apache.org/licenses/LICENSE-2.0
  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 
  21 package com.sun.org.apache.xalan.internal.xsltc.compiler;
  22 


  45 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ReferenceType;
  46 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type;
  47 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.TypeCheckError;
  48 import java.lang.reflect.Constructor;
  49 import java.lang.reflect.Method;
  50 import java.lang.reflect.Modifier;
  51 import java.util.ArrayList;
  52 import java.util.Collections;
  53 import java.util.HashMap;
  54 import java.util.List;
  55 import java.util.Map;
  56 import java.util.Objects;
  57 import jdk.xml.internal.JdkXmlFeatures;
  58 
  59 /**
  60  * @author Jacek Ambroziak
  61  * @author Santiago Pericas-Geertsen
  62  * @author Morten Jorgensen
  63  * @author Erwin Bolwidt <ejb@klomp.org>
  64  * @author Todd Miller
  65  * @LastModified: Nov 2017
  66  */
  67 class FunctionCall extends Expression {
  68 
  69     // Name of this function call
  70     private QName  _fname;
  71     // Arguments to this function call (might not be any)
  72     private final List<Expression> _arguments;
  73     // Empty argument list, used for certain functions
  74     private final static List<Expression> EMPTY_ARG_LIST = new ArrayList<>(0);
  75 
  76     // Valid namespaces for Java function-call extension
  77     protected final static String EXT_XSLTC =
  78         TRANSLET_URI;
  79 
  80     protected final static String JAVA_EXT_XSLTC =
  81         EXT_XSLTC + "/java";
  82 
  83     protected final static String EXT_XALAN =
  84         "http://xml.apache.org/xalan";
  85 


< prev index next >