< prev index next >

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

Print this page
rev 1063 : 8172974: [JAXP] XALAN: Wrong result when transforming namespace unaware StAX Input
   1 /*
   2  * Copyright (c) 2016, 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  * $Id: Constants.java,v 1.7 2006/06/19 19:49:04 spericas Exp $
  22  */
  23 
  24 package com.sun.org.apache.xalan.internal.xsltc.compiler;
  25 
  26 import com.sun.org.apache.bcel.internal.generic.InstructionConstants;
  27 
  28 /**
  29  * @author Jacek Ambroziak
  30  * @author Santiago Pericas-Geertsen
  31  */
  32 public interface Constants extends InstructionConstants {
  33 
  34     // Error categories used to report errors to Parser.reportError()
  35 
  36     // Unexpected internal errors, such as null-ptr exceptions, etc.
  37     // Immediately terminates compilation, no translet produced
  38     public final int INTERNAL        = 0;
  39     // XSLT elements that are not implemented and unsupported ext.
  40     // Immediately terminates compilation, no translet produced
  41     public final int UNSUPPORTED     = 1;
  42     // Fatal error in the stylesheet input (parsing or content)


  50     public final int WARNING         = 4;
  51 
  52     public static final String EMPTYSTRING = "";
  53 
  54     public static final String NAMESPACE_FEATURE =
  55         "http://xml.org/sax/features/namespaces";
  56 
  57     public static final String TRANSLET_INTF
  58         = "com.sun.org.apache.xalan.internal.xsltc.Translet";
  59     public static final String TRANSLET_INTF_SIG
  60         = "Lcom/sun/org/apache/xalan/internal/xsltc/Translet;";
  61 
  62     public static final String ATTRIBUTES_SIG
  63         = "Lcom/sun/org/apache/xalan/internal/xsltc/runtime/Attributes;";
  64     public static final String NODE_ITERATOR_SIG
  65         = "Lcom/sun/org/apache/xml/internal/dtm/DTMAxisIterator;";
  66     public static final String DOM_INTF_SIG
  67         = "Lcom/sun/org/apache/xalan/internal/xsltc/DOM;";
  68     public static final String DOM_IMPL_CLASS
  69         = "com/sun/org/apache/xalan/internal/xsltc/DOM"; // xml/dtm/ref/DTMDefaultBaseIterators"; //xalan/xsltc/dom/DOMImpl";
  70         public static final String SAX_IMPL_CLASS
  71         = "com/sun/org/apache/xalan/internal/xsltc/DOM/SAXImpl";
  72     public static final String DOM_IMPL_SIG
  73         = "Lcom/sun/org/apache/xalan/internal/xsltc/dom/SAXImpl;"; //xml/dtm/ref/DTMDefaultBaseIterators"; //xalan/xsltc/dom/DOMImpl;";
  74         public static final String SAX_IMPL_SIG
  75         = "Lcom/sun/org/apache/xalan/internal/xsltc/dom/SAXImpl;";
  76     public static final String DOM_ADAPTER_CLASS
  77         = "com/sun/org/apache/xalan/internal/xsltc/dom/DOMAdapter";
  78     public static final String DOM_ADAPTER_SIG
  79         = "Lcom/sun/org/apache/xalan/internal/xsltc/dom/DOMAdapter;";
  80     public static final String MULTI_DOM_CLASS
  81         = "com.sun.org.apache.xalan.internal.xsltc.dom.MultiDOM";
  82     public static final String MULTI_DOM_SIG
  83         = "Lcom/sun/org/apache/xalan/internal/xsltc/dom/MultiDOM;";
  84 
  85     public static final String STRING
  86         = "java.lang.String";
  87 
  88     public static final int ACC_PUBLIC
  89         = com.sun.org.apache.bcel.internal.Constants.ACC_PUBLIC;
  90     public static final int ACC_SUPER
  91         = com.sun.org.apache.bcel.internal.Constants.ACC_SUPER;
  92     public static final int ACC_FINAL
  93         = com.sun.org.apache.bcel.internal.Constants.ACC_FINAL;
  94     public static final int ACC_PRIVATE


 172     public static final String CURRENT_NODE_LIST_FILTER_SIG
 173         = "Lcom/sun/org/apache/xalan/internal/xsltc/dom/CurrentNodeListFilter;";
 174     public static final String FILTER_STEP_ITERATOR
 175         = "com.sun.org.apache.xalan.internal.xsltc.dom.FilteredStepIterator";
 176     public static final String FILTER_ITERATOR
 177         = "com.sun.org.apache.xalan.internal.xsltc.dom.FilterIterator";
 178     public static final String SINGLETON_ITERATOR
 179         = "com.sun.org.apache.xalan.internal.xsltc.dom.SingletonIterator";
 180     public static final String MATCHING_ITERATOR
 181         = "com.sun.org.apache.xalan.internal.xsltc.dom.MatchingIterator";
 182     public static final String NODE_SIG
 183         = "I";
 184     public static final String GET_PARENT
 185         = "getParent";
 186     public static final String GET_PARENT_SIG
 187         = "(" + NODE_SIG + ")" + NODE_SIG;
 188     public static final String NEXT_SIG
 189         = "()" + NODE_SIG;
 190     public static final String NEXT
 191         = "next";
 192         public static final String NEXTID
 193         = "nextNodeID";
 194     public static final String MAKE_NODE
 195         = "makeNode";
 196     public static final String MAKE_NODE_LIST
 197         = "makeNodeList";
 198     public static final String GET_UNPARSED_ENTITY_URI
 199         = "getUnparsedEntityURI";
 200     public static final String STRING_TO_REAL
 201         = "stringToReal";
 202     public static final String STRING_TO_REAL_SIG
 203         = "(" + STRING_SIG + ")D";
 204     public static final String STRING_TO_INT
 205         = "stringToInt";
 206     public static final String STRING_TO_INT_SIG
 207         = "(" + STRING_SIG + ")I";
 208 
 209     public static final String XSLT_PACKAGE
 210         = "com.sun.org.apache.xalan.internal.xsltc";
 211     public static final String COMPILER_PACKAGE
 212         = XSLT_PACKAGE + ".compiler";


 214         = XSLT_PACKAGE + ".runtime";
 215     public static final String TRANSLET_CLASS
 216         = RUNTIME_PACKAGE + ".AbstractTranslet";
 217 
 218     public static final String TRANSLET_SIG
 219         = "Lcom/sun/org/apache/xalan/internal/xsltc/runtime/AbstractTranslet;";
 220     public static final String UNION_ITERATOR_SIG
 221         = "Lcom/sun/org/apache/xalan/internal/xsltc/dom/UnionIterator;";
 222     public static final String TRANSLET_OUTPUT_SIG
 223         = "Lcom/sun/org/apache/xml/internal/serializer/SerializationHandler;";
 224     public static final String MAKE_NODE_SIG
 225         = "(I)Lorg/w3c/dom/Node;";
 226     public static final String MAKE_NODE_SIG2
 227         = "(" + NODE_ITERATOR_SIG + ")Lorg/w3c/dom/Node;";
 228     public static final String MAKE_NODE_LIST_SIG
 229         = "(I)Lorg/w3c/dom/NodeList;";
 230     public static final String MAKE_NODE_LIST_SIG2
 231         = "(" + NODE_ITERATOR_SIG + ")Lorg/w3c/dom/NodeList;";
 232 
 233     public static final String STREAM_XML_OUTPUT
 234     = "com.sun.org.apache.xml.internal.serializer.ToXMLStream";
 235 
 236     public static final String OUTPUT_BASE
 237     = "com.sun.org.apache.xml.internal.serializer.SerializerBase";
 238 
 239     public static final String LOAD_DOCUMENT_CLASS
 240         = "com.sun.org.apache.xalan.internal.xsltc.dom.LoadDocument";
 241 
 242     public static final String KEY_INDEX_CLASS
 243         = "com/sun/org/apache/xalan/internal/xsltc/dom/KeyIndex";
 244     public static final String KEY_INDEX_SIG
 245         = "Lcom/sun/org/apache/xalan/internal/xsltc/dom/KeyIndex;";
 246 
 247     public static final String KEY_INDEX_ITERATOR_SIG
 248         = "Lcom/sun/org/apache/xalan/internal/xsltc/dom/KeyIndex$KeyIndexIterator;";
 249     public static final String DOM_INTF
 250         = "com.sun.org.apache.xalan.internal.xsltc.DOM";
 251     public static final String DOM_IMPL
 252         = "com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl";
 253     public static final String SAX_IMPL
 254         = "com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl";
 255     public static final String CLASS_CLASS
 256         = "java.lang.Class";
 257     public static final String MODULE_CLASS


   1 /*
   2  * Copyright (c) 2016, 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 
  23 import com.sun.org.apache.bcel.internal.generic.InstructionConstants;
  24 
  25 /**
  26  * @author Jacek Ambroziak
  27  * @author Santiago Pericas-Geertsen
  28  */
  29 public interface Constants extends InstructionConstants {
  30 
  31     // Error categories used to report errors to Parser.reportError()
  32 
  33     // Unexpected internal errors, such as null-ptr exceptions, etc.
  34     // Immediately terminates compilation, no translet produced
  35     public final int INTERNAL        = 0;
  36     // XSLT elements that are not implemented and unsupported ext.
  37     // Immediately terminates compilation, no translet produced
  38     public final int UNSUPPORTED     = 1;
  39     // Fatal error in the stylesheet input (parsing or content)


  47     public final int WARNING         = 4;
  48 
  49     public static final String EMPTYSTRING = "";
  50 
  51     public static final String NAMESPACE_FEATURE =
  52         "http://xml.org/sax/features/namespaces";
  53 
  54     public static final String TRANSLET_INTF
  55         = "com.sun.org.apache.xalan.internal.xsltc.Translet";
  56     public static final String TRANSLET_INTF_SIG
  57         = "Lcom/sun/org/apache/xalan/internal/xsltc/Translet;";
  58 
  59     public static final String ATTRIBUTES_SIG
  60         = "Lcom/sun/org/apache/xalan/internal/xsltc/runtime/Attributes;";
  61     public static final String NODE_ITERATOR_SIG
  62         = "Lcom/sun/org/apache/xml/internal/dtm/DTMAxisIterator;";
  63     public static final String DOM_INTF_SIG
  64         = "Lcom/sun/org/apache/xalan/internal/xsltc/DOM;";
  65     public static final String DOM_IMPL_CLASS
  66         = "com/sun/org/apache/xalan/internal/xsltc/DOM"; // xml/dtm/ref/DTMDefaultBaseIterators"; //xalan/xsltc/dom/DOMImpl";
  67     public static final String SAX_IMPL_CLASS
  68         = "com/sun/org/apache/xalan/internal/xsltc/DOM/SAXImpl";
  69     public static final String DOM_IMPL_SIG
  70         = "Lcom/sun/org/apache/xalan/internal/xsltc/dom/SAXImpl;"; //xml/dtm/ref/DTMDefaultBaseIterators"; //xalan/xsltc/dom/DOMImpl;";
  71     public static final String SAX_IMPL_SIG
  72         = "Lcom/sun/org/apache/xalan/internal/xsltc/dom/SAXImpl;";
  73     public static final String DOM_ADAPTER_CLASS
  74         = "com/sun/org/apache/xalan/internal/xsltc/dom/DOMAdapter";
  75     public static final String DOM_ADAPTER_SIG
  76         = "Lcom/sun/org/apache/xalan/internal/xsltc/dom/DOMAdapter;";
  77     public static final String MULTI_DOM_CLASS
  78         = "com.sun.org.apache.xalan.internal.xsltc.dom.MultiDOM";
  79     public static final String MULTI_DOM_SIG
  80         = "Lcom/sun/org/apache/xalan/internal/xsltc/dom/MultiDOM;";
  81 
  82     public static final String STRING
  83         = "java.lang.String";
  84 
  85     public static final int ACC_PUBLIC
  86         = com.sun.org.apache.bcel.internal.Constants.ACC_PUBLIC;
  87     public static final int ACC_SUPER
  88         = com.sun.org.apache.bcel.internal.Constants.ACC_SUPER;
  89     public static final int ACC_FINAL
  90         = com.sun.org.apache.bcel.internal.Constants.ACC_FINAL;
  91     public static final int ACC_PRIVATE


 169     public static final String CURRENT_NODE_LIST_FILTER_SIG
 170         = "Lcom/sun/org/apache/xalan/internal/xsltc/dom/CurrentNodeListFilter;";
 171     public static final String FILTER_STEP_ITERATOR
 172         = "com.sun.org.apache.xalan.internal.xsltc.dom.FilteredStepIterator";
 173     public static final String FILTER_ITERATOR
 174         = "com.sun.org.apache.xalan.internal.xsltc.dom.FilterIterator";
 175     public static final String SINGLETON_ITERATOR
 176         = "com.sun.org.apache.xalan.internal.xsltc.dom.SingletonIterator";
 177     public static final String MATCHING_ITERATOR
 178         = "com.sun.org.apache.xalan.internal.xsltc.dom.MatchingIterator";
 179     public static final String NODE_SIG
 180         = "I";
 181     public static final String GET_PARENT
 182         = "getParent";
 183     public static final String GET_PARENT_SIG
 184         = "(" + NODE_SIG + ")" + NODE_SIG;
 185     public static final String NEXT_SIG
 186         = "()" + NODE_SIG;
 187     public static final String NEXT
 188         = "next";
 189     public static final String NEXTID
 190         = "nextNodeID";
 191     public static final String MAKE_NODE
 192         = "makeNode";
 193     public static final String MAKE_NODE_LIST
 194         = "makeNodeList";
 195     public static final String GET_UNPARSED_ENTITY_URI
 196         = "getUnparsedEntityURI";
 197     public static final String STRING_TO_REAL
 198         = "stringToReal";
 199     public static final String STRING_TO_REAL_SIG
 200         = "(" + STRING_SIG + ")D";
 201     public static final String STRING_TO_INT
 202         = "stringToInt";
 203     public static final String STRING_TO_INT_SIG
 204         = "(" + STRING_SIG + ")I";
 205 
 206     public static final String XSLT_PACKAGE
 207         = "com.sun.org.apache.xalan.internal.xsltc";
 208     public static final String COMPILER_PACKAGE
 209         = XSLT_PACKAGE + ".compiler";


 211         = XSLT_PACKAGE + ".runtime";
 212     public static final String TRANSLET_CLASS
 213         = RUNTIME_PACKAGE + ".AbstractTranslet";
 214 
 215     public static final String TRANSLET_SIG
 216         = "Lcom/sun/org/apache/xalan/internal/xsltc/runtime/AbstractTranslet;";
 217     public static final String UNION_ITERATOR_SIG
 218         = "Lcom/sun/org/apache/xalan/internal/xsltc/dom/UnionIterator;";
 219     public static final String TRANSLET_OUTPUT_SIG
 220         = "Lcom/sun/org/apache/xml/internal/serializer/SerializationHandler;";
 221     public static final String MAKE_NODE_SIG
 222         = "(I)Lorg/w3c/dom/Node;";
 223     public static final String MAKE_NODE_SIG2
 224         = "(" + NODE_ITERATOR_SIG + ")Lorg/w3c/dom/Node;";
 225     public static final String MAKE_NODE_LIST_SIG
 226         = "(I)Lorg/w3c/dom/NodeList;";
 227     public static final String MAKE_NODE_LIST_SIG2
 228         = "(" + NODE_ITERATOR_SIG + ")Lorg/w3c/dom/NodeList;";
 229 
 230     public static final String STREAM_XML_OUTPUT
 231         = "com.sun.org.apache.xml.internal.serializer.ToXMLStream";
 232 
 233     public static final String OUTPUT_BASE
 234         = "com.sun.org.apache.xml.internal.serializer.SerializerBase";
 235 
 236     public static final String LOAD_DOCUMENT_CLASS
 237         = "com.sun.org.apache.xalan.internal.xsltc.dom.LoadDocument";
 238 
 239     public static final String KEY_INDEX_CLASS
 240         = "com/sun/org/apache/xalan/internal/xsltc/dom/KeyIndex";
 241     public static final String KEY_INDEX_SIG
 242         = "Lcom/sun/org/apache/xalan/internal/xsltc/dom/KeyIndex;";
 243 
 244     public static final String KEY_INDEX_ITERATOR_SIG
 245         = "Lcom/sun/org/apache/xalan/internal/xsltc/dom/KeyIndex$KeyIndexIterator;";
 246     public static final String DOM_INTF
 247         = "com.sun.org.apache.xalan.internal.xsltc.DOM";
 248     public static final String DOM_IMPL
 249         = "com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl";
 250     public static final String SAX_IMPL
 251         = "com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl";
 252     public static final String CLASS_CLASS
 253         = "java.lang.Class";
 254     public static final String MODULE_CLASS


< prev index next >