< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/Mode.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  * $Id: Mode.java,v 1.2.4.1 2005/09/19 05:18:11 pvedula Exp $
  23  */


  46 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.NamedMethodGenerator;
  47 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Util;
  48 import com.sun.org.apache.xml.internal.dtm.Axis;
  49 import com.sun.org.apache.xml.internal.dtm.DTM;
  50 import java.util.ArrayList;
  51 import java.util.HashMap;
  52 import java.util.Iterator;
  53 import java.util.List;
  54 import java.util.Map;
  55 import java.util.Set;
  56 
  57 /**
  58  * Mode gathers all the templates belonging to a given mode;
  59  * it is responsible for generating an appropriate
  60  * applyTemplates + (mode name) method in the translet.
  61  * @author Jacek Ambroziak
  62  * @author Santiago Pericas-Geertsen
  63  * @author Morten Jorgensen
  64  * @author Erwin Bolwidt <ejb@klomp.org>
  65  * @author G. Todd Miller

  66  */
  67 final class Mode implements Constants {
  68 
  69     /**
  70      * The name of this mode as defined in the stylesheet.
  71      */
  72     private final QName _name;
  73 
  74     /**
  75      * A reference to the stylesheet object that owns this mode.
  76      */
  77     private final Stylesheet _stylesheet;
  78 
  79     /**
  80      * The name of the method in which this mode is compiled.
  81      */
  82     private final String _methodName;
  83 
  84     /**
  85      * A vector of all the templates in this mode.


   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  * $Id: Mode.java,v 1.2.4.1 2005/09/19 05:18:11 pvedula Exp $
  22  */


  45 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.NamedMethodGenerator;
  46 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Util;
  47 import com.sun.org.apache.xml.internal.dtm.Axis;
  48 import com.sun.org.apache.xml.internal.dtm.DTM;
  49 import java.util.ArrayList;
  50 import java.util.HashMap;
  51 import java.util.Iterator;
  52 import java.util.List;
  53 import java.util.Map;
  54 import java.util.Set;
  55 
  56 /**
  57  * Mode gathers all the templates belonging to a given mode;
  58  * it is responsible for generating an appropriate
  59  * applyTemplates + (mode name) method in the translet.
  60  * @author Jacek Ambroziak
  61  * @author Santiago Pericas-Geertsen
  62  * @author Morten Jorgensen
  63  * @author Erwin Bolwidt <ejb@klomp.org>
  64  * @author G. Todd Miller
  65  * @LastModified: Nov 2017
  66  */
  67 final class Mode implements Constants {
  68 
  69     /**
  70      * The name of this mode as defined in the stylesheet.
  71      */
  72     private final QName _name;
  73 
  74     /**
  75      * A reference to the stylesheet object that owns this mode.
  76      */
  77     private final Stylesheet _stylesheet;
  78 
  79     /**
  80      * The name of the method in which this mode is compiled.
  81      */
  82     private final String _methodName;
  83 
  84     /**
  85      * A vector of all the templates in this mode.


< prev index next >