1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package net
.multiphasicapps
.classfile
;
13 * This represents a UTF-8 constant pool entry.
17 public final class UTFConstantEntry
19 /** The string representation. */
20 protected final String string
;
23 * Initializes the constant entry.
25 * @param __s The string used.
26 * @throws NullPointerException On null arguments.
29 public UTFConstantEntry(String __s
)
30 throws NullPointerException
34 throw new NullPointerException("NARG");
45 public boolean equals(Object __o
)
47 if (!(__o
instanceof UTFConstantEntry
))
50 return this.string
.equals(((UTFConstantEntry
)__o
).string
);
60 return this.string
.hashCode();
68 public String
toString()