< prev index next >

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

Print this page


   1 /*
   2  * Copyright (c) 2016, 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 


  42 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator;
  43 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.CompareGenerator;
  44 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg;
  45 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.IntType;
  46 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator;
  47 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.NodeSortRecordFactGenerator;
  48 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.NodeSortRecordGenerator;
  49 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.StringType;
  50 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type;
  51 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.TypeCheckError;
  52 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Util;
  53 import com.sun.org.apache.xml.internal.dtm.Axis;
  54 import java.util.ArrayList;
  55 import java.util.List;
  56 
  57 
  58 /**
  59  * @author Jacek Ambroziak
  60  * @author Santiago Pericas-Geertsen
  61  * @author Morten Jorgensen

  62  */
  63 final class Sort extends Instruction implements Closure {
  64 
  65     private Expression     _select;
  66     private AttributeValue _order;
  67     private AttributeValue _caseOrder;
  68     private AttributeValue _dataType;
  69     private String         _lang; // bug! see 26869
  70 
  71     private String _className = null;
  72     private List<VariableRefBase> _closureVars = null;
  73     private boolean _needsSortRecordFactory = false;
  74 
  75     // -- Begin Closure interface --------------------
  76 
  77     /**
  78      * Returns true if this closure is compiled in an inner class (i.e.
  79      * if this is a real closure).
  80      */
  81     public boolean inInnerClass() {


   1 /*
   2  * Copyright (c) 2016, 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 


  41 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator;
  42 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.CompareGenerator;
  43 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg;
  44 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.IntType;
  45 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator;
  46 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.NodeSortRecordFactGenerator;
  47 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.NodeSortRecordGenerator;
  48 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.StringType;
  49 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type;
  50 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.TypeCheckError;
  51 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Util;
  52 import com.sun.org.apache.xml.internal.dtm.Axis;
  53 import java.util.ArrayList;
  54 import java.util.List;
  55 
  56 
  57 /**
  58  * @author Jacek Ambroziak
  59  * @author Santiago Pericas-Geertsen
  60  * @author Morten Jorgensen
  61  * @LastModified: Nov 2017
  62  */
  63 final class Sort extends Instruction implements Closure {
  64 
  65     private Expression     _select;
  66     private AttributeValue _order;
  67     private AttributeValue _caseOrder;
  68     private AttributeValue _dataType;
  69     private String         _lang; // bug! see 26869
  70 
  71     private String _className = null;
  72     private List<VariableRefBase> _closureVars = null;
  73     private boolean _needsSortRecordFactory = false;
  74 
  75     // -- Begin Closure interface --------------------
  76 
  77     /**
  78      * Returns true if this closure is compiled in an inner class (i.e.
  79      * if this is a real closure).
  80      */
  81     public boolean inInnerClass() {


< prev index next >