src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/util/OutlineableChunkEnd.java
changeset 47216 71c04702a3d5
parent 44797 8b3b3b911b8a
equal deleted inserted replaced
47215:4ebc2e2fb97c 47216:71c04702a3d5
       
     1 /*
       
     2  * reserved comment block
       
     3  * DO NOT REMOVE OR ALTER!
       
     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 
       
    23 package com.sun.org.apache.xalan.internal.xsltc.compiler.util;
       
    24 import com.sun.org.apache.bcel.internal.generic.Instruction;
       
    25 /**
       
    26  * <p>Marks the end of a region of byte code that can be copied into a new
       
    27  * method.  See the {@link OutlineableChunkStart} pseudo-instruction for
       
    28  * details.</p>
       
    29  */
       
    30 class OutlineableChunkEnd extends MarkerInstruction {
       
    31     /**
       
    32      * A constant instance of {@link OutlineableChunkEnd}.  As it has no fields,
       
    33      * there should be no need to create an instance of this class.
       
    34      */
       
    35     public static final Instruction OUTLINEABLECHUNKEND =
       
    36                                                 new OutlineableChunkEnd();
       
    37 
       
    38     /**
       
    39      * Private default constructor.  As it has no fields,
       
    40      * there should be no need to create an instance of this class.  See
       
    41      * {@link OutlineableChunkEnd#OUTLINEABLECHUNKEND}.
       
    42      */
       
    43     private OutlineableChunkEnd() {
       
    44     }
       
    45 
       
    46     /**
       
    47      * Get the name of this instruction.  Used for debugging.
       
    48      * @return the instruction name
       
    49      */
       
    50     public String getName() {
       
    51         return OutlineableChunkEnd.class.getName();
       
    52     }
       
    53 
       
    54     /**
       
    55      * Get the name of this instruction.  Used for debugging.
       
    56      * @return the instruction name
       
    57      */
       
    58     public String toString() {
       
    59         return getName();
       
    60     }
       
    61 
       
    62     /**
       
    63      * Get the name of this instruction.  Used for debugging.
       
    64      * @return the instruction name
       
    65      */
       
    66     public String toString(boolean verbose) {
       
    67         return getName();
       
    68     }
       
    69 }