< prev index next >

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

Print this page


   1 /*
   2  * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * @LastModified: Oct 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: XslAttribute.java,v 1.2.4.1 2005/09/12 11:39:32 pvedula Exp $
  23  */


  33 import com.sun.org.apache.bcel.internal.generic.InstructionList;
  34 import com.sun.org.apache.bcel.internal.generic.LocalVariableGen;
  35 import com.sun.org.apache.bcel.internal.generic.PUSH;
  36 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator;
  37 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg;
  38 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator;
  39 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type;
  40 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.TypeCheckError;
  41 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Util;
  42 import com.sun.org.apache.xml.internal.serializer.ElemDesc;
  43 import com.sun.org.apache.xml.internal.serializer.SerializationHandler;
  44 import com.sun.org.apache.xml.internal.utils.XML11Char;
  45 import java.util.List;
  46 
  47 /**
  48  * @author Jacek Ambroziak
  49  * @author Santiago Pericas-Geertsen
  50  * @author Morten Jorgensen
  51  * @author Erwin Bolwidt <ejb@klomp.org>
  52  * @author Gunnlaugur Briem <gthb@dimon.is>

  53  */
  54 final class XslAttribute extends Instruction {
  55 
  56     private String _prefix;
  57     private AttributeValue _name;       // name treated as AVT (7.1.3)
  58     private AttributeValueTemplate _namespace = null;
  59     private boolean _ignore = false;
  60     private boolean _isLiteral = false;  // specified name is not AVT
  61 
  62     /**
  63      * Returns the name of the attribute
  64      */
  65     public AttributeValue getName() {
  66         return _name;
  67     }
  68 
  69     /**
  70      * Displays the contents of the attribute
  71      */
  72     public void display(int indent) {


   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: XslAttribute.java,v 1.2.4.1 2005/09/12 11:39:32 pvedula Exp $
  22  */


  32 import com.sun.org.apache.bcel.internal.generic.InstructionList;
  33 import com.sun.org.apache.bcel.internal.generic.LocalVariableGen;
  34 import com.sun.org.apache.bcel.internal.generic.PUSH;
  35 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator;
  36 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg;
  37 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator;
  38 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type;
  39 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.TypeCheckError;
  40 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Util;
  41 import com.sun.org.apache.xml.internal.serializer.ElemDesc;
  42 import com.sun.org.apache.xml.internal.serializer.SerializationHandler;
  43 import com.sun.org.apache.xml.internal.utils.XML11Char;
  44 import java.util.List;
  45 
  46 /**
  47  * @author Jacek Ambroziak
  48  * @author Santiago Pericas-Geertsen
  49  * @author Morten Jorgensen
  50  * @author Erwin Bolwidt <ejb@klomp.org>
  51  * @author Gunnlaugur Briem <gthb@dimon.is>
  52  * @LastModified: Oct 2017
  53  */
  54 final class XslAttribute extends Instruction {
  55 
  56     private String _prefix;
  57     private AttributeValue _name;       // name treated as AVT (7.1.3)
  58     private AttributeValueTemplate _namespace = null;
  59     private boolean _ignore = false;
  60     private boolean _isLiteral = false;  // specified name is not AVT
  61 
  62     /**
  63      * Returns the name of the attribute
  64      */
  65     public AttributeValue getName() {
  66         return _name;
  67     }
  68 
  69     /**
  70      * Displays the contents of the attribute
  71      */
  72     public void display(int indent) {


< prev index next >