jdk/src/share/classes/java/lang/StackTraceElement.java
author martin
Mon, 10 Mar 2008 14:32:51 -0700
changeset 48 dc5744ca15ea
parent 2 90ce3da70b43
child 5506 202f599c92aa
permissions -rw-r--r--
4960438: (process) Need IO redirection API for subprocesses Reviewed-by: alanb, iris
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
 * Copyright 2000-2004 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
 * have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package java.lang;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
 * An element in a stack trace, as returned by {@link
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
 * Throwable#getStackTrace()}.  Each element represents a single stack frame.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
 * All stack frames except for the one at the top of the stack represent
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
 * a method invocation.  The frame at the top of the stack represents the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 * execution point at which the stack trace was generated.  Typically,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * this is the point at which the throwable corresponding to the stack trace
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * was created.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * @since  1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * @author Josh Bloch
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
public final class StackTraceElement implements java.io.Serializable {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
    // Normally initialized by VM (public constructor added in 1.5)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
    private String declaringClass;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
    private String methodName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
    private String fileName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
    private int    lineNumber;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
     * Creates a stack trace element representing the specified execution
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
     * point.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
     * @param declaringClass the fully qualified name of the class containing
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
     *        the execution point represented by the stack trace element
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
     * @param methodName the name of the method containing the execution point
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
     *        represented by the stack trace element
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
     * @param fileName the name of the file containing the execution point
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
     *         represented by the stack trace element, or <tt>null</tt> if
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
     *         this information is unavailable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
     * @param lineNumber the line number of the source line containing the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
     *         execution point represented by this stack trace element, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
     *         a negative number if this information is unavailable. A value
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
     *         of -2 indicates that the method containing the execution point
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
     *         is a native method
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
     * @throws NullPointerException if <tt>declaringClass</tt> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
     *         <tt>methodName</tt> is null
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
    public StackTraceElement(String declaringClass, String methodName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
                             String fileName, int lineNumber) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
        if (declaringClass == null)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
            throw new NullPointerException("Declaring class is null");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
        if (methodName == null)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
            throw new NullPointerException("Method name is null");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
        this.declaringClass = declaringClass;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
        this.methodName     = methodName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
        this.fileName       = fileName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
        this.lineNumber     = lineNumber;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
     * Returns the name of the source file containing the execution point
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     * represented by this stack trace element.  Generally, this corresponds
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
     * to the <tt>SourceFile</tt> attribute of the relevant <tt>class</tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
     * file (as per <i>The Java Virtual Machine Specification</i>, Section
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
     * 4.7.7).  In some systems, the name may refer to some source code unit
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
     * other than a file, such as an entry in source repository.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
     * @return the name of the file containing the execution point
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
     *         represented by this stack trace element, or <tt>null</tt> if
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
     *         this information is unavailable.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
    public String getFileName() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
        return fileName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
     * Returns the line number of the source line containing the execution
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
     * point represented by this stack trace element.  Generally, this is
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
     * derived from the <tt>LineNumberTable</tt> attribute of the relevant
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
     * <tt>class</tt> file (as per <i>The Java Virtual Machine
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     * Specification</i>, Section 4.7.8).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     * @return the line number of the source line containing the execution
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     *         point represented by this stack trace element, or a negative
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
     *         number if this information is unavailable.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
    public int getLineNumber() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
        return lineNumber;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
     * Returns the fully qualified name of the class containing the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
     * execution point represented by this stack trace element.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
     * @return the fully qualified name of the <tt>Class</tt> containing
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
     *         the execution point represented by this stack trace element.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
    public String getClassName() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
        return declaringClass;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
     * Returns the name of the method containing the execution point
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
     * represented by this stack trace element.  If the execution point is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
     * contained in an instance or class initializer, this method will return
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     * the appropriate <i>special method name</i>, <tt>&lt;init&gt;</tt> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
     * <tt>&lt;clinit&gt;</tt>, as per Section 3.9 of <i>The Java Virtual
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     * Machine Specification</i>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
     * @return the name of the method containing the execution point
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     *         represented by this stack trace element.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
    public String getMethodName() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
        return methodName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
     * Returns true if the method containing the execution point
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     * represented by this stack trace element is a native method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     * @return <tt>true</tt> if the method containing the execution point
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     *         represented by this stack trace element is a native method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
    public boolean isNativeMethod() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
        return lineNumber == -2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
     * Returns a string representation of this stack trace element.  The
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
     * format of this string depends on the implementation, but the following
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
     * examples may be regarded as typical:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
     * <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
     *   <tt>"MyClass.mash(MyClass.java:9)"</tt> - Here, <tt>"MyClass"</tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
     *   is the <i>fully-qualified name</i> of the class containing the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     *   execution point represented by this stack trace element,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     *   <tt>"mash"</tt> is the name of the method containing the execution
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     *   point, <tt>"MyClass.java"</tt> is the source file containing the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     *   execution point, and <tt>"9"</tt> is the line number of the source
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
     *   line containing the execution point.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
     * <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
     *   <tt>"MyClass.mash(MyClass.java)"</tt> - As above, but the line
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
     *   number is unavailable.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
     * <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
     *   <tt>"MyClass.mash(Unknown Source)"</tt> - As above, but neither
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
     *   the file name nor the line  number are available.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
     * <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
     *   <tt>"MyClass.mash(Native Method)"</tt> - As above, but neither
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
     *   the file name nor the line  number are available, and the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
     *   containing the execution point is known to be a native method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
     * @see    Throwable#printStackTrace()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
    public String toString() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
        return getClassName() + "." + methodName +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
            (isNativeMethod() ? "(Native Method)" :
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
             (fileName != null && lineNumber >= 0 ?
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
              "(" + fileName + ":" + lineNumber + ")" :
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
              (fileName != null ?  "("+fileName+")" : "(Unknown Source)")));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
     * Returns true if the specified object is another
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
     * <tt>StackTraceElement</tt> instance representing the same execution
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
     * point as this instance.  Two stack trace elements <tt>a</tt> and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
     * <tt>b</tt> are equal if and only if:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
     * <pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
     *     equals(a.getFileName(), b.getFileName()) &&
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
     *     a.getLineNumber() == b.getLineNumber()) &&
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
     *     equals(a.getClassName(), b.getClassName()) &&
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
     *     equals(a.getMethodName(), b.getMethodName())
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
     * </pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     * where <tt>equals</tt> is defined as:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
     * <pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
     *     static boolean equals(Object a, Object b) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
     *         return a==b || (a != null && a.equals(b));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
     *     }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
     * </pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
     * @param  obj the object to be compared with this stack trace element.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
     * @return true if the specified object is another
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
     *         <tt>StackTraceElement</tt> instance representing the same
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
     *         execution point as this instance.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
    public boolean equals(Object obj) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
        if (obj==this)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
            return true;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
        if (!(obj instanceof StackTraceElement))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
            return false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
        StackTraceElement e = (StackTraceElement)obj;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
        return e.declaringClass.equals(declaringClass) && e.lineNumber == lineNumber
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
            && eq(methodName, e.methodName) && eq(fileName, e.fileName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
    private static boolean eq(Object a, Object b) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
        return a==b || (a != null && a.equals(b));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
     * Returns a hash code value for this stack trace element.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
    public int hashCode() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
        int result = 31*declaringClass.hashCode() + methodName.hashCode();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
        result = 31*result + (fileName == null ?   0 : fileName.hashCode());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
        result = 31*result + lineNumber;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
        return result;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
    private static final long serialVersionUID = 6992337162326171013L;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
}