View Javadoc
1   /*
2    * reserved comment block
3    * DO NOT REMOVE OR ALTER!
4    */
5   /*
6    * Copyright 2001-2004 The Apache Software Foundation.
7    *
8    * Licensed under the Apache License, Version 2.0 (the "License");
9    * you may not use this file except in compliance with the License.
10   * 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  /*
22   * $Id: OutlineableChunkEnd.java,v 1.10 2010-11-01 04:34:19 joehw Exp $
23   */
24  package com.sun.org.apache.xalan.internal.xsltc.compiler.util;
25  import com.sun.org.apache.bcel.internal.generic.Instruction;
26  /**
27   * <p>Marks the end of a region of byte code that can be copied into a new
28   * method.  See the {@link OutlineableChunkStart} pseudo-instruction for
29   * details.</p>
30   */
31  class OutlineableChunkEnd extends MarkerInstruction {
32      /**
33       * A constant instance of {@link OutlineableChunkEnd}.  As it has no fields,
34       * there should be no need to create an instance of this class.
35       */
36      public static final Instruction OUTLINEABLECHUNKEND =
37                                                  new OutlineableChunkEnd();
38  
39      /**
40       * Private default constructor.  As it has no fields,
41       * there should be no need to create an instance of this class.  See
42       * {@link OutlineableChunkEnd#OUTLINEABLECHUNKEND}.
43       */
44      private OutlineableChunkEnd() {
45      }
46  
47      /**
48       * Get the name of this instruction.  Used for debugging.
49       * @return the instruction name
50       */
51      public String getName() {
52          return OutlineableChunkEnd.class.getName();
53      }
54  
55      /**
56       * Get the name of this instruction.  Used for debugging.
57       * @return the instruction name
58       */
59      public String toString() {
60          return getName();
61      }
62  
63      /**
64       * Get the name of this instruction.  Used for debugging.
65       * @return the instruction name
66       */
67      public String toString(boolean verbose) {
68          return getName();
69      }
70  }